2009-12-08 01:34:53     u-boot for BF527 ez-kit NAND flash.

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

2009-12-08 01:34:53     u-boot for BF527 ez-kit NAND flash.

Vincent Tsai (TAIWAN)

Message: 83184   

 

Hi there:

 

I've been trying to place u-boot in the NAND flash on BF527 ez-kit and boot from it, but I didn't succeed.

 

The following are the steps I took:

 

1. Adding the NAND flash and boot ROM ECC layout support by defining CONFIG_CMD_NAND and CFG_BFIN_NFC_BOOTROM_ECC in include/configs/bf527-ezkit.h (http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:nand-flash)

 

2.  Define CONFIG_BFIN_BOOT_MODE to BFIN_BOOT_PARA, make bf527-ezkit, and write u-boot.ldr to the NOR flash using VDSP++ flash programmer. Then boot from the parallel flash. (BMODE = 0x1)

 

3. Correct the flash ID problem mentioned here: https://blackfin.uclinux.org/gf/project/u-boot/tracker/?action=TrackerItemEdit&tracker_item_id=4018.

Actually, I tried the solution on this address: http://lists.infradead.org/pipermail/linux-mtd/2007-July/018795.html, namely patching the contents in nand_base.c, nand_ids.c, and nand.h.

 

4.  Define CONFIG_BFIN_BOOT_MODE to BFIN_BOOT_NAND, make clean, make bf527-ezkit again, and write the u-boot.ldr to the NAND flash. (loadb, nand erase, and then nand write.jffs2)

 

5. Set the BMODE switch to 0xD and reset.

 

 

 

However  nothing happened after reset.

 

I also got the flash programmer for NAND (http://ez.analog.com/message/5648#5648)  and write the u-boot.ldr to the NAND flash again. Same thing.

 

It seems to me that the compiled u-boot.ldr is not working for NAND. Can someone tell me what I missed?

 

Thanks a lot!

 

 

 

Vincent Tsai

 

QuoteReplyEditDelete

 

 

2009-12-08 03:31:22     Re: u-boot for BF527 ez-kit NAND flash.

Mike Frysinger (UNITED STATES)

Message: 83233   

 

do not use VDSP to program flash.  in fact, dont use it to do anything when working with u-boot/linux.

 

you need to use the latest release, 2009R1.  you also should not be using write.jffs2 ... u-boot.ldr is not a jffs2 image.

QuoteReplyEditDelete

 

 

2009-12-08 04:38:32     Re: u-boot for BF527 ez-kit NAND flash.

Vincent Tsai (TAIWAN)

Message: 83236   

 

Hi:

 

Yes, I use the source code from u-boot-2008.10-2009R1-rc3.tar.bz2 and just tried nand write for the flash.

 

But there is still no console message.

 

 

 

By the way, the revision number of my BF527 is just 0.2.

QuoteReplyEditDelete

 

 

2009-12-09 01:05:36     Re: u-boot for BF527 ez-kit NAND flash.

Vincent Tsai (TAIWAN)

Message: 83263   

 

Hi Mike:

 

I just found that the BMODE switch did not work correctly on position 0xD.

 

After I fixed it the NAND can boot now.

 

Alas, I should have found this, and again thanks for your time.

 

 

 

Vincent Tsai.

Attachments

    Outcomes