From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24917 invoked from network); 23 Jul 1999 16:57:13 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Jul 1999 16:57:13 -0000 Received: from mail11.digital.com (mail11.digital.com [192.208.46.10]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA14363 for ; Fri, 23 Jul 1999 12:57:09 -0400 Received: from flume.zk3.dec.com (broflume.zk3.dec.com [16.141.0.42]) by mail11.digital.com (8.9.2/8.9.2/WV2.0g) with ESMTP id MAA07245; Fri, 23 Jul 1999 12:57:03 -0400 (EDT) Received: from zk3.dec.com by flume.zk3.dec.com (8.8.8/1.1.8.2/16Jan95-0946AM) id MAA0000001987; Fri, 23 Jul 1999 12:57:02 -0400 (EDT) Sender: frival@zk3.dec.com Message-ID: <37989EDD.DBFBAB4C@zk3.dec.com> Date: Fri, 23 Jul 1999 12:57:01 -0400 From: Peter Rival Organization: Tru64 UNIX Release Engineering Systems X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.3.10 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com CC: mjacob@feral.com Subject: Re: Linux Install on AlphaServer 4X00 5/400 21164 400MHz References: <37987036.FEFC2FFF@zk3.dec.com> Content-Type: multipart/alternative; boundary="------------C09034657B0974C776B6BFFF" --------------C09034657B0974C776B6BFFF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Peter Rival wrote: > > if (open("/dev/console", O_RDWR, 0) < 0) > printk("Warning: unable to open an initial > console.\n"); > > (void) dup(0); > (void) dup(0); > > .... > > My guess is that yes, the install kernel never intended to support > serial console. I'd call that an oversight if that's the case, but > one that probably wouldn't happen again. We'll see what happens - > this shouldn't take too long... Well, that part was correct - it didn't take too long at all. The above code is what's breaking. The interesting thing is what appears to be the cause - the devices used on the RH 6.0 CD. It _appears_ that to save space, /dev/console used the device number pairing (4,0) meant for tty0, instead of that which is normally used (5,1). Does anyone who understands this code path a bit better than I know why I can get through this section of booting if all I do is change "/dev/console" to "/dev/ttyS0"? Yeah, it chokes shortly thereafter, but this says something (I think). Anyway, here's the error that I'm up to now (I'm using 2.3.10, as it's the latest stable kernel I have that actually builds)... VFS: Mounted root (iso9660 filesystem) readonly. Freeing unused kernel memory: 112k freed hello Red Hat install init version 1.1 starting mounting /proc filesystem... done opening /proc/cmdline... done checking command line arguments... unknown option 'console=ttyS0'!done checking for NFS root filesystem...no trying to remount root filesystem read write... done checking for writeable /tmp... no (probably a CD rooted install) mke2fs 1.14, 9-Jkmod: failed to exec /sbin/modprobe -s -k char-major-4, errno = an-1999 for EXT2 FS 0.5b, 95/08/09 Linux ext2 filesystem format Filesystem label= 80 inodes, 300 blocks 15 blocks (5.00%) reserved for the super user First data block=1 Block size=1024 (log=0) Fragment size=1024 (log=0) 1 block group 8192 blocks per group, 8192 fragments per group 80 inodes per group Writing inode tables: done Writing superblocks and filesystem accounting information: done creating 300k of ramdisk space... done mounting /tmp from ramdisk... done couldn't open /dev/tty4 for syslog -- still using /tmp/syslog running install... failed to open /dev/tty1failed. I can't recover from this. I've attached an extracted .config - maybe someone can smack me around and show me what I'm missing. I'm hoping that someone just says "Oh, just make /dev/console have the correct major/minor, create a /dev/tty0, and walk away" or something like that. Even if I have to burn a CD again to get this to work, I'll be happy... - Pete --------------C09034657B0974C776B6BFFF Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Peter Rival wrote:

<snip>

 
        if (open("/dev/console", O_RDWR, 0) < 0)
                printk("Warning: unable to open an initial console.\n");

        (void) dup(0);
        (void) dup(0);

....

My guess is that yes, the install kernel never intended to support serial console.  I'd call that an oversight if that's the case, but one that probably wouldn't happen again.  We'll see what happens - this shouldn't take too long...


Well, that part was correct - it didn't take too long at all.  The above code is what's breaking.  The interesting thing is what appears to be the cause - the devices used on the RH 6.0 CD.  It _appears_ that to save space, /dev/console used the device number pairing (4,0) meant for tty0, instead of that which is normally used (5,1).

Does anyone who understands this code path a bit better than I know why I can get through this section of booting if all I do is change "/dev/console" to "/dev/ttyS0"?  Yeah, it chokes shortly thereafter, but this says something (I think).  Anyway, here's the error that I'm up to now (I'm using 2.3.10, as it's the latest stable kernel I have that actually builds)...

VFS: Mounted root (iso9660 filesystem) readonly.
Freeing unused kernel memory: 112k freed
hello
Red Hat install init version 1.1 starting
mounting /proc filesystem... done
opening /proc/cmdline... done
checking command line arguments...
 unknown option 'console=ttyS0'!done
checking for NFS root filesystem...no
trying to remount root filesystem read write... done
checking for writeable /tmp... no (probably a CD rooted install)
mke2fs 1.14, 9-Jkmod: failed to exec /sbin/modprobe -s -k char-major-4, errno =
an-1999 for EXT2 FS 0.5b, 95/08/09
Linux ext2 filesystem format
Filesystem label=
80 inodes, 300 blocks
15 blocks (5.00%) reserved for the super user
First data block=1
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1 block group
8192 blocks per group, 8192 fragments per group
80 inodes per group

Writing inode tables: done
Writing superblocks and filesystem accounting information: done
creating 300k of ramdisk space... done
mounting /tmp from ramdisk... done
couldn't open /dev/tty4 for syslog -- still using /tmp/syslog
running install...
failed to open /dev/tty1failed.

I can't recover from this.

I've attached an extracted .config - maybe someone can smack me around and show me what I'm missing.  I'm hoping that someone just says "Oh, just make /dev/console have the correct major/minor, create a /dev/tty0, and walk away" or something like that.  Even if I have to burn a CD again to get this to work, I'll be happy...

 - Pete --------------C09034657B0974C776B6BFFF--