[U-Boot] Uncompressing kernel ..... OK (Hangs here)

Smitha sagnav at gmail.com
Thu Jun 16 14:14:10 CEST 2011


Wolfgang Denk <wd <at> denx.de> writes:

> 
> In message <001301c3786a$369162b0$321c10ac <at> asradproto50> Tien wrote:
> > 
> > Another thing you can do is go to u-boot/common/cmd_bootm.c in the function
> > do_bootm_linux(..), at the end of it :
> > 
> >       (*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end);
> > 
> > change it to
> > 
> >       (*kernel) (gd->bd, initrd_start, initrd_end, cmd_start, cmd_end);  //
> > kbd change to gd->bd
> 
> Do NOT do this.
> 
> > It should works.
> 
> No, it is BROKEN. "gd" and "gd->bd" will go out of scope  when  Linux
> is booting. The contents of this memory will be undefined. You create
> ndefined  behaviour.  What  do you think why we create a copy of this
> date (in "kbd") in the first place?
> 
> Best regards,
> 
> Wolfgang Denk
> 



Hi ,

I am tryng to bring up the WRlinux kernel on a custom board based on mpc 
8247 . When I boot my image using bootm command it hangs at (*kernel) (kbd, 
initrd_start, initrd_end, cmd_start, cmd_end); in do_bootm_linux ( function..

please can you help 

Regards,
Smitha




More information about the U-Boot mailing list