switching serial console on or off
Hi Folks!
Again I wonder if it is possible to switch off the serial console in u-boot and only switching it on for debugging purposes so its free for other applications in the daily work.
I wonder if it is possible to determine a level of a GPIO pin and set (okay, this will work for sure) an env variable on that. This decides wether the serial console is enabled or the linux kernel gets booted silently.
Is something like that possible?
Kind regards, Konsti
Quoted 4 lines · In message <[email protected]> you wrote:
Again I wonder if it is possible to switch off the serial console in u-boot and only switching it on for debugging purposes so its free for other applications in the daily work.
Yes, this is possible.
Quoted 4 lines
I wonder if it is possible to determine a level of a GPIO pin and set (okay, this will work for sure) an env variable on that. This decides wether the serial console is enabled or the linux kernel gets booted silently.
Yes, this is possible.
Quoted 1 line
Is something like that possible?
Yes, and it has been implemented before on several boards.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Pull the wool over your own eyes!" - J.R. "Bob" Dobbs
Quoted 1 line · Wolfgang Denk
Yes, this is possible.
Okay, that is nice to hear.
Quoted 1 line
Yes, and it has been implemented before on several boards.
Well, could you or anybody else elaborate a little bit more to mention me one board of these 223 boards, where this is implemented so I can look at it?
Currently I am searching for a switch and wonder, if this has to be deep in /board/<type>/*.[c|S] or if this is a command defined in the common directory as cmd_xy.c which has only to be used. Or needs to be created there so it is possible more boards can use it.
Regards, Konsti
Signature · 2 lines
GPG KeyID EF62FCEF Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
Quoted 10 lines
Quoted 1 line
Yes, and it has been implemented before on several boards.
Well, could you or anybody else elaborate a little bit more to mention me one board of these 223 boards, where this is implemented so I can look at it?
Currently I am searching for a switch and wonder, if this has to be deep in /board/<type>/*.[c|S] or if this is a command defined in the common directory as
cmd_xy.cwhich has only to be used. Or needs to be created there so it is possible more boards can use it.
Well, you're trying to change the console, which is common to all boards, so I'd try looking in /common/console.c.
Then after a quick scan, I'd see "CONFIG_SILENT_CONSOLE" mentioned. Then I'd run "grep -r CONFIG_SILENT_CONSOLE *", or maybe just #define CONFIG_SILENT_CONSOLE in the afore mentioned C file.
Regards
Am 2007-03-28 15:18 +0100 schrieb Dale Dunlea:
Quoted 2 lines
Well, you're trying to change the console, which is common to all boards, so I'd try looking in /common/console.c.
Ah! There are pretty much infos.
Quoted 3 lines
Then after a quick scan, I'd see "
CONFIG_SILENT_CONSOLE" mentioned. Then I'd run "grep -rCONFIG_SILENT_CONSOLE*", or maybe just #defineCONFIG_SILENT_CONSOLEin the afore mentioned C file.
But is that "switchable" at boot time then?
Regards, Konsti
Signature · 2 lines
GPG KeyID EF62FCEF Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
Quoted 4 lines · In message <[email protected]> you wrote:
Well, could you or anybody else elaborate a little bit more to mention me one board of these 223 boards, where this is implemented so I can look at it?
See for example board/tqm5200/tqm5200.c
Quoted 4 lines
Currently I am searching for a switch and wonder, if this has to be deep in /board/<type>/*.[c|S] or if this is a command defined in the common directory as
cmd_xy.cwhich has only to be used. Or needs to be created there so it is possible more boards can use it.
Search for "silent".
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The more we disagree, the more chance there is that at least one of us is right.
Am 2007-03-28 16:41 +0200 schrieb Wolfgang Denk:
Quoted 1 line
See for example
board/tqm5200/tqm5200.c
Ah okay, thats enough info for me to cope with.
Based on that I am trying to code a similair setup on our platform.
Quoted 1 line
Search for "silent".
Okay, thanks for the info. I will come back if I can't cope with it :-)
Best Regards, Konsti
Signature · 2 lines
GPG KeyID EF62FCEF Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
Am 2007-03-28 16:41 +0200 schrieb Wolfgang Denk:
Quoted 1 line
See for example
board/tqm5200/tqm5200.c
Okay, I found it there and this works here on my Board also.
Sadly the linux kernel arm people insist on putstr() some stuff with "quiet" option turned on:
Uncompressing Linux............................................................ done, booting the kernel.
But this is the linux construction place.
Best Regards, Konsti
Signature · 2 lines
GPG KeyID EF62FCEF Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF