|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
各位大侠,小弟我正在学习YAMON,手上板子的CPU是RMI公司的AU1200-400MGD。
系统的配置如下:
Compilation time = Aug 15 2008 21:09:34
MAC address = 00.00.00.00.00.00
Processor Company ID = 0x03
Processor ID/revision = 0x02 / 0x01
Endianness = Little
CPU = 324 MHz
Flash memory size = 32 MByte
SDRAM size = 128 MByte
First free SDRAM address = 0x800a31e8
对于WINCE、MIPS、YAMON这些东西我都是初学者。我首先从YAMON入手开始学。
这里我有个疑问,就是当YAMON出现如下提示画面后:
Environment variable 'start' exists. After 2 seconds
it will be interpreted as a YAMON command and executed.
Press Ctrl-C to bypass this.
如果我没有按下CTRL-C,出现如下提示
AutoBoot Revision 1.02
但我在YAMON的程序内就是没有找到跳到“AutoBoot Revision 1.02”的程式。
static void
command_loop(
t_shell_line_buf *buf )
{
char line[SHELL_MAX_COMMAND_LEN + 1];
printf("lishun----->command_loop start!\n");
while( TRUE )
{
// print_prompt( PROMPT_TARGET_DISPLAY, PROMPT_TEXT_ENV );
if( !start )
{
print_prompt( PROMPT_TARGET_TERMINAL, PROMPT_TEXT_ENV );
}
if( !shell_get_line( line, SHELL_MAX_COMMAND_LEN, TRUE, TRUE, buf ) )
{
printf( "lishun----->command_loop 1!\n" );
}
else
{
/* Remove excess spaces */
remove_space( line );
if( strlen(line) == 0 )
printf( "lishun----->command_loop 2!\n" );
else
{
/* Add line to stack (only "single" lines) */
if( !start && (strlen( line ) <= max_line_len) )
add2buf( buf, line );
/* Recursively split line in ";" separated commands and expand
* environment variables.
* Execute command(s).
*/
newline_after_prompt = FALSE;
execute_line( line, TRUE );
}
}
start = NULL;
}
printf("lishun----->command_loop end!\n");
}
我有设置打印信息,能够看到“lishun----->command_loop start!”,但没看到“lishun----->command_loop end!”
说明是在While(TRUE)里面运行,但我怎么找都没找到AutoBoot的入口函数。
不知道哪位大侠能帮帮我解答一下这个问题~~~~~
谢谢啦 |
|