u-boot-2011.03在mini2440/micro2440上的移植(四)——支持内核启动
来源:互联网 发布:淘宝店铺名称搜索不到 编辑:程序博客网 时间:2024/05/17 21:47
4.1 include/configs/micro2440.h
添加
#define CONFIG_SETUP_MEMORY_TAGS 1 //如果没有定义这个参数,则uboot参数必须加入men=内存大小
#define CONFIG_INITRD_TAG 1
#define CONFIG_CMDLINE_TAG 1 //设置bootargs出入内核必须
#define CONFIG_BOOTARGS "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0"
【说明】
到此步后,使用bootm后在"Starting kernel ..."地方死机。按照下一步修改,具体原因尚不理解,需要在以后阅读uboot的源代码。
4.2 arch/arm/lib/bootm.c
static void announce_and_cleanup(void)
{
printf("/nStarting kernel .../n/n");
#ifdef CONFIG_USB_DEVICE
{
extern void udc_disconnect(void);
udc_disconnect();
}
#endif
#ifndef CONFIG_MICRO2440
cleanup_before_linux();
#endif
}
4.3 自动启动内核
如果要自动启动内核,需要在include/conskfigs/micro2440.h定义CONFIG_BOOTCOMMAND,类似如下内容:
#define CONFIG_BOOTCOMMAND "nand read 0x30008000 0x60000 0x300000;bootm 0x30008000"
- u-boot-2011.03在mini2440/micro2440上的移植(四)——支持内核启动
- u-boot-2011.03在mini2440/micro2440上的移植(七)——支持Nand Flash启动
- u-boot-2011.03在mini2440/micro2440上的移植(三)——支持DM9000
- u-boot-2011.03在mini2440/micro2440上的移植(五)——支持Nand Flash
- u-boot-2011.03在mini2440/micro2440上的移植(六)——支持yaffs下载
- u-boot-2011.03在mini2440/micro2440上的移植(一)——准备工作
- u-boot-2011.03在mini2440/micro2440上的移植(二)——在RAM中运行
- u-boot-2011.03在mini2440/micro2440上的移植(八)——结束语及资源下载
- u-boot-2010-06在mini2440上的移植(四)
- u-boot-2009.08在飞凌OK2440/FL2440上的移植(四)——让u-boot支持nand flash识别与操作
- u-boot-2009.08在飞凌OK2440/FL2440上的移植(二)——让u-boot支持从nor flash 启动
- u-boot-2009.08在mini2440上的移植(四)---增加DM9000驱动和命令自动补全功能 ——调试心得
- u-boot-2009.08在飞凌OK2440/FL2440上的移植(六)——让u-boot引导内核启动
- u-boot-2011.03在TQ2440上的移植(5)—实现Nand/Nor 双启动
- u-boot-2013.07在mini2440上的移植(一):使用默认测试u-boot.bin
- u-boot-2011.06在mini2440上的移植之Nor flash支持
- u-boot-2011.06在mini2440上的移植之Nor flash支持
- u-boot-2009.08在mini2440上的移植 增加引导内核功能
- u-boot-2011.03在mini2440/micro2440上的移植(二)——在RAM中运行
- sql经典常用大全
- 关于CString::IsEmpty()的返回值
- u-boot-2011.03在mini2440/micro2440上的移植(三)——支持DM9000
- S2SH获取oralce的date类型,显示在web页面带时间方法
- u-boot-2011.03在mini2440/micro2440上的移植(四)——支持内核启动
- shell 程序设计1--- 那些年我们一起学习linux程序设计
- jQuery 教程
- apache日志格式定义及示例说明
- sql语句导入导出大全
- 如何学习和理解Android系统
- u-boot-2011.03在mini2440/micro2440上的移植(五)——支持Nand Flash
- u-boot-2011.03在mini2440/micro2440上的移植(六)——支持yaffs下载
- u-boot-2011.03在mini2440/micro2440上的移植(七)——支持Nand Flash启动