[U-Boot-Users] Side-effects when adding debug output

"Häpe, Sebastian, HRD/AB" sebastian.haepe at eads.com
Wed Jul 13 10:36:26 CEST 2005


Hi everybody!

I have a little problem with u-boot and I don't know if I am the reason for
it.
It's the following:

I want to add some extra output to the functions do_bootm and do_bootm_linux
because I have problems with the kernel parameters. So i added a few
printf's to the functions mentioned above. The things that happen now, I do
not understand:

Parameters of called functions (e.g. like the "int argc" parameter) suddenly
change to random values. How could that be caused? Has it something to do
with the stack (overflow or undefined behaviour when using "printf")? 
Or should I use any other function for creating output? (instead of using
the BDI2k)

Greetings,
Sebastian




More information about the U-Boot mailing list