All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] switching serial console on or off
@ 2007-03-27 14:57 Konstantin Kletschke
  2007-03-27 15:02 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Konstantin Kletschke @ 2007-03-27 14:57 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-27 14:57 [U-Boot-Users] switching serial console on or off Konstantin Kletschke
@ 2007-03-27 15:02 ` Wolfgang Denk
  2007-03-28 14:07   ` Konstantin Kletschke
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2007-03-27 15:02 UTC (permalink / raw)
  To: u-boot

In message <87r6raloo5.fsf@z1.synertronixx> 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.

> 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.

> Is something like that possible?

Yes, and it has been implemented before on several boards.

Best regards,

Wolfgang Denk

-- 
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-27 15:02 ` Wolfgang Denk
@ 2007-03-28 14:07   ` Konstantin Kletschke
  2007-03-28 14:18     ` Dale Dunlea
  2007-03-28 14:41     ` Wolfgang Denk
  0 siblings, 2 replies; 8+ messages in thread
From: Konstantin Kletschke @ 2007-03-28 14:07 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk <wd@denx.de> writes:

> Yes, this is possible.

Okay, that is nice to hear.

> 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

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-28 14:07   ` Konstantin Kletschke
@ 2007-03-28 14:18     ` Dale Dunlea
  2007-03-29 13:00       ` Konstantin Kletschke
  2007-03-28 14:41     ` Wolfgang Denk
  1 sibling, 1 reply; 8+ messages in thread
From: Dale Dunlea @ 2007-03-28 14:18 UTC (permalink / raw)
  To: u-boot

> > 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-28 14:07   ` Konstantin Kletschke
  2007-03-28 14:18     ` Dale Dunlea
@ 2007-03-28 14:41     ` Wolfgang Denk
  2007-03-29 12:58       ` Konstantin Kletschke
  2007-04-25 10:59       ` Konstantin Kletschke
  1 sibling, 2 replies; 8+ messages in thread
From: Wolfgang Denk @ 2007-03-28 14:41 UTC (permalink / raw)
  To: u-boot

In message <20070328140754.GA4596@anita.doom> 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

> 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

-- 
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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-28 14:41     ` Wolfgang Denk
@ 2007-03-29 12:58       ` Konstantin Kletschke
  2007-04-25 10:59       ` Konstantin Kletschke
  1 sibling, 0 replies; 8+ messages in thread
From: Konstantin Kletschke @ 2007-03-29 12:58 UTC (permalink / raw)
  To: u-boot

Am 2007-03-28 16:41 +0200 schrieb Wolfgang Denk:

> 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.
 
> Search for "silent".

Okay, thanks for the info. I will come back if I can't cope with it
:-)

Best Regards, Konsti

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-28 14:18     ` Dale Dunlea
@ 2007-03-29 13:00       ` Konstantin Kletschke
  0 siblings, 0 replies; 8+ messages in thread
From: Konstantin Kletschke @ 2007-03-29 13:00 UTC (permalink / raw)
  To: u-boot

Am 2007-03-28 15:18 +0100 schrieb Dale Dunlea:

> 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.

> 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

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] switching serial console on or off
  2007-03-28 14:41     ` Wolfgang Denk
  2007-03-29 12:58       ` Konstantin Kletschke
@ 2007-04-25 10:59       ` Konstantin Kletschke
  1 sibling, 0 replies; 8+ messages in thread
From: Konstantin Kletschke @ 2007-04-25 10:59 UTC (permalink / raw)
  To: u-boot

Am 2007-03-28 16:41 +0200 schrieb Wolfgang Denk:

> 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


-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-04-25 10:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-27 14:57 [U-Boot-Users] switching serial console on or off Konstantin Kletschke
2007-03-27 15:02 ` Wolfgang Denk
2007-03-28 14:07   ` Konstantin Kletschke
2007-03-28 14:18     ` Dale Dunlea
2007-03-29 13:00       ` Konstantin Kletschke
2007-03-28 14:41     ` Wolfgang Denk
2007-03-29 12:58       ` Konstantin Kletschke
2007-04-25 10:59       ` Konstantin Kletschke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.