uboot中main_loop下bootdelay_process实现
来源:互联网 发布:淘宝店主实拍情趣 编辑:程序博客网 时间:2024/05/16 11:29
common/autoboot.c CONFIG_AUTOBOOT
const char *bootdelay_process(void){ char *s; int bootdelay;#ifdef CONFIG_BOOTCOUNT_LIMIT unsigned long bootcount = 0; unsigned long bootlimit = 0;#endif /* CONFIG_BOOTCOUNT_LIMIT */
#ifdef CONFIG_BOOTCOUNT_LIMIT bootcount = bootcount_load(); bootcount++; bootcount_store(bootcount); setenv_ulong("bootcount", bootcount); bootlimit = getenv_ulong("bootlimit", 10, 0);#endif /* CONFIG_BOOTCOUNT_LIMIT */
s = getenv("bootdelay"); bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
#ifdef CONFIG_OF_CONTROL bootdelay = fdtdec_get_config_int(gd->fdt_blob, "bootdelay", bootdelay);#endif
debug("### main_loop entered: bootdelay=%d\n\n", bootdelay);
#if defined(CONFIG_MENU_SHOW) bootdelay = menu_show(bootdelay);#endif bootretry_init_cmd_timeout();
#ifdef CONFIG_POST if (gd->flags & GD_FLG_POSTFAIL) { s = getenv("failbootcmd"); } else#endif /* CONFIG_POST */#ifdef CONFIG_BOOTCOUNT_LIMIT if (bootlimit && (bootcount > bootlimit)) { printf("Warning: Bootlimit (%u) exceeded. Using altbootcmd.\n", (unsigned)bootlimit); s = getenv("altbootcmd"); } else#endif /* CONFIG_BOOTCOUNT_LIMIT */ s = getenv("bootcmd");
process_fdt_options(gd->fdt_blob); stored_bootdelay = bootdelay;
return s;}
- uboot中main_loop下bootdelay_process实现
- uboot下run_main_loop中main_loop实现
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析
- uboot中main_loop分析 .
- uboot中main_loop分析
- uboot中main_loop分析 .
- uboot 中的main_loop分析
- uboot main_loop()函数分析
- uboot main_loop()函数分析
- UBOOT]main_loop函数分析
- uboot main_loop分析
- Struts2控制器以及struts.xml与web.xml的配置(1)
- ccf交通规划
- 触发器
- android中如何一次性退出所有的活动activity
- noi-1769-简单密码
- uboot中main_loop下bootdelay_process实现
- LeetCode刷题【Array】Best Time to Buy and Sell Stock II
- 欢迎使用Markdown编辑器写博客
- redis学习指南
- 【R语言】读懂Pearson相关分析结果
- 论文笔记:Deep convolutional activation features for large scale histopathology image classification
- 回调函数 Callback function 的概念与程序示例
- noi-7915-潜伏者
- 在CentOS7中安装mysql