Subject: Kernel (i386) booting problems - wscons ?
To: None <netbsd-help@netbsd.org>
From: Meike Aulbach <sonne@r4k.net>
List: netbsd-help
Date: 07/20/1999 14:33:18
Hi,

I decided to install NetBSD 1.4 on my old 468DX4 some weeks ago, and
almost everytihng works fine so far.
I boot the GENERIC i386 kernel compiled by perry@cynic.cynic.net,
the bootmessages look like this:

NetBSD 1.4 (GENERIC) #0: Fri May  7 12:27:31 PDT 1999
    perry@cynic.cynic.net:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: family 4 model e step 4
cpu0: AMD Am5x86 W/T 133/160 (486-class)
real mem  = 33161216
avail mem = 27242496
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
isa0 at mainbus0
ne0 at isa0 port 0x280-0x29f irq 9
ne0: NE2000 Ethernet
ne0: Ethernet address 00:80:48:e2:99:92
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <ST3660A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 520MB, 1057 cyl, 16 head, 63 sec, 512 bytes/sect x 1065456 sectors
wd0: drive supports PIO mode 3, DMA mode 1
wd1 at wdc0 channel 0 drive 1: <ST32122A>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 2014MB, 4092 cyl, 16 head, 63 sec, 512 bytes/sect x 4124736 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus0 at wdc1 channel 0
cd0 at atapibus0 drive 1: <ATAPI CDROM, , V1.10> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 1
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0: console (80x25, vt100 emulation)
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.2MB, 80 cyl, 2 head, 15 sec
isapnp0: read port 0x203
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,3
sb1: Creative ViBRA16X PnP Audio: dsp v4.16
midi1 at sb1: <MPU-401 MIDI UART>
audio0 at sb1: half duplex
opl0 at sb1: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
joy0 at isapnp0 port 0x201/1
joy0: Creative ViBRA16X PnP Game
joy0: joystick not connected
biomask c040 netmask c240 ttymask c2c2
wscons: wskbd0 glued to wsdisplay0 (console)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

Now I want to compile an own kernel though, because I keep having
problems with the pnp ne2000 network card (which says device timeout),
and I want to try the card on some other irqs (I have a software to
change irqs on the card, but irq 9 is disabled in the menu). This
is not the real problem anyway, I'll get rid of it like I've done lots
of times before.

What really annoys me, is that everytime I've compiled a new kernel by my
own, the booting of the new kernel stops at the line

biomask c040 netmask c240 ttymask c2c2

then hangs about two or three seconds and reboots. I cant capture the 
earlier bootmessages of this kernel because it hangs before the harddrives
are mounted and no /var/run/dmesg.boot is created, but from what I can
see I can tell they're fine. 

I thought this must be because of the wscons stuff, so I checked my
wscons settings, but they were the same as in the GENERIC configfile.
I also tried disabling wscons and enabling either vt0 or even pc0, but
I got exactly the same results: rebooting after the line
biomask c040 netmask c240 ttymask c2c2. 

I do build a kernel like: (cd /usr/src/sys/arch/i386/conf; cp GENERIC MYCONF;
vi MYCONF; config -p MYCONF; cd ../compile; MYCONF; make clean && make
depend && make && cp netbsd /netbsd) and I use the sources from
NetBSD-1.4/source/sets/syssrc.tgz

I have given the configfile I use to someone else with NetBSD, he compiled
the kernel and booted it _successfully_ - of course on his box. But when
I try to use the kernel compiled by him - hangs at biomask ...

I even compiled a GENERIC kernel without any changes, and it
hangs at biomask - strange, isnt it ? I cant think of anything else
what I can try now, maybe anyone has some suggestions for me ? 

bye, Meike

-- 
Meike Aulbach <sonne@core.r4k.net>
PGP Key fingerprint = 66 05 8B 5E AD 80 60 DE  06 EA 60 D6 E0 D8 F1 43
 - You probably wouldn't worry about what people think of you if you could
   know how seldom they do.