pre-2.0.31-5: hangs with "Unable to open an initial console." on boot

Trevor Johnson (trevor@jpj.net)
Thu, 14 Aug 1997 08:27:34 -0400 (EDT)


I received this error at boot time, and the boot stopped there. The
message comes from this section of init/main.c:

/*
* This keeps serial console MUCH cleaner, but does assume
* the console driver checks there really is a video device
* attached (Sparc effectively does).
*/

if ((open("/dev/tty1",O_RDWR,0) < 0) &&
(open("/dev/ttyS0",O_RDWR,0) < 0))
printk("Unable to open an initial console.\n");

I'm also using (for the first time) H. Peter Anvin's autofs patch, version
0.3.7. That patch doesn't change init/main.c and doesn't contain the words
"serial" or "console," and when I apply it to plain Linux 2.0.30, I don't
have the problem. I'm not using any other patches at all. In particular,
I'm not using the serial console patch. I tried using the init/main.c from
Linux 2.0.30, #if 0'ing the section above, replacing
drivers/char/console.c with the original version, and changing the
"vga = 6" line in my lilo.conf to "vga = 0" but all these (one or two at a
time) failed. I'm using an old VGA card, a Video 7 I think.

Here's the configuration I'm using for the kernel:

CONFIG_EXPERIMENTAL=y
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_NET=y
CONFIG_MAX_16M=y
CONFIG_PCI=y
CONFIG_PCI_OPTIMIZE=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_M486=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y
CONFIG_FIREWALL=y
CONFIG_INET=y
CONFIG_IP_FORWARD=y
CONFIG_IP_FIREWALL=y
CONFIG_IP_MASQUERADE=y
CONFIG_IP_TRANSPARENT_PROXY=y
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_NOSR=y
CONFIG_SCSI=y
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_AHA1542=y
CONFIG_NETDEVICES=y
CONFIG_PPP=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_ISA=y
CONFIG_NE2000=y
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_PROC_FS=y
CONFIG_SMB_FS=m
CONFIG_SMB_WIN95=y
CONFIG_ISO9660_FS=y
CONFIG_AUTOFS_FS=y
CONFIG_SERIAL=y
CONFIG_PRINTER=y
CONFIG_FTAPE=m

Here's my lilo.conf:

boot = /dev/hda
delay = 50
vga = normal # force sane state
ramdisk = 0 # paranoia setting
image = /boot/zImage-2.0.31
append="aha1542=0x234"
vga = 0
label = 2.0.31
root = /dev/hdc1
read-only
image = /boot/zImage-2.0.30
append="aha1542=0x234"
vga = 0
label = 2.0.30
root = /dev/hda1
read-only
___
Trevor Johnson