* RE: Deactivate serial console?
@ 2006-08-22 17:46 Howard, Marc
2006-08-22 17:55 ` Lee Revell
2006-08-22 17:57 ` Lee Revell
0 siblings, 2 replies; 6+ messages in thread
From: Howard, Marc @ 2006-08-22 17:46 UTC (permalink / raw)
To: Lee Revell, ppc
"stty -F /dev/console 0" or the equivalent in code does the trick for me
but it might be implementation dependent.
Marc W. Howard
> -----Original Message-----
> From:=20
> linuxppc-embedded-bounces+marc.howard=3Dkla-tencor.com@ozlabs.or
g [mailto:linuxppc-embedded-bounces+marc.howard=3Dkla->
tencor.com@ozlabs.org] On Behalf Of Lee Revell
> Sent: Tuesday, August 22, 2006 9:19 AM
> To: ppc
> Subject: Deactivate serial console?
>=20
> We're developing a PPC440 based system for a customer who=20
> requires that
> it be possible to disable/enable the serial console without a reboot.
> Is this possible without hacking the kernel?
>=20
> Lee
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Deactivate serial console?
2006-08-22 17:46 Deactivate serial console? Howard, Marc
@ 2006-08-22 17:55 ` Lee Revell
2006-08-23 1:26 ` Michael Richardson
2006-08-22 17:57 ` Lee Revell
1 sibling, 1 reply; 6+ messages in thread
From: Lee Revell @ 2006-08-22 17:55 UTC (permalink / raw)
To: Howard, Marc; +Cc: ppc
On Tue, 2006-08-22 at 10:46 -0700, Howard, Marc wrote:
> stty -F /dev/console 0
Thanks - so if I read the man page correctly the 0 is interpreted as 0
baud, and I would re-enable it by "stty -F /dev/console 115200"?
Lee
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate serial console?
2006-08-22 17:55 ` Lee Revell
@ 2006-08-23 1:26 ` Michael Richardson
0 siblings, 0 replies; 6+ messages in thread
From: Michael Richardson @ 2006-08-23 1:26 UTC (permalink / raw)
To: Lee Revell; +Cc: Howard, Marc, ppc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Lee" == Lee Revell <rlrevell@joe-job.com> writes:
Lee> On Tue, 2006-08-22 at 10:46 -0700, Howard, Marc wrote:
>> stty -F /dev/console 0
Lee> Thanks - so if I read the man page correctly the 0 is interpreted as 0
Lee> baud, and I would re-enable it by "stty -F /dev/console 115200"?
Yes, and historically baud 0 meant 'hang up modem'.
It causes DTR to drop.
- --
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] mcr@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
"The Microsoft _Get the Facts CD_ does not work on Linux." - orospakr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Finger me for keys
iQEVAwUBROuuqYCLcPvd0N1lAQIN4Qf/TtpVAE3baaZJt7UYp6Pogi1lyAjDpWZt
cf2rteFYzRBDmhQli8BSwobrGphPRpiCahUc6G/P2+gs6LS9djjgJ4vwv0+m/eLP
FFSG+67rh3lkZKay5sjHX7M03UKhFOuNv7N+Iiu/cJtDyz6FgBJSRPdztY4xN4h1
rGXRMvGMqHQlNEBkdN0bKv9TmhEpHgYMJdGlIn+BNh54f5Uet6/As1vzHosQJFR5
54jLDVG5PMYHXtpfOWDTW07QMSnljfZPtWi7Ixo/r04omjScyQGCpcbs4WzTXzf5
Ndc00cxX2AAoBMe1xyNMcq8aTlovuoEm1Zs15WJR7H8IBCrYm43zWw==
=pTam
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Deactivate serial console?
2006-08-22 17:46 Deactivate serial console? Howard, Marc
2006-08-22 17:55 ` Lee Revell
@ 2006-08-22 17:57 ` Lee Revell
2006-08-22 18:27 ` Lee Revell
1 sibling, 1 reply; 6+ messages in thread
From: Lee Revell @ 2006-08-22 17:57 UTC (permalink / raw)
To: Howard, Marc; +Cc: ppc
On Tue, 2006-08-22 at 10:46 -0700, Howard, Marc wrote:
> "stty -F /dev/console 0" or the equivalent in code does the trick for me
> but it might be implementation dependent.
>
That works for disabling the console but now I can't re-enable it. stty
-F /dev/console 115200 does not restore serial console access.
Lee
> Marc W. Howard
>
> > -----Original Message-----
> > From:
> > linuxppc-embedded-bounces+marc.howard=kla-tencor.com@ozlabs.or
> g [mailto:linuxppc-embedded-bounces+marc.howard=kla->
> tencor.com@ozlabs.org] On Behalf Of Lee Revell
> > Sent: Tuesday, August 22, 2006 9:19 AM
> > To: ppc
> > Subject: Deactivate serial console?
> >
> > We're developing a PPC440 based system for a customer who
> > requires that
> > it be possible to disable/enable the serial console without a reboot.
> > Is this possible without hacking the kernel?
> >
> > Lee
> >
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Deactivate serial console?
2006-08-22 17:57 ` Lee Revell
@ 2006-08-22 18:27 ` Lee Revell
0 siblings, 0 replies; 6+ messages in thread
From: Lee Revell @ 2006-08-22 18:27 UTC (permalink / raw)
To: Howard, Marc; +Cc: ppc
On Tue, 2006-08-22 at 13:57 -0400, Lee Revell wrote:
> On Tue, 2006-08-22 at 10:46 -0700, Howard, Marc wrote:
> > "stty -F /dev/console 0" or the equivalent in code does the trick for me
> > but it might be implementation dependent.
> >
>
> That works for disabling the console but now I can't re-enable it. stty
> -F /dev/console 115200 does not restore serial console access.
OK, for the benefit of the list readers, this solution does work.
However the disable command must be issued from telnet/SSH prompt - if
issued from the a serial console, the serial console locks up and cannot
be restored without a reboot.
Lee
^ permalink raw reply [flat|nested] 6+ messages in thread
* Deactivate serial console?
@ 2006-08-22 16:18 Lee Revell
0 siblings, 0 replies; 6+ messages in thread
From: Lee Revell @ 2006-08-22 16:18 UTC (permalink / raw)
To: ppc
We're developing a PPC440 based system for a customer who requires that
it be possible to disable/enable the serial console without a reboot.
Is this possible without hacking the kernel?
Lee
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-23 1:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 17:46 Deactivate serial console? Howard, Marc
2006-08-22 17:55 ` Lee Revell
2006-08-23 1:26 ` Michael Richardson
2006-08-22 17:57 ` Lee Revell
2006-08-22 18:27 ` Lee Revell
-- strict thread matches above, loose matches on Subject: below --
2006-08-22 16:18 Lee Revell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).