>Synopsis: OpenBSD 5.8 kernel drops to ddb before boot is finished
>Category: kernel i386
>Environment:
System: OpenBSD 5.8
Details: OpenBSD 5.8 (GENERIC) #1066: Sun Aug 16 02:33:15 MDT 2015
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine: i386
>Description:
I'm trying to netboot an ALi 1487/1489 based PCI motherboard (Abit PB-4)
with an AMD 5x86 133 processor with the GENERIC i386 kernel of OpenBSD
5.8. But the kernel always drops to ddb after the "cpu0 at mainbus0:
(uniprocessor)" message. Using the 5.7 kernel or the kernel of
5.9-current build #1540 works ok though. I face the same problem when
using another AMD processor (an AMD DX4 100). Like the AMD 5x86 the AMD
DX4 is also working with the 5.7 and 5.9-current build #1540 kernel but
crashes with the 5.8 kernel. Interestingly, when using an Intel DX4-S
100 OVERDRIVE processor the same 5.8 kernel boots through without a
problem.

I have seen similar behaviour for the same processor (AMD 5x86) in a SIS
85C471 based single board computer when using the installer floppies:
floppy58.fs crashes, floppy57.fs does not.

I have not tested an installation on a hard disk, but only netbooted the
kernels via pxeboot and used NFS root file systems on the ALi based
motherboard. I don't assume the boot method plays a role here, but
assume a difference between the AMD 486 processors and the Intel 486
processor I used.

I have attached the dmesg output when using the 5.7 #738 or 5.9-current
#1540 kernels with the AMD 5x86 133 processor and the dmesg output when
using the 5.8 #1066 kernel with the Intel DX4-S 100 processor below.

Here are the boot messages including the crash, the trace output, etc.:

OpenBSD 5.8 (GENERIC) #1066: Sun Aug 16 02:33:00 MDT 2015
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem = 100155392 (95MB)
avail mem = 85897216 (81MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/03/96, BIOS32 rev. 0 @ 0xfbd40
apm0 at bios0: Power Management spec V1.1 (slowidle)
apm0: APM engage (device 1): power management disabled (1)
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc260
pcibios0: PCI BIOS has 3 Interrupt Routing table entries
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
kernel: privileged instruction fault trap, code=0
Stopped at cpu_init+0x2c: movl %cr4,%eax
cpu_init(d0c474c0,d0c474c0,30,0,d0d12de4) at cpu_init+0x2c
cpu_attach(d1037080,d0f42400,d01d12e80,d03bd20b,0) at cpu_attach+0xbd
config_attach(d1037080,d0b1e780,d0d12e80,d058f410,8) at config_attach+0x1bc
mainbus_attach(0,d1037080,0,ff000,0) at mainbus_attach+0x306
config_attach(0,d0b1c040,0,0,d0d11000) at config_attach+0x1bc
config_rootfound(d09d1a56,0,7,0,d03bae40) at config_rootfound+0x46
cpu_configure(d09a1968,0,1000,cfb3e000,1) at cpu_configure+0x4f
main(d0200503,d020050b,0,0,0) at main+0x3ef
ddb> ps
     PID PPID PGRP UID S FLAGS   WAIT COMMAND
*      0   -1    0   0 7 0x10200      swapper
ddb> show panic
the kernel did not panic
ddb> show registers
ds                      0x10
es                      0x10
fs                      0x20
gs                         0
edi               0xd0b3f120              cpu_cd
esi               0xd0d12e80              end+0xc9118
ebp               0xd0d12da8              end+0xc9040
ebx               0xd0c474c0              cpu_info_primary
edx                      0x1
ecx                      0xc
eax               0x8001003f
eip               0xd08510bc              cpu_init+0x2c
cs                       0x8
eflags               0x10086
esp               0xd0d12d90              end+0xc9028
ss                      0x10
cpu_init+0x2c:     movl     %cr4,%eax
ddb>

If some of the lines or values don't make sense, please let me know.
I'll then recheck with my screen shots. I needed to manually type part
of the messages from screen shots or the screen directly as I couldn't
get a serial console to work on this system. All messages are identical
for the AMD DX4 100, except for the third and fourth line which is:

cpu0: Intel 486DX (486-class)

...for the AMD DX4. The line for the FPU is missing though for the AMD
DX4.
>How-To-Repeat:
(Net)boot the OpenBSD 5.8 build #1066 kernel on a 486 system with an
AMD 5x86 133 (or possibly any other AMD 486) processor.
>Fix:
Unknown / Workaround: Use an Intel 486 DX4-S processor.

dmesg:
OpenBSD 5.7 (GENERIC) #738: Sun Mar 8 10:59:31 MDT 2015
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem = 100155392 (95MB)
avail mem = 86183936 (82MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/03/96, BIOS32 rev. 0 @ 0xfbd40
apm0 at bios0: Power Management spec V1.1 (slowidle)
apm0: APM engage (device 1): power management disabled (1)
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc260
pcibios0: PCI BIOS has 3 Interrupt Routing table entries
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Acer Labs M1489 PCI" rev 0x00
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x08, i82559: irq 15, address 00:50:8b:ba:m4:86
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 4 function 0 "S3 Trio64V2/DX" rev 0x16
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
PXE boot MAC address 00:50:8b:ba:m4:86, interface fxp0
nfs_boot: using interface fxp0, with revarp & bootparams
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: client_addr=192.168.178.42
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: server_addr=192.168.178.3 hostname=am486.domain.tld
root on 192.168.178.9:/srv/nfs/am486/root
swap on 192.168.178.9:/srv/nfs/am486/swap

****

OpenBSD 5.9 (GENERIC) #1540: Thu Feb 4 09:52:15 MST 2016
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem = 100155392 (95MB)
avail mem = 85757952 (81MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/03/96, BIOS32 rev. 0 @ 0xfbd40
apm0 at bios0: Power Management spec V1.1 (slowidle)
apm0: APM engage (device 1): power management disabled (1)
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc260
pcibios0: PCI BIOS has 3 Interrupt Routing table entries
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Acer Labs M1489 PCI" rev 0x00
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x08, i82559: irq 15, address 00:50:8b:ba:m4:86
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 4 function 0 "S3 Trio64V2/DX" rev 0x16
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
PXE boot MAC address 00:50:8b:ba:m4:86, interface fxp0
nfs_boot: using interface fxp0, with revarp & bootparams
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: client_addr=192.168.178.42
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: server_addr=192.168.178.3 hostname=am486.domain.tld
root on 192.168.178.9:/srv/nfs/am486/root
swap on 192.168.178.9:/srv/nfs/am486/swap

****

OpenBSD 5.8 (GENERIC) #1066: Sun Aug 16 02:33:00 MDT 2015
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 486DX4 ("GenuineIntel" 486-class)
cpu0: FPU,V86
real mem = 100155392 (95MB)
avail mem = 85897216 (81MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/03/96, BIOS32 rev. 0 @ 0xfbd40
apm0 at bios0: Power Management spec V1.1 (slowidle)
apm0: APM engage (device 1): power management disabled (1)
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc260
pcibios0: PCI BIOS has 3 Interrupt Routing table entries
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Acer Labs M1489 PCI" rev 0x00
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x08, i82559: irq 15, address 00:50:8b:ba:m4:86
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 4 function 0 "S3 Trio64V2/DX" rev 0x16
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
PXE boot MAC address 00:50:8b:ba:m4:86, interface fxp0
nfs_boot: using interface fxp0, with revarp & bootparams
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: client_addr=192.168.178.42
fxp0: error 5, could not read firmware fxp-d101ma
nfs_boot: server_addr=192.168.178.3 hostname=am486.domain.tld
root on 192.168.178.9:/srv/nfs/am486/root
swap on 192.168.178.9:/srv/nfs/am486/swap

Reply via email to