2011-03-08 17:39:33     BF548 EZ-Kit and NAND flash

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

2011-03-08 17:39:33     BF548 EZ-Kit and NAND flash

Mark Bishop (UNITED STATES)

Message: 98740   

 

Environment:

 

uboot tag: 2010RC1-RC2

 

booting from UART to program uboot into NAND on BF548 EZ-KIT

 

 

 

Changed 'include/configs/bf548-ezkit.h':

 

#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_PARA

 

to

 

#define CONFIG_BFIN_BOOT_MODE           BFIN_BOOT_UART

 

 

 

and added as specified from http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:nand-flash#configuration

 

#define CONFIG_CMD_NAND

 

#define CONFIG_BFIN_NFC_BOOTROM_ECC

 

 

 

This load this across the UART and get a bfin> prompt.

 

 

 

I then recompile another u-boot image and only change:

 

#define CONFIG_BFIN_BOOT_MODE           BFIN_BOOT_UART

 

to

 

#define CONFIG_BFIN_BOOT_MODE           BFIN_BOOT_NAND

 

 

 

This gets put onto the TFTP server and transferred over to the target:

 

bfin> tftpboot 0x01000000 u-boot-nand.ldr

 

bfin> nand erase 0 60000

 

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

Skipping bad block at  0x00000000

Skipping bad block at  0x00020000

Skipping bad block at  0x00040000

 

bfin> nand write 0x01000000 0 60000

 

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

Skip bad block 0x00000000

Skip bad block 0x00020000

Skip bad block 0x00040000

393216 bytes written: OK

 

I move the boot selector to 0xd and reset and I get nothing.

 

 

 

I could use some pointers on what I skipped in my process.

QuoteReplyEditDelete

 

 

2011-03-08 19:37:41     Re: BF548 EZ-Kit and NAND flash

Mike Frysinger (UNITED STATES)

Message: 98743   

 

make sure to do `make clean` after editing the config header.  although that shouldnt matter in this case.

 

your output already showed the problem:

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

Skipping bad block at  0x00000000

...

 

you didnt actually program anything to the flash.  since the nand flash probably already contains data (and thus the oob blocks are programmed), you probably have to do 'nand scrub' first.

QuoteReplyEditDelete

 

 

2011-03-09 09:21:08     Re: BF548 EZ-Kit and NAND flash

Mark Bishop (UNITED STATES)

Message: 98771   

 

It was the 'nand scrub.'

 

 

 

Thank you very much.

Attachments

    Outcomes