Subject: port-i386/22096: i386 bootblocks are incompatible with older mainboards
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 07/08/2003 23:16:34
>Number:         22096
>Category:       port-i386
>Synopsis:       i386 bootblocks are incompatible with older mainboards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 08 21:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6U
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.6U NetBSD 1.6U (LYSSA) #5: Sun Jul 6 17:51:41 CEST 2003 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
NetBSD-current's i386 bootblock doesn't work on an ASUS CUBX
motherboard any more. It simply gets stuck before the 2nd stage loader
prompts for the boot options. I've rewritten the bootblocks with
"installboot" and tried a Promise ULTRA 100 instead of the onboard
CMD 0648 IDE hostadapter but it didn't help. But since I finally
replaced the NetBSD-current boot blocks with NetBSD 1.6.1_STABLE ones
- the motherboard was running 1.6.1_STABLE before - the system boots
from the harddisk fine again. So there is a serious regression in the
bootloaders caused by changes made after NetBSD 1.6 was released.

Here is the "dmesg" output for the affected system:

NetBSD 1.6U (LYSSA) #5: Sun Jul  6 17:51:41 CEST 2003
	tron@lyssa.zhadum.de:/src/sys/compile/LYSSA
total memory = 511 MB
avail memory = 470 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xf06c0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Celeron (686-class), 1102.56 MHz, id 0x68a
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 128 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <ASUS  ,CUBX    ,30303031>, AslId <MSFT,31313031>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
fdc0 at acpi0 (PNP0700)
fdc0: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
lpt0 at acpi0 (PNP0400)
lpt0: io 0x378-0x37f irq 7
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com1 at acpi0 (PNP0501-2)
com1: io 0x2f8-0x2ff irq 3
com1: ns16550a, working fifo
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
pckbc1 at acpi0 (PNP0F13): aux port
pckbc1: irq 12
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies Radeon 8500/8500LE (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 4 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 4 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <PLEXTOR CD-R   PX-W2410A, 379089, 1.04> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 4 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 4 function 3 not configured
bktr0 at pci0 dev 9 function 0
bktr0: interrupting at irq 9
bktr0: Hauppauge Model 60114 C VM
bktr0: Detected a MSP3410D-B4 at 0x80
bktr0: Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo.
siop0 at pci0 dev 10 function 0: Symbios Logic 53c810a (fast scsi)
siop0: interrupting at irq 5
scsibus0 at siop0: 8 targets, 8 luns per target
emuxki0 at pci0 dev 11 function 0: Creative Labs SBLive! EMU 10000 (audio multimedia, revision 0x07)
emuxki0: interrupting at irq 10
emuxki0: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
emuxki0: surround DAC
audio0 at emuxki0: full duplex, mmap, independent
joy0 at pci0 dev 11 function 1: Creative Labs PCI Gameport Joystick (rev 0x07)
joy0: joystick not connected
pciide1 at pci0 dev 13 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 9 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <IC35L060AVER07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 58644 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 120103200 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide1: secondary channel configured to native-PCI mode
wd1 at pciide1 channel 1 drive 0: <IC35L060AVER07-0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 58644 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 120103200 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wm0 at pci0 dev 14 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm0: interrupting at irq 5
wm0: Ethernet address 00:07:e9:0e:b9:a8
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
isa0 at pcib0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
uhub1 at uhub0 port 2
uhub1: ALCOR Generic USB Hub, class 9/0, rev 1.10/1.00, addr 2
uhub1: 4 ports with 4 removable, self powered
cd1 at scsibus0 target 2 lun 0: <PIONEER, DVD-ROM DVD-303, 1.09> cdrom removable
cd1: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
uhub2 at uhub1 port 1
uhub2: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 3
uhub2: 4 ports with 4 removable, self powered
umass0 at uhub2 port 1 configuration 1 interface 0
umass0: Neodio Multi-format Flash Controller, rev 1.10/1.00, addr 4
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 4 luns per target
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 1 lun 0: <Generic, USB Storage-SMC, 0180> disk removable
sd0: drive offline
sd1 at scsibus1 target 1 lun 1: <Generic, USB Storage-CFC, 0180> disk removable
sd1: drive offline
sd2 at scsibus1 target 1 lun 2: <Generic, USB Storage-MMC, 0180> disk removable
sd2: drive offline
sd3 at scsibus1 target 1 lun 3: <Generic, USB Storage-MSC, 0180> disk removable
sd3: drive offline
sd0(umass0:0:1:0):  Check Condition on CDB: 0x1e 00 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:1:1):  Check Condition on CDB: 0x1e 20 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:1:2):  Check Condition on CDB: 0x1e 40 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:1:3):  Check Condition on CDB: 0x1e 60 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:1:0):  Check Condition on CDB: 0x1e 00 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:1:1):  Check Condition on CDB: 0x1e 20 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:1:2):  Check Condition on CDB: 0x1e 40 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:1:3):  Check Condition on CDB: 0x1e 60 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:1:0):  Check Condition on CDB: 0x1e 00 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:1:1):  Check Condition on CDB: 0x1e 20 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:1:2):  Check Condition on CDB: 0x1e 40 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:1:3):  Check Condition on CDB: 0x1e 60 00 00 01 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

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)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)

>How-To-Repeat:
Try to boot NetBSD-current with 1.6U bootblocks on an ASUS CUBX.

>Fix:
Using NetBSD 1.6.1_STABLE bootblock fixed the problem.

>Release-Note:
>Audit-Trail:
>Unformatted: