2011-07-16 03:48:48     Unable to boot from NAND

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

2011-07-16 03:48:48     Unable to boot from NAND

Anwar Naseem (PAKISTAN)

Message: 102448   

 

Hi,

 

I have a custome board with nand,sdram,spi,bf532,etc.

 

Steps:

 

Transfer the uclinux image via serial

 

bfin> loady                                                                    

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

Cm - CRC mode, 35312(SOH)/0(STX)/0(CAN) packets, 3 retries                     

## Total Size      = 0x0044f68d = 4519565 Bytes

 

Erase and write the nand flash

 

bfin> nand erase clean                                                         

                                                                               

NAND erase: device 0 whole chip                                                

Skipping bad block at  0x0b580000                                              

Erasing at 0xffe0000 -- 100% complete. Cleanmarker written at 0xffe0000.       

OK                                                                             

bfin> nand write.jffs2 0x01000000 0x0 0x00450000

 

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

4521984 bytes written: OK

 

Boot kernel image from nand

 

bfin> nboot 0x2000000 0x0                                                      

                                                                               

Loading from NAND 256MiB 3,3V 8-bit, offset 0x0                                

   Image Name:   Linux Kernel and ext2                                         

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)                 

   Data Size:    4519501 Bytes = 4.3 MiB                                       

   Load Address: 00001000                                                      

   Entry Point:  002fcc3c

 

bfin>

 

Why booting is not done after Entry Point:00fcc3c ? Please guide.

QuoteReplyEditDelete

 

 

2011-07-18 00:23:45     Re: Unable to boot from NAND

Aaron Wu (CHINA)

Message: 102452   

 

With the same setting for kernel and distribution, can you load the uImage by tftp and boot from RAM? First make sure have no problem in the configure then move forward. Checking the document http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:nand-flash&s[]=nboot, you have  a Entry Point of 002fcc3c other than 00001000, you may do some debug in common/cmd_nand.c to see what happens.

 

QuoteReplyEditDelete

 

 

2011-07-18 07:38:12     Re: Unable to boot from NAND

Anwar Naseem (PAKISTAN)

Message: 102465   

 

Aaron, Thanks for your feedback. I can't load the image via tftp. But the same image run successfully from ram (bootm).

 

I have checked the document already and configuration has been done properly.

 

I am new to blackfin/uclinux/u-boot.Can you please guide regarding some debugging steps for common/cmd_nand.c ?

 

What is this Entry point? How and where is it assigned?

 

Thanks

 

Anwar

QuoteReplyEditDelete

 

 

2011-07-18 16:22:36     Re: Unable to boot from NAND

James Kosin (UNITED STATES)

Message: 102474   

 

Anwar,

 

Try using 'nboot $(loadaddr) 0' ....

 

James

QuoteReplyEditDelete

 

 

2011-07-18 16:24:07     Re: Unable to boot from NAND

James Kosin (UNITED STATES)

Message: 102475   

 

Sorry, ... should be more after this...

 

'nboot $(loadaddr) 0;run nandargs;bootm'

 

James

QuoteReplyEditDelete

 

 

2011-07-18 16:30:59     Re: Unable to boot from NAND

Mike Frysinger (UNITED STATES)

Message: 102476   

 

automatic booting is only done if you set "autostart=yes" in your env.  if you dont have that, then nboot is acting as designed.

QuoteReplyEditDelete

 

 

2011-07-19 01:53:39     Re: Unable to boot from NAND

Anwar Naseem (PAKISTAN)

Message: 102480   

 

Thanks Mike, I change couple of environment variables , autostart = yes and nandboot =nboot 0x2000000 0x0

 

Its working now.

 

Anwar

QuoteReplyEditDelete

 

 

2011-07-19 01:55:39     Re: Unable to boot from NAND

Anwar Naseem (PAKISTAN)

Message: 102481   

 

James, I didn't try you suggestion as my issue has been solved by changing autostart and nandboot environment variable.

 

Anyways, thanks for your feedback

 

Anwar

Attachments

    Outcomes