Skip to contentSkip to conversation

Could one image work with both LCD and serial console?

U-Boot-Users Sam Song 2 participants 3 messages Aug 28, 2004 – Aug 29, 2004 1 message not in the archive

lore
Share & tools
lore

Sam Song

author
#1 lore raw
In reply to a message not in the archive

Hi, all,

I have such a puzzle whether I could switch to serial consle once defining CONFIG_LCD in <board>.h. If could, how to implement it? I was often in such an embarrassed situation that I must erase the fireware when I wanted to work on serial console after setting CONFIG_LCD. Also,it seems that I cannot make serial console image switch to LCD output by simply setting stderr and stdout as LCD. Any idea?

Thanks in advance!

Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

#2 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I have such a puzzle whether I could switch to serial consle once defining CONFIG_LCD in <board>.h. If

Sure, this is supported by default.

Quoted 1 line

could, how to implement it? I was often in such an

No need to implement anything; this is all available right out of the box.

Quoted 3 lines

embarrassed situation that I must erase the fireware when I wanted to work on serial console after setting CONFIG_LCD. Also,it seems that I cannot make serial

Just type "setenv stdout serial;setenv stdin serial" - if you want; you can put this command sequence in the "preboot" variable (assuming you enabled CONFIG_PREBOOT for your board).

Quoted 2 lines

console image switch to LCD output by simply setting stderr and stdout as LCD. Any idea?

You can do this. You can switch any time between serial, LCD, and any other of the configured I/O devices.

Best regards,

Wolfgang Denk

Signature · 7 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I realize that command does have its fascination, even under  circum-
stances such as these, but I neither enjoy the idea of command nor am
I  frightened  of  it. It simply exists, and I will do whatever logi-
cally needs to be done.
	-- Spock, "The Galileo Seven", stardate 2812.7
author
#3 lore raw

Wolfgang Denk <[email protected]> wrote?

Quoted 8 lines
Quoted 2 lines

CONFIG_LCD. Also,it seems that I cannot make
serial

Just type "setenv stdout serial;setenv stdin serial"
- if you want;
you can put this command sequence in the "preboot" variable (assuming
you enabled CONFIG_PREBOOT for your board).

OK. I will test it by now and see what happens. I didn't define CONFIG_PREBOOT for my board.

Quoted 7 lines
Quoted 1 line

console image switch to LCD output by simply

setting

Quoted 1 line

stderr and stdout as LCD. Any idea?

You can do this. You can switch any time between
serial, LCD, and any
other of the configured I/O devices.

So nice to get the solid answer. This means I should adjust some explanation in board/RPXlite_dw/readme. There are some misleading content I did. Wait my patch later.

Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/