[U-Boot-Users] about do_bootm_linux in cmd_bootm.c

zhuzhenhua zzh.hust at gmail.com
Mon Jul 4 11:36:06 CEST 2005


i used u-boot to run kernel,and it only stoped at "starting
kernel...",so i add some prinft command in cmd_bootm.c as follow:


 
do_bootm()
{
....
switch (hdr->ih_os) {
	default:			/* handled by (original) Linux case */
	case IH_OS_LINUX:
#ifdef CONFIG_SILENT_CONSOLE
	    fixup_silent_linux();
#endif   
            printf("befor do_bootm_linux \n");    \\added by myself
	    do_bootm_linux  (cmdtp, flag, argc, argv,
			     addr, len_ptr, verify);
      printf("after do_bootm_linux \n");    \\added by myself
	    break;
}


do_bootm_linux()
{...
	void	(*kernel)(bd_t *, ulong, ulong, ulong, ulong);
        printf("enter the do_bootm_linux \n");
	image_header_t *hdr = &header;

}



but i run get as follow 
......

befor do_bootm_linux

Starting kernel ...



so if it can not run to  printf("enter the do_bootm_linux \n"), where
it puts the "Starting kernel ..."





thanks for any hints





                                                                      
                              zzhhust




More information about the U-Boot mailing list