This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in NAND boot ?



Hi, 

When I trying to load a new kernel to my board, I have the folowing errors :

I don't know the reason of that, I have perfomed the folowing steps :

1- flashing Uboot using the "sfh_DM646x" by typing :

    *)sfh_DM646x.exe -nanderase, and sfh_DM646x.exe -v -nandflash -UBLStartAddr 0x0020 ubl_DM646x_PSP_nand.bin u-boot.bin

2- setenv 'bootcmd nboot 80700000 0 100000; bootm;'

3- nand erase 0xa0000 0x155800

4- tftp 80700000 uImage

5- nand write 0x80700000 0xa0000 0x155800

6- boot

But I have these error and I don't know the reason of that !?

 

  • I think the problem may be in your offsets, your nand write command takes an image from 0x80700000 of length 0x155800 and writes it at offset 0xA0000 in the NAND flash, whereas your nboot command is reading the image from offset 0x100000 in NAND. The problem being that you seem to be writing the image to a different location than you are trying to boot from, in otherwords the offset you use in nand write needs to match the offset you use in nboot.

    To fix this you can either adjust your nand write command to nand write 0x80700000 0x100000 0x155800 or adjust your nboot command to setenv 'bootcmd nboot 80700000 0 A0000; bootm;'.