我使用SD卡启动时内核启动正常,为什么烧写到nandflash后就启动不起来?
1、在uboot环境下使用cmp命令对比SD内的uImage和从nandflash读取的uImage是一样的
2、nandflash启动内核时,效果如下:
请问这是为什么?
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.
我是这样烧写的:
mmc rescan;
fatload mmc 0 81000000 MLO;
nand write.i 81000000 0 ${filesize};
fatload mmc 0 81000000 u-boot.img;
nand write.i 81000000 80000 ${filesize};
fatload mmc 0 81000000 uImage;
nand write.i 81000000 280000 ${filesize};
烧写过程没有报错。
请问是在自己做的板子上测试的么?有没有其他的参考板可以验证?
您好!我把LCD这部分电路全部焊接下来情况依旧。但是我把nandflash焊接下来,把uImage拷贝到DDR上并从DDR上启动可以(在有nandflash的时候把uImage拷贝到DDR上并从DDR上启动不了内核),查看nandflash原理图是和上次PCB板原理相同的。我再重复一下我们这块板子出现的问题及现象:
1、把uboot和内核镜像放置在SD上,从SD卡启动,内核基本上都可以正常启动,也不是每次都可以正常启动,正常启动的概率为95%左右(有nandflash)
2、上面的操作是在先上电然后插入SD卡的情况。如果是先插入SD卡再上电,内核启动也是失败的。
3、SD启动uboot后,把uImage镜像搬运到DDR,从DDR启动,每次内核启动都失败(有nandflash)
4、把uboot和内核镜像uImage烧写到nandflash,从nandflash启动,uboot每次都可以正常启动,但是启动内核时就会死掉(有nandflash)
5、去掉nandflash芯片后,SD卡启动uboot后,把uImage镜像搬运到DDR,从DDR启动,每次内核启动都可以正常启动(无nandflash)