2009-03-17 13:50:16     Boot from NAND flash on BF548 EZ-KIT (2)

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2009-03-17 13:50:16     Boot from NAND flash on BF548 EZ-KIT (2)

Vladimir Davydov (BELARUS)

Message: 71124   

 

Hi, All!

 

I have BF548-Ezkit development board (Board Rev 1.4, BF548 Rev 0.1).

I'm trying to boot from NAND flash.

 

I have downloaded two precompiled u-boot binaries: u-boot-bf548-ezkit-uart-

2008R1.5.ldr and u-boot-bf548-ezkit-nand-2008R1.5.ldr.

 

I have loaded u-boot-bf548-ezkit-uart-2008R1.5.ldr file by UART. That image is working fine.

After this I have used instructions from this thread:

http://blackfin.uclinux.org/gf/project/u-boot/forum/?action=ForumBrowse&forum_id=51&_forum_action=ForumMessageBrowse&thread_id=29373

 

My steps were following:

 

1. Load u-boot-bf548-ezkit-nand-2008R1.5.ldr by UART.

bfin> loady 0x01000000

## Ready for binary (ymodem) download to 0x01000000 at 115200 bps...

CCAN) packets, 5 retries

## Total Size      = 0x00031304 = 201476 Bytes

 

2. Erase NAND flash.

bfin> nand erase clean

 

3. Write loaded u-boot image to NAND.

bfin> nand write 0x01000000 0 60000

NAND write: device 0 offset 0x0, size 0x60000

393216 bytes written: OK

 

It was sucessfully written. I have checked the first page of NAND by command:

bfin> nand dump 0

 

4. I have rotated the switch to D position and rebooted the board.

 

After all steps I doesn't see any U-Boot messages in the minicom aplication.

 

Any suggestions?

 

Thanks,

Vladimir

QuoteReplyEditDelete

 

 

2009-03-17 13:52:37     Re: Boot from NAND flash on BF548 EZ-KIT (2)

Mike Frysinger (UNITED STATES)

Message: 71126   

 

that wont work.  the oob layout differs between the two images you refer to.  you will have to compile u-boot yourself as documented so that you can get an image that'll program the nand the way the bootrom expects.

QuoteReplyEditDelete

 

 

2009-03-17 14:06:02     Re: Boot from NAND flash on BF548 EZ-KIT (2)

Vladimir Davydov (BELARUS)

Message: 71128   

 

What documentation do you meen?

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:nand-flash

Is it correct article?

 

 

I have tried to build u-boot 2008-R1.5. A behavior was same.

I have created two same images:

1. first config was to boot u-boot by uart:

I have changed

#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

 

to

#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_UART

 

 

2. For second config (NAND booting):

 

#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_NAND

 

Is it enougth?

 

I found following lines in bf548-ezkit.h:

 

#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)

#define CFG_BFIN_NFC_BOOTROM_ECC

#define CFG_NAND_SELECT_DEVICE 1

#endif

 

As I understand it corresponds with the article.

 

What is wrong?

QuoteReplyEditDelete

 

 

2009-03-17 14:13:08     Re: Boot from NAND flash on BF548 EZ-KIT (2)

Mike Frysinger (UNITED STATES)

Message: 71130   

 

you didnt do what the documentation says:

 

You will need to have these settings enabled both in the U-Boot that programs the NAND flash as well as the U-Boot that boots out of the NAND flash.

QuoteReplyEditDelete

 

 

2009-03-17 14:41:19     Re: Boot from NAND flash on BF548 EZ-KIT (2)

Vladimir Davydov (BELARUS)

Message: 71135   

 

Great! That is working! Mike, thank you very much!

Attachments

    Outcomes