Uboot启动流程分析(四).pdfVIP

  • 17
  • 0
  • 约1.23万字
  • 约 4页
  • 2015-09-26 发布于重庆
  • 举报
Uboot启动流程分析(四)

U-boot启动流程 (Linux内核)的分析 (四) 在上一篇中分析到u-Boot启动Linux内核的函数do_bootm_linux,这一篇则着重分析,U-boot是如果一步一步启动内核的。 我们可以看到在,start_armboot()函数的最后,在一个无限循环中调用了函数main_loop(),该函数在common/main.c文件中被定义,我们可以看到下面 的一段代码: #if defined (CONFIG_BOOTDELAY) (CONFIG_BOOTDELAY 0) s getenv (bootdelay); //得到环境变量中bootdelay bootdelay s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY ; debug (### main_loop entered: bootdelay=%d\n\n, bootdelay); 如果定义了CONFIG_BOOTDELAY,则在没有CONF

文档评论(0)

1亿VIP精品文档

相关文档