u-boot1.1.6启动过程简要分析

本文详细介绍了U-Boot启动过程中的关键步骤,包括设置CPU模式、内存控制配置、异常处理初始化、串口通信设置等内容,并阐述了如何通过一系列初始化操作使系统进入正常工作状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、set the cpu to SVC32 mode
2、turn off the watchdog
3、mask all IRQs by setting all bits in the INTMR - default
4、设置频比
5、flush v4 I/D caches、disable MMU stuff and caches
6、memory control configuration
7、relocate U-Boot to RAM
8、Set up the stack,
9、clear_bss
10、调用函数start_armboot


start_armboot
init_sequence
board_init, /* basic board dependent setup */
设置MPLL UPLL I/O端口 cache等
interrupt_init, /* set up exceptions */
env_init, /* initialize environment */
init_baudrate, /* initialze baudrate settings */
serial_init, /* serial communications setup */
console_init_f, /* stage 1 init of console */
display_banner, /* say that we are here */
dram_init, /* configure available RAM banks */
display_dram_config,
   mem_malloc_init
   env_relocate     //初始化环境
   getenv_IPaddr //获取ID
   getenv_r          //获取MAC地址
   devices_init      //get the devices list going
   jumptable_init
   console_init_r    //fully init console as a device
   enable_interrupts  //enable exceptions
   cs8900_get_enetaddr  //网卡
   simple_strtoul      //Initialize from environment
   eth_initialize
   
   main_loop   //成功启动
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值