摘要: 在start.S中,经过第一阶段的硬件初始化之后,进入到了u-boot的第二阶段,在这个阶段会对 串口、单板、中断、nand、nor等进行初始化,并设置内核需要的环境变量。 通过函数 start_armboot 进入第二阶段,下面箭头指的 init_sequence是一个函数数组,数组中的函数都是需 阅读全文
posted @ 2020-10-29 13:58 豆豆男孩 阅读(73) 评论(0) 推荐(0) 编辑
摘要: u-boot的第一阶段的任务是完成 部分硬件的设置: 1.设置CPU工作在管理员模式 1 mrs r0,cpsr 2 bic r0,r0,#0x1f 3 orr r0,r0,#0xd3 4 msr cpsr,r0 2.关闭看门狗 1 /* turn off the watchdog */ 2 #if 阅读全文
posted @ 2020-10-29 12:55 豆豆男孩 阅读(109) 评论(0) 推荐(0) 编辑
摘要: u-boot的配置、编译过程: 1、cd /work/system/u-boot-1.1.6 2、patch -p1 <../u-boot-1.1.6_jz2440.patch 打补丁 3、make 100ask24x0_config 配置u-boot 4、make ① 为了分析上述的命令过程,需要 阅读全文
posted @ 2020-10-29 12:39 豆豆男孩 阅读(53) 评论(0) 推荐(0) 编辑