首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >更新嵌入式内核

更新嵌入式内核
EN

Stack Overflow用户
提问于 2014-12-18 18:51:57
回答 1查看 1.1K关注 0票数 0

我有一个使用u-boot(1.1.5)启动Linux-Kernel(3.9)的系统。当使用u- uImage和tftp刷新内核启动时,一切都运行得很好。我尝试在Kernel-prompt中使用以下命令更新内核:

代码语言:javascript
运行
复制
flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 /uImage
reboot

选定的分区正常。重新启动u-boot时显示消息:

代码语言:javascript
运行
复制
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开始。我该怎么解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2014-12-28 22:09:14

取消从内核启动,这样你就会进入U-boot。进入后,尝试:

代码语言:javascript
运行
复制
# setenv bootargs root=/dev/mtd2 (or root=/dev/mtdblock2);
# setenv bootcmd 'bootm 0x200000 (or 0xc0200000)'

*请注意,上述两个环境变量是在设置其他环境变量的基础上设置的,其他环境变量将根据您的要求进行设置。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27544830

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档