Subject: port-i386/10241: netbsd does not boot on intel server board (/boot issue?)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 05/30/2000 23:57:18
>Number: 10241
>Category: port-i386
>Synopsis: netbsd does not boot on intel server board (/boot issue?)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 30 23:58:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: 20000527 i386 snapshot boot floppy on ftp.netbsd.org
>Organization:
itojun.org
>Environment:
>Description:
I tried to boot netbsd on intel server board, however, it failed
very badly. it seems to be issues with /boot or gz'ed kernel image.
i have this machine with me for a couple of days.
To separate issue from floppy drive failure, I copied it onto two
different pairs of fresh floppy disk. the problem repeats every time.
also, boot-tiny.fs panics too, but slightly different manner
(so floppy swap is not guilty)
this guy has 2 PenIII CPUs, 1G of main memory, onboard AIC-7896 and
couple of other things.
10-finger typescript is like this:
--- boot1.fs + boot2.fs
NetBSD/i386 BIOS Boot, Revision 2.7
(root@swinger, Sat May 27 16:01:01 PDT 2000)
Memory: 630/1047480 k
Use hd1a:netbsd to boot sd0 when wd0 is also installed
Press return to boot now, any other key for boot menu
booting fd0a:netbsd - starting in 0
2220756+1659024-
Please remove disk 1, insert disk 2, and type return...
+177104]=0x3df948
[ netbsd ELF symbol table not valid ]
[ netbsd a.out symbol table not valid ]
[ no symbol table formats found ]
Copyright (c) 1996, 1997, 1998, 1999, 2000
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
kernel: page fault trap, code=0
Stopped in at 0xc023bcde: movl 0x4(%esi),%edx
db> trace
(null)(c04df0e0,c1313000,1dc4000,7,13) at 0xc023bcbe
(null)(c04b6820,236000,1,c04e0010,c04ca5c0) at 0xc022610e
(null)(c1312000,ffc00000,c04e2f78,c04e2f7c,4e7000) at 0xc02394ee
(null)(c02c29a9,c03235e0,c04e0010,4e0000,4e7000) at 0xc022584f
(null)(0,0,0,0,0) at 0xc0167419
---
--- boot-tiny.fs
955316+1608216+145048]=0x2965f8
Copyright (c) 1996, 1997, 1998, 1999, 2000
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
fatal page fault in supervisor mode
trap type 6 code 0 eip c01ba85e cs 8 eflags 10202 cr2 d3380c cpl ffffffff
panic: trap
The operating system has halted.
Please press any key to reboot.
---
here's openbsd 2.7 beta boot floppy boot messages, just for comparison/
hardware feature info:
---
OpenBSD 2.7 (RAMDISK) #71: Sat May 13 18:18:00 MDT 2000
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 696 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SIMD
real mem = 1073262592 (1048108K)
avail mem = 992227328 (968972K)
using 5689 buffers containing 53764096 bytes (52504K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(1d) BIOS, date 02/07/00
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82440BX PCI-AGP (PAC)" rev 0x00
ppb0 at pci0 dev 1 function 0 "Intel 82440BX AGP (PAC)" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 15 function 0 "DEC DECchip 21150-BC PCI-PCI" rev 0x06
pci2 at ppb1 bus 2
ppb2 at pci2 dev 4 function 0 vendor "Texas Instruments", unknown product 0xac21 rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci3 dev 4 function 0 "DEC DECchip 21152 PCI-PCI" rev 0x03
pci4 at ppb3 bus 4
fxp0 at pci4 dev 4 function 0 "Intel 82557" rev 0x05: irq 5, address 00:50:8b:5e:e4:6a
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
fxp1 at pci4 dev 5 function 0 "Intel 82557" rev 0x05: irq 10, address 00:50:8b:5e:e4:6b
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 0
ahc1 at pci0 dev 12 function 0 "Adaptec(2) AIC-7896/7 Ultra2" rev 0x00: irq 11
ahc1: Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc1: 16 targets
ahc1: target 0 using 16bit transfers
ahc1: target 0 synchronous at 40.0MHz, offset = 0xf
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST318203LC, 0002> SCSI2 0/direct fixed
sd0: 17366MB, 9772 cyl, 12 head, 303 sec, 512 bytes/sec, 35566480 sec total
ahc1: target 6 using 8bit transfers
ahc1: target 6 using asynchronous transfers
scsibus0 targ 6 lun 0: <ESG-SHV, SCA HSBP M10, 0.03> SCSI2 3/processor fixed not configured
ahc2 at pci0 dev 12 function 1 "Adaptec(2) AIC-7896/7 Ultra2" rev 0x00: irq 11
ahc2: Wide Channel B, SCSI Id=7, 16/255 SCBs
scsibus1 at ahc2: 16 targets
fxp2 at pci0 dev 14 function 0 "Intel 82557" rev 0x08: irq 10, address 00:90:27:f6:27:bc
inphy2 at fxp2 phy 1: i82555 10/100 media interface, rev. 4
"Intel 82371AB PIIX4 ISA" rev 0x02 at pci0 dev 18 function 0 not configured
pciide0 at pci0 dev 18 function 1 "Intel 82371AB IDE (PIIX4)" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 1
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <TEAC, CD-224E, 1.5A> SCSI0 5/cdrom removable
cd0: can use 32-bit, PIO mode 4, DMA mode 2
pciide0: channel 1 interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
"Intel 82371AB USB (PIIX4)" rev 0x01 at pci0 dev 18 function 2 not configured
"Intel 82371AB Power Management (PIIX4)" rev 0x02 at pci0 dev 18 function 3 not configured
"Cirrus Logic CL-GD5480" rev 0x23 at pci0 dev 20 function 0 not configured
isa0 at mainbus0
isadma0 at isa0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
vt0 at isa0 port 0x60/16 irq 1: vga 80 col, color, 8 scr, mf2-kbd
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 8840 netmask 8c60 ttymask 8c62
rd0: fixed, 3560 blocks
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
---
here's result from BSDI 4.1 + KAME, installed in harddisk.
"cpu mp" command will put this machine into multiprocessor mode just fine.
---
BSDI BSD/OS 4.1 Kernel #0: Thu May 25 22:11:36 JST 2000
itojun@hogehoge.iij.ad.jp:/usr/home/itojun/k/kame/bsdi4/sys/compile/GENERIC.v6
Cpu-1 = Pentium II (696.41 MHz) GenuineIntel mdl 8 step 1 type 0, feat 387fbff
real mem = 1073741824 (1024.00 MB)
avail mem = 1053233152 (1004.44 MB)
buffer cache = 107208704 (102.24 MB)
isa0 (root)
pci0 at root: configuration mechanism 1
pccons0 at isa0 iobase 0x60 irq 1: color, 8 screens
pcaux0 at isa0 iobase 0x60 irq 12
com0 at isa0 iobase 0x3f8 irq 4: buffered (16550AF)
com1 at isa0 iobase 0x2f8 irq 3: buffered (16550AF)
lp0 at isa0 iobase 0x378 irq 7
fdc0 at isa0 iobase 0x3f0 irq 6 drq 2: floppy controller
fd0 at fdc0 slave 0: 1.44M HD 3.5 floppy
wdc1 at isa0 iobase 0x170 irq 15: disk controller
wdpi0 at wdc1 drive 0: CD-224E rev=1.5A
wdpi0: transfer size=2048 polled cmd DRQ
wdpi0: Delaying to allow ATAPI device to finish self-test
wdpi0: Unit did not become ready
wdpi0: cdr_rd audio_play m2f1 m2f2 multi_sess cdda cdda_sia c2ptrs isrc upc lock eject sep_vol sep_mute tray ms=4234K buf=128K Nvol=256
tg0 at wdpi0 target 0
sr0 at tg0 unit 0: CD-ROM: type 0x5, qual 0x80, ver 0 removable
npx0 at isa0 iobase 0xf0: math coprocessor
vga0 at isa0 iobase 0x3c0 maddr 0xa0000-0xaffff: VGA graphics
aic0 at pci0 irq 11 maddr 0xf4100000-0xf41000ff
aic0: Adaptec aic7896/97 Ultra2 SCSI HBA
aic0: Termination - LVD Low On, LVD Hi On, SE Low Off, SE Hi Off
aic0: initiator id 7 parity enabled, active negation enabled
aic0: Delaying after SCSI bus reset for device self tests 5 4 3 2 1 0
tg1 at aic0 target 0: disconnect, wide, synchronous @ 80.0MB/s
sd0 at tg1 unit 0: disk: SEAGATE ST318203LC rev 0002 (SCSI-2) 35566480*512
tg2 at aic0 target 6: disconnect, asynchronous
sg0 at tg2 unit 0: SCSI generic unit: ESG-SHV SCA HSBP M10 rev 0.03 (SCSI-2)
aic1 at pci0 irq 11 maddr 0xf4101000-0xf41010ff
aic1: Adaptec aic7896/97 Ultra2 SCSI HBA
aic1: Termination - LVD Low On, LVD Hi On, SE Low Off, SE Hi Off
aic1: initiator id 7 parity enabled, active negation enabled
aic1: Delaying after SCSI bus reset for device self tests 5 4 3 2 1 0
exp0 at pci0 irq 10 maddr 0xf4102000-0xf4102fff: eaddr 00:90:27:f6:27:bc rev 8
i555p0 at exp0 phy 1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, Auto
exp1 at pci0 irq 5 maddr 0xfc000000-0xfc000fff: eaddr 00:50:8b:5e:e4:6a rev 5
i555p1 at exp1 phy 1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, Auto
exp2 at pci0 irq 10 maddr 0xfc001000-0xfc001fff: eaddr 00:50:8b:5e:e4:6b rev 5
i555p2 at exp2 phy 1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, Auto
changing root device to sd0a
NetCon TFS file system loaded (c) 1996 NetCon Corp. Miami, FL
hogehoge# cpu mp
Boot processor is now Cpu-1
Cpu-0 = Pentium II (696.41 MHz) GenuineIntel mdl 8 step 1 type 0, feat 387fbff
hogehoge# cpu pci
Bus Agent Func Vendor Device Irq Pin
=== ===== ==== ====== ====== === ===
0 0 0 8086 71a0 0 X
0 1 0 8086 71a1 0 X
0 c 0 9005 5f b A
0 c 1 9005 5f b A
0 e 0 8086 1229 a A
0 12 0 8086 7110 0 X
0 12 1 8086 7111 0 X
0 12 2 8086 7112 a D
0 12 3 8086 7113 0 X
0 14 0 1013 bc ff X
1 f 0 1011 23 0 X
2 4 0 104c ac21 ff X
3 4 0 1011 24 0 X
4 4 0 8086 1229 5 A
4 5 0 8086 1229 a A
hogehoge# cpu dumplapic
ffff0020 ID : 01000000
ffff0030 VER : 00040011
ffff0080 TPR : 00000010
ffff0090 APR : 00000010
ffff00a0 PPR : 00000010
ffff00c0 RRR : 00040011
ffff00d0 LDR : 00000000
ffff00e0 DFR : ffffffff
ffff00f0 SIVR : 000001ff
ffff0280 ERR : 00000040
ffff0300 ICRL : 000e40fd
ffff0310 ICRH : 00000000
ffff0320 LVT_T : 00010000
ffff0350 LVT_0 : 00010000
ffff0360 LVT_1 : 00000400
ffff0370 LVT_E : 000000fe
ffff0380 ICNT : 00000000
ffff0390 CCNT : 00000000
ffff03e0 TDIV : 00000000
ffff0100 ISR :
ffff0180 TMR : 112 129
ffff0200 IRR :
# cpu bootparam
B_REALBOOTDEV
Major=18 Part=0 Unit=0
B_ISAPARAM
Reserved IRQs :
Reserved Ports: 0x3b0-0x3bf
Reserved IOMEM: 0xa0000-0xcffff, 0xe0000-0xfffff
Pccard_iowait = 0
B_AUTODEBUG
Flags: quiet
B_INTEL_MP
Floating Pointer Structure
Physical addr : 0x0009f960
FPS length : 1
Revision : 4
Checksum : 0x3e
Config type : 0
Feature bytes 2-5 :00 00 00 00
MP base configuration table
Revision : 4
Checksum : 0x51
OEM ID : INTEL
Product ID : Lancewood
OEM table pointer : 0x00000000
OEM table size : 0
Entry count : 29
Local APIC addr : 0xfee00000
Extended table len: 164
Ext table checksum: 0xcf
Base entries:
===== Processor
APIC ID : 1
APIC version : 17
CPU flags : 0x3 enabled bootstrap
Signature : 0x681
Family : 6
Model : 8
Stepping : 1
Features : 0x387fbff
===== Processor
APIC ID : 0
APIC version : 17
CPU flags : 0x1 enabled
Signature : 0x681
Family : 6
Model : 8
Stepping : 1
Features : 0x387fbff
===== Bus
Bus ID : 0
Bus Type : PCI
===== Bus
Bus ID : 1
Bus Type : PCI
===== Bus
Bus ID : 2
Bus Type : PCI
===== Bus
Bus ID : 3
Bus Type : PCI
===== Bus
Bus ID : 4
Bus Type : PCI
===== Bus
Bus ID : 5
Bus Type : ISA
===== IO Apic
APIC ID : 2
APIC version : 17
APIC flags : 0x1 enabled
APIC address : 0xfec00000
===== I/O Interrupt
Type : ExtINT (3)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 0
Dest I/O APIC id : 2
Dest I/O APIC in# : 0
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 1
Dest I/O APIC id : 2
Dest I/O APIC in# : 1
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 0
Dest I/O APIC id : 2
Dest I/O APIC in# : 2
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 3
Dest I/O APIC id : 2
Dest I/O APIC in# : 3
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 4
Dest I/O APIC id : 2
Dest I/O APIC in# : 4
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 6
Dest I/O APIC id : 2
Dest I/O APIC in# : 6
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 7
Dest I/O APIC id : 2
Dest I/O APIC in# : 7
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 8
Dest I/O APIC id : 2
Dest I/O APIC in# : 8
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 12
Dest I/O APIC id : 2
Dest I/O APIC in# : 12
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 13
Dest I/O APIC id : 2
Dest I/O APIC in# : 13
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 14
Dest I/O APIC id : 2
Dest I/O APIC in# : 14
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 15
Dest I/O APIC id : 2
Dest I/O APIC in# : 15
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 0
Source bus irq : 48
Dest I/O APIC id : 2
Dest I/O APIC in# : 19
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 0
Source bus irq : 48
Dest I/O APIC id : 2
Dest I/O APIC in# : 19
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 0
Source bus irq : 56
Dest I/O APIC id : 2
Dest I/O APIC in# : 21
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 0
Source bus irq : 75
Dest I/O APIC id : 2
Dest I/O APIC in# : 21
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 4
Source bus irq : 16
Dest I/O APIC id : 2
Dest I/O APIC in# : 20
===== I/O Interrupt
Type : Vectored interrupt (0)
Flags : 0xf
Polarity : active low (3)
Trigger mode : level (3)
Source bus id : 4
Source bus irq : 20
Dest I/O APIC id : 2
Dest I/O APIC in# : 21
===== Lcl Interrupt
Type : ExtINT (3)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 5
Source bus irq : 0
Dest Lcl APIC id : 255
Dest Lcl APIC in# : 0
===== Lcl Interrupt
Type : NMI (1)
Flags : 0x5
Polarity : active high (1)
Trigger mode : edge (1)
Source bus id : 0
Source bus irq : 0
Dest Lcl APIC id : 255
Dest Lcl APIC in# : 1
Extended Entry 1: system address space mapping
Bus ID : 0
Address type : 0 I/O
Base address : 0x0000000000000000
Length : 0x0000000000010000
Extended Entry 2: system address space mapping
Bus ID : 0
Address type : 1 memory address
Base address : 0x0000000040000000
Length : 0x00000000b6000000
Extended Entry 3: system address space mapping
Bus ID : 0
Address type : 2 prefetch address
Base address : 0x00000000f6000000
Length : 0x0000000006100000
Extended Entry 4: system address space mapping
Bus ID : 0
Address type : 1 memory address
Base address : 0x00000000fc100000
Length : 0x0000000002d00000
Extended Entry 5: system address space mapping
Bus ID : 0
Address type : 1 memory address
Base address : 0x00000000fef00000
Length : 0x0000000001100000
Extended Entry 6: system address space mapping
Bus ID : 0
Address type : 1 memory address
Base address : 0x00000000000a0000
Length : 0x0000000000020000
Extended Entry 7: system address space mapping
Bus ID : 0
Address type : 1 memory address
Base address : 0x00000000000d0000
Length : 0x0000000000018000
Extended Entry 8: bus heirarchy descriptor
Bus ID : 5
Flags : 0x1 subtractive decode
Parent ID : 0
Extended Entry 9: compatibility address space modifier
Bus ID : 0
Flags : 0x0
Predefined range list: 0 ISA
Extended Entry 10: compatibility address space modifier
Bus ID : 0
Flags : 0x0
Predefined range list: 1 VGA
B_BIOSGEOM
Cylinders : 22505
Heads : 247
Eflag : 0xe8
Esectors : 240
Wpcom : 0xee 0xcb
Ctl : 0xb0
Ecyl : 0x0 0xe6
Etracks : 67
Lzone : 0xe6 0xed
Nsectors/trk : 228
Flags : 0x0
B_BIOSINFO
Basemem : 0x0009f000 (636 Kb)
Extmem : 0x3ff00000 (1047552 Kb)
Kbflags : 0x0
# cpu intr
Apic Pin Type Polarity Mode Bus Source
==== === ====== ======== ======== ========== ======
2 0 ExtINT
2 1 Vector High Edge ISA (5) IRQ 1
2 2 Vector High Edge ISA (5) IRQ 0
2 3 Vector High Edge ISA (5) IRQ 3
2 4 Vector High Edge ISA (5) IRQ 4
2 6 Vector High Edge ISA (5) IRQ 6
2 7 Vector High Edge ISA (5) IRQ 7
2 8 Vector High Edge ISA (5) IRQ 8
2 c Vector High Edge ISA (5) IRQ c
2 d Vector High Edge ISA (5) IRQ d
2 e Vector High Edge ISA (5) IRQ e
2 f Vector High Edge ISA (5) IRQ f
2 13 Vector Low Level PCI (0) Agent 0xc Pin A (maps to irq b)
2 13 Vector Low Level PCI (0) Agent 0xc Pin A (maps to irq b)
2 15 Vector Low Level PCI (0) Agent 0xe Pin A (maps to irq a)
2 15 Vector Low Level PCI (0) Agent 0x12 Pin D (maps to irq a)
2 14 Vector Low Level PCI (4) Agent 0x4 Pin A (maps to irq 5)
2 15 Vector Low Level PCI (4) Agent 0x5 Pin A (maps to irq a)
---
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: