Skip to contentSkip to conversation

switching serial console on or off

U-Boot-Users Konstantin Kletschke 3 participants 8 messages Mar 27, 2007 – Apr 25, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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
#2 lore raw
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
#3 lore raw
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.c which 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

#4 lore raw

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 -r CONFIG_SILENT_CONSOLE *", or maybe just #define CONFIG_SILENT_CONSOLE in 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
#5 lore raw
In reply to Konstantin Kletschke
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.c which 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.
#6 lore raw

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
#7 lore raw
In reply to Wolfgang Denk

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