
21 May
2012
21 May
'12
4:23 p.m.
Hi Wolfgang,
On Sun, May 20, 2012 at 4:13 PM, Wolfgang Denk wd@denx.de wrote:
In this situation, no code is needed to perform such an operation. If you want to do this, just enable the PREBOOT feature and define a default "preboot" command as "setenv stdout serial". THe effect is the same, but now the user still has a chance to change behavious as he deems fit.
I tried the "no code" approach initially (following the README) and it did not allow me to redirect the console output to serial port.
Only when I placed 'setenv("stdout", "serial");' inside board_late_init() worked for me.
Regards,
Fabio Estevam