-----BEGIN PGP SIGNED MESSAGE-----
Hi guys, I was just rescanning my last mails, and I found nobody had
answered this one...
On Mon, 11 Jan 1999, Eric Seppanen wrote:
> I was wondering if any experienced kernel hackers could give me an opinion
> on this: I turned on the serial port echo so that kernel messages get
> echoed to the serial port, and this seems (to my untrained eyes) like a
> real quick-and-dirty hack because (a) There are now two independent pieces
> of code talking to the serial port hardware, possibly simultaneously, that
> have no knowledge of each other, and (b) it's not a true serial console;
> after the kernel has booted a getty needs to be run on the serial port
> port, not the console.
>
> I was just wondering, what would be the _correct_ way to implement this?
> (a serial port console that actually _replaces_ the regular console)
> Would it be possible to have console.c replace the keyboard/display code
> with serial port code? How could this be done so that the existing serial
> port code could be used, but without a catch-22 due to the fact that the
> kernel has messages to output before the serial driver is normally
> initialized?
>
> Thanks folks....
> Eric Seppanen / [EMAIL PROTECTED]
>
About a year and a half ago, I installed Sparc Linux on a Sparc IPX, and I
had no monitor to use with it. I nedded to put the serial link to work as
the main console, and there were just two things I had to do (besides
configuring the IPX's boot PROM to output messages to the serial port):
1.- I removed /dev/console, and then created a symbolic link to /dev/ttyS1
(which was the serial port I wanted to use) named /dev/console.
2.- I edited /etc/inittab, I commented out all the getty lines (no virtual
consoles) and I put a new line to start a getty on /dev/ttyS1 (the serial
port). If you start a getty at the serial port, no process will be able to
access it but the getty, thus resolving your access problems (I think).
3.- Reboot, and there I was, with an IPX booting from the serial port and
allowing me to login from it.
Before doing these steps, I installed RedHat 4.something normally, with a
borrowed monitor. I didn't install it from a serial port (wil try the next
time... ;-).
I don't know if this is the right way to do it, but it worked for me. YMMV.
BTW, I think there is support in the experimental kernels (now 2.2pre ;-)
for something related with the serial console, but I haven't looked at it.
Someone please...?
See you.
Jorge
- --
Jorge Gonzalez <[EMAIL PROTECTED]> http://www.arrakis.es/~jorgegv -o)
For PGP public key, mail me with Subject: CMD get-pgp-key /\\
/bin/mail -s "CMD get-pgp-key" [EMAIL PROTECTED] < /dev/null _\_v
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Firmado con pgpsign/pgpcrypt
iQCVAwUBNqJqHqd4P3jevK5FAQHVjgQAvQe/BcE31ybeMdW09HrBcL9wq1cU/r3b
PEzxbwDUGHNJhofvNJGa7CZh9yP6lZ6xk5lccGpwYN8M6dKPI+WbTwy1W0TXstAI
nMriFJSiJKr5VLHVKkwfRCxSKNrvCHCXuD/2j/KIamx42yvHXJ/yfkTnSzTXmwgF
KYbkhdFII9w=
=OYFC
-----END PGP SIGNATURE-----