2010-03-26 03:36:04     Program uClinux image to BF527's Nand flash

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

2010-03-26 03:36:04     Program uClinux image to BF527's Nand flash

Hank Lee (TAIWAN)

Message: 87727   

 

Hi ,

 

I used the VDSP and nand flash driver(dxe) to program the bootloader 'u-boot.ldr' and uClinux OS image 'uImage.initramfs' to BF527's Nand flash through JTAG interface.

 

U-boot can work normally when booting from Nand flash.

 

But if I used command 'nboot' and 'bootm' to run into uClinux OS , system will show this error message.

 

 

 

bfin> nboot 0x1000000 0x0 0x100000

 

Loading from NAND 512MiB 3,3V 8-bit, offset 0x100000

NAND read from offset 100000 failed -117

** Read error

bfin> bootm

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1.1

   Created:      2010-03-24   6:54:43 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1438259 Bytes =  1.4 MB

   Load Address: 00001000

   Entry Point:  0027d930

   Verifying Checksum ... Bad Data CRC

ERROR: can't get kernel image!

 

 

If I loaded uClinux OS image to RAM first and used command 'nand write.jffs2' to write image to Nand flash, this problem will not exist.

 

Please tell me how to fix this problem.

 

Thank you.

 

Hank

TranslateQuoteReplyEditDelete

 

 

2010-03-26 03:55:24     Re: Program uClinux image to BF527's Nand flash

Sonic Zhang (CHINA)

Message: 87728   

 

Looks the solution is to use uboot other than VDSP.

QuoteReplyEditDelete

 

 

2010-03-26 05:39:44     Re: Program uClinux image to BF527's Nand flash

Hank Lee (TAIWAN)

Message: 87735   

 

Hi Sonic,

 

You mention uClinux image can't flash by VDSP?

 

But our project need to flash uClinux image by VDSP via JTAG interface.

 

Does VDSP nand flash driver for programmimg file need to modify for this issue?

TranslateQuoteReplyEditDelete

 

 

2010-03-26 10:40:11     Re: Program uClinux image to BF527's Nand flash

Robin Getz (UNITED STATES)

Message: 87740   

 

Hank:

 

The VDSP flash programmer is not compatible with Linux. As Sonic said - don't use it.

 

If you want to try to figure things out - good luck - you are on your own. We can't help - as no one here uses VDSP.

 

-Robin

QuoteReplyEditDelete

 

 

2010-03-28 23:41:59     Re: Program uClinux image to BF527's Nand flash

Sonic Zhang (CHINA)

Message: 87776   

 

You can also flash images by gnICE JTAG interface other than VDSP.

 

Search gnICE in our wiki.

QuoteReplyEditDelete

 

 

2010-03-30 03:02:58     Re: Program uClinux image to BF527's Nand flash

Hank Lee (TAIWAN)

Message: 87821   

 

Hi Sonic,

 

Do you mean the uClinux image on Nand flash flashed by gnICE JTAG can be boot from Nand flash normally?

 

I saw the gnICE in wiki , but the example is also flash U-boot ,not uClinux image.

 

Hank

TranslateQuoteReplyEditDelete

 

 

2010-03-30 03:23:33     Re: Program uClinux image to BF527's Nand flash

Mike Frysinger (UNITED STATES)

Message: 87845   

 

no, urjtag cannot program the NAND flash

 

boot u-boot over the uart or via JTAG (search the wiki) and then use u-boot to program the NAND flash

Attachments

    Outcomes