天嵌 ARM开发社区

 找回密码
 注册
查看: 2560|回复: 1

请问u-boot进入menu还是进入引导linux的位置

[复制链接]
chenza 发表于 2009-11-26 18:45:25 | 显示全部楼层 |阅读模式
u-boot在_start_armboot进行一系列的初始化后,进入main_loop接受键盘输入前,串口打印出"Press Space key to Download Mode",请问此时程序运行在何处位置。在_start_armboot,还是在main_loop中?

main_loop()
{
...
# ifndef CFG_HUSH_PARSER

        if (bBootFrmNORFlash())
        {
                run_command("menu", 0);
        }
                /*
                 * Main Loop for Monitor Command Processing
                 */
        else
        {
#ifdef CONFIG_SURPORT_WINCE
                if (!TOC_Read())
                {
                        /* Launch wince */
                        char cmd_buf[16];
                        printf("Booting wince ...\n");
                        strcpy(cmd_buf, "wince");
                        run_command(cmd_buf, 0);
                }
                else
#endif
                {
                        printf("Booting Linux ...\n");
                        boot_zImage(0x200000,0x200000);
                }
        }

# else
                parse_string_outer(s, FLAG_PARSE_SEMICOLON |
                                    FLAG_EXIT_FROM_LOOP);
# endif

...
}

是这个地方吗?
TQ_guoxixiao 发表于 2012-5-12 15:10:59 | 显示全部楼层
你在代码里面搜索一下“Press Space key to Download Mode"”就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-19 09:37 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表