[U-Boot-Users] Re: Keeping Console on Serial after LCD Enabled

("Fake replying" since I can't find my original message as sent back to me by the listserv)
I figured this issue out, and it was something in the code file that I was working with, though something I overlooked, not modified.
--------------- Michael Bendzick wrote:
With Himba"s help, I got things running much better for my OMAP 1510 Innovator LCD driver U-Boot, but once the LCD comes up (drv_lcd_init finishes), the serial console output is switched off. I can still issue commands from my serial console, and have them take effect (like changing a status LCD or turning off the LCD backlight with mm.b), but can"t see any more text output.
I tried commenting out
#ifdef CFG_DEVICE_NULLDEV memset (&dev, 0, sizeof (dev));
strcpy (dev.name, "nulldev"); dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM; dev.putc = nulldev_putc; dev.puts = nulldev_puts; dev.getc = nulldev_input; dev.tstc = nulldev_input;
device_register (&dev); #endif
in common/devices.c, as when CONFIG_SPLASH_SCREEN is defined, CFG_DEVICE_NULLDEV gets defined, and would appear to reroute console output once assigned with dev.putc = serial_putc would now be dev.putc = nulldev_putc. However, this did not change the situation for me at all.
Any ideas on how to maintain the serial terminal? Take note that my driver is very very similar to cpu/mpc8xx/lcd.c, so I do not expect that coding that I did is disabling the serial terminal, but instead some other interaction in the code is doing this.
Thanks,
-Michael Bendzick Systems and Software Engineering Logic Product Development michael.b@lo... 612-436-5122 http://www.logicpd.com
-Michael Bendzick Systems and Software Engineering Logic Product Development michael.b@logicpd.com 612-436-5122 www.logicpd.com

In message 31ADFA827355984B9E2A161514595B561C3313@lpdsrv04.logicpd.com you wrote:
With Himba"s help, I got things running much better for my OMAP 1510 Innovator LCD driver U-Boot, but once the LCD comes up (drv_lcd_init finishes), the serial console output is switched off. I can still issue
... and should get redirected to LCD.
commands from my serial console, and have them take effect (like changing a status LCD or turning off the LCD backlight with mm.b), but can"t see any more text output.
You should see it on the LCD now.
I tried commenting out
#ifdef CFG_DEVICE_NULLDEV
Don't do this.
Any ideas on how to maintain the serial terminal? Take note that my driver is very very similar to cpu/mpc8xx/lcd.c, so I do not expect that coding that I did is disabling the serial terminal, but instead some other interaction in the code is doing this.
The normal mode of operation is that when there is a LCD then the console output goes to the LCD by default. You can always change this by assigning a different device to the stdout / stderr descriptors. Either interactively by entering (probably blind) a "setend stdout serial" command, or you can put this command in your CONFIG_PREBOOT setting.
Best regards,
Wolfgang Denk
participants (2)
-
Michael Bendzick
-
Wolfgang Denk