Re: [slackware-sparcdevel] serial console support

From: Phil Howard (phil@ipal.net)
Date: Wed Dec 06 2000 - 20:24:54 PST


David Cantrell wrote:

> On Wed, Dec 06, 2000 at 04:14:41PM -0600, Phil Howard wrote:
> > David Cantrell wrote:
> >
> > > There are no serial console settings in the kernel source on SPARC, so I'm
> > > pretty sure that you can just hit enter at the boot prompt. The SPARC
> > > hardware handles redirecting everything to the serial port, so I think
> > > that's why there's no special serial console drivers.
> >
> > I do see loader messages coming out. I think those get output through PROM
> > calls. But the kernel drives the console itself once it gets started, so it
> > has to know where it goes and handle it. It may be something in the kernel
> > like the console device name list not being correct for Sparc or something.
> > I'll have to go take a look and see what it's doing.
>
> Hmmm...yeah, I still don't know. Do let me know if you find anything in
> the kernel source about serial consoles. I'm still looking here, but
> haven't found anything.

I went digging in the source. It was 2.4.0-test10 since I had that one handy
for other reasons, but I figured it wouldn't be _that_ much different. What
I found in arch/sparc/kernel/setup.c was that you need to specify ttya or ttyb
instead of ttyS0 or ttyS1 on the console= prompt to get the kernel console to
use the appropriate serial port. So I went ahead and tried it with the same
ISO I still have from my previous test, and YES! I now get the kernel probing
messages.

So there's another one for the documentation, and also for the SILO banner,
to say to use console=ttya or console=ttyb for serial port console install.

While Sun hardware users will certainly think of serial A or serial B, even
Intel PC's have a difference between the hardware serial port naming and the
standard device names used in Linux. So IMHO, the sparc architecture code
should support that as well. Something to bring up with Dave Miller, I guess.

I just got the 2000-12-07 02:03:33 ISO image on my server that's replicating.
Hey wait, it's still Dec 6, 22:23. So I guess things are on UTC time there.
Well, as soon as it's rsync'd down across my dialup, I'll burn that one and
give it a try, hopefully tonight.

-- 
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam@ipal.net | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------



This archive was generated by hypermail 2b30 : Thu Sep 19 2002 - 11:00:02 PDT