devfs
[Top] [All Lists]

Re: serial console under devfs

To: Khimenko Victor <devfs@xxxxxxxxxxxxxxxxx>, Thomas Duffy <tduffy@xxxxxxxxxxxxxxxxxx>
Subject: Re: serial console under devfs
From: dagum@xxxxxxxxxxxxxxxxxxx (Leo Dagum)
Date: Sun, 6 Aug 2000 22:13:55 -0700
Cc: devfs@xxxxxxxxxxx
Sender: owner-devfs@xxxxxxxxxxx
> From: Thomas Duffy <tduffy@dbear>
> 
> I have read this document before and I went over it just a minute ago as a
> refresher.  Still, I cannot find an answer to my problem.
> 
> I can get lilo and the kernel to print to the serial port.  And I can get
> "getty" to start on the serial lin.  But, I cannot get stuff written out
> to console (like the initscritps messages or the logon in single user
> mode) to come out.  That is my problem.  I want /everything/ to come out
> on the serial line.

Is the problem here that the console goes away when devfs gets mounted?

> 
> The only way I have found to fix this problem is to remove /dev/console
> and re-mknod it as the serial line.  I agree this is an ugly hack and if
> you know of a better way, then I would love to hear it.  But this hack
> which I normally do does not work under devfs.

You cannot mknod on a devfs filesystem.  It's a VFS like /proc with
fairly limited capabilities (that's by design, the goal is for any device 
node found under /dev to correspond to a real physical device).  Have
you tried using devfsd to create a symlink from /dev/console to
/dev/ttyS0?

> 
> -tduffy
> 
> On Mon, 7 Aug 2000, Khimenko Victor wrote:
> 
> > 4-Aug-00 12:59 you wrote:
> > > So, I have been having a problem getting devfs to allow me to make
> > > /dev/console redirected to the serial port.
> > 
> > Really ? How so ?
> > 
> > > On an non devfs system, I simply removed /dev/console and then re-mknod it
> > > to be c 4 64 which corresponds to ttyS0.
> > 
> > Aah. Yeah, if you usually come to the house through the window it looks like
> > reasonable solution. Still most peoples prefer door. Why not RTFM at last
> > (/usr/src/linux/Documentation/serial-console.txt) ?
> > 

There's no place for this kind of arrogance here.  Save it for people
who will be suitably impressed.

- leo

--
Leo Dagum    SGI  Mountain View, CA 94043 (650-933-2179)

<Prev in Thread] Current Thread [Next in Thread>