我有一个使用u-boot(1.1.5)启动Linux-Kernel(3.9)的系统。当使用u- uImage和tftp刷新内核启动时,一切都运行得很好。我尝试在Kernel-prompt中使用以下命令更新内核:
flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 /uImage
reboot
选定的分区正常。重新启动u-boot时显示消息:
Loading from NAND 512MiB 3,3V 8-bit, offset 0x200000
Image Name: Linux-3.9.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1897760 Bytes = 1.8 MB
Load Address: 20008000
Entry Point: 20008000
NAND read from offset 3c0000 failed 0
** Read error
Wrong Image Format for bootm command
ERROR: can't get kernel image!
mtd2从0x200000开始。我该怎么解决这个问题呢?
发布于 2014-12-28 22:09:14
取消从内核启动,这样你就会进入U-boot。进入后,尝试:
# setenv bootargs root=/dev/mtd2 (or root=/dev/mtdblock2);
# setenv bootcmd 'bootm 0x200000 (or 0xc0200000)'
*请注意,上述两个环境变量是在设置其他环境变量的基础上设置的,其他环境变量将根据您的要求进行设置。
https://stackoverflow.com/questions/27544830
复制相似问题