![](/zbxe/layouts/mr_layouts_1st/images/default/blank.gif)
도와주세요!!
글 수 15,339
2008.09.01 21:03:18 (*.149.236.37)
7398
결국 ezboot 소스를 다운 받아서 소스를 본 결과( 2.2.49 v)
( http://forum.falinux.com/zbxe/?mid=warehouse&document_srl=406675 )
main.c 파일 내에서 main 함수를 살펴보면
else if( !strcmp( argv[0], "TF" ) ) download_cmd ( argc, argv );
여기서 download_cmd 함수로 점프 하는 것을 알 수 있었습니다.
download_cmd 함수로 가 본 결과
if ( 'F' == argv[0][1] )
{
switch( argv[0][2] )
{
case 'B' : saveto_flash_boot ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'C' : saveto_flash_config ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'L' : saveto_flash_logo ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'K' : saveto_flash_kernel ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'R' : saveto_flash_ramdisk( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
}
}
위와 같이 구성 되어 있음을 알 수 있는데 문제는 TF 에 대한 처리가 없는 것으로 나옵니다.
그리고 download_cmd 함수의 종료가 이루어 지고 끝나게 되는군요.
tf 에 대해 구현된 소스를 어디서 볼 수 있을까요?
( http://forum.falinux.com/zbxe/?mid=warehouse&document_srl=406675 )
main.c 파일 내에서 main 함수를 살펴보면
else if( !strcmp( argv[0], "TF" ) ) download_cmd ( argc, argv );
여기서 download_cmd 함수로 점프 하는 것을 알 수 있었습니다.
download_cmd 함수로 가 본 결과
if ( 'F' == argv[0][1] )
{
switch( argv[0][2] )
{
case 'B' : saveto_flash_boot ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'C' : saveto_flash_config ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'L' : saveto_flash_logo ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'K' : saveto_flash_kernel ( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
case 'R' : saveto_flash_ramdisk( (void *)BOOT_WORK_START, rx_len ); break; // flash_main.c 함수
}
}
위와 같이 구성 되어 있음을 알 수 있는데 문제는 TF 에 대한 처리가 없는 것으로 나옵니다.
그리고 download_cmd 함수의 종료가 이루어 지고 끝나게 되는군요.
tf 에 대해 구현된 소스를 어디서 볼 수 있을까요?