Subject: -current from today still crashes at boot
To: netbsd-macppc <port-macppc@netbsd.org>
From: Timo Schoeler <wanker4freedom@web.de>
List: port-macppc
Date: 03/18/2005 21:30:26
hi,

i updated my src and built a kernel this afternoon (cross-build from  
i386, because on my G4 building tools crashes my machine :(

booting on my G4 (dmesg [1]) i got following:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 3.99.1 (GENERIC) #0: Fri Mar 18 16:18:05 CET 2005
          
tis@mcbain.es43-bln.macfinity.net:/usr/src/sys/arch/macppc/compile/ 
GENER
IC
total memory = 1024 MB
avail memory = 981 MB
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
cpu0: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
cpu1 at mainbus0: ID 1
cpu1: processor off-line; multiprocessor support not present in kernel
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: cannot map framebuffer
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
ppb0 at pci1 dev 13 function 0: Digital Equipment DC21154 PCI-PCI  
Bridge (rev. 0
x05)
pci2 at ppb0 bus 1
pci2: i/o space, memory space enabled
obio0 at pci2 dev 7 function 0: addr 0x80000000
enabling KeyLargo internal modem
zsc0 at obio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
atabus2 at wdc2 channel 0
ohci0 at pci2 dev 8 function 0: Apple Computer KeyLargo USB Controller  
(rev. 0x0
0)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci2 dev 9 function 0: Apple Computer KeyLargo USB Controller  
(rev. 0x0
0)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
fwohci0 at pci2 dev 10 function 0: Texas Instruments TSB12LV23 IEEE  
1394 Host Co
ntroller (rev. 0x00)
fwohci0: interrupting at irq 63
fwohci0: OHCI 1.0, 00:30:65:ff:fe:68:9f:4a, 400Mb/s, 2048 max_rec, 4  
ir_ctx, 8 i
t_ctx
uninorth2 at mainbus0
pci3 at uninorth2 bus 0
pci3: i/o space, memory space enabled
pchb2 at pci3 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
gem0 at pci3 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
gem0: interrupting at irq 41
gem0: Ethernet address 00:30:65:68:9f:4a, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 2
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fw0 at fwohci0: 00:30:65:ff:fe:68:9f:4a:0a:02:ff:ff:f0:01:00:00
wd0 at atabus0 drive 0: <ST3120026A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648  
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus0 drive 1: <Maxtor 90648D3>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 6179 MB, 12556 cyl, 16 head, 63 sec, 512 bytes/sect x 12656448  
sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4  
(Ultra/66) (using
DMA)
wd1(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2  
(Ultra/33) (using
DMA)
atapibus0 at atabus1: 2 targets
trap: pid 3.1 (atabus1): kernel MCHK trap @ 0x55d84c (SRR1=0x2041020)
panic: trap
Stopped in pid 3.1 (atabus1) at netbsd:cpu_Debugger+0x18:       lwz      
r11, r1,
  0x0
db> tr
0xd58b05a0: at panic+0x174
0xd58b0640: at trap+0x14f4
0xd58b0710: kernel MCHK trap by vzeropage+0x88: srr1=0x2041020
             r1=0xd58b07d0 cr=0x40000002 xer=0 ctr=0x53289c
0xd58b07d0: at ADBDevTable+0xff7b5408
0xd58b0820: at pmap_zero_page+0x24
0xd58b0850: at uvm_pagealloc_strat+0x548
0xd58b08c0: at uao_get+0x134
0xd58b0930: at uvm_fault+0x9cc
0xd58b0b10: at uvm_fault_wire+0x70
0xd58b0b50: at uvm_lwp_fork+0x74
0xd58b0b90: at newlwp+0x224
0xd58b0bf0: at fork1+0x7b8
0xd58b0c80: at kthread_create1+0x60
0xd58b0d50: at scsipi_create_completion_thread+0x54
0xd58b0d80: at kthread_create+0x38
0xd58b0db0: at scsipi_channel_init+0xb4
0xd58b0dd0: at atapibusattach+0x88
0xd58b0e00: at config_attach_loc+0x610
0xd58b0e60: at config_found_sm_loc+0x70
0xd58b0ea0: at wdc_atapibus_attach+0x164
0xd58b0ed0: at atabusconfig+0x1d4
0xd58b0f10: at atabus_thread+0xe0
0xd58b0f40: at cpu_switchto+0x44
saved LR(0x44697261) is invalid.

and furthermore:

db> show registers
r0          0x455e80    panic+0x178
r1          0xd58b0580
r2          0x8481f8    cpu_info
r3          0x8481f8    cpu_info
r4          0xd
r5          0
r6          0
r7          0xd58b0570
r8          0xd45bb004
r9          0x810000    opcodes_base+0x3c
r10         0xcf
r11         0x810000    opcodes_base+0x3c
r12         0x58e0
r13         0
r14         0
r15         0
r16         0
r17         0
r18         0
r19         0
r20         0
r21         0
r22         0
r23         0
r24         0
r25         0
r26         0
r27         0
r28         0
r29         0xd58b0718
r30         0x55d84c    vzeropage+0x88
r31         0xd58b0580
iar         0x55c3c0    cpu_Debugger+0x18
msr         0x1030
lr          0x55c3c0    cpu_Debugger+0x18
ctr         0x590ba4    cnflush
cr          0x42041020
xer         0
mq          0x10005a0
netbsd:cpu_Debugger+0x18:       lwz     r11, r1, 0x0

the kernel is built from GENERIC (one exception: OFB_ENABLE_CACHE is on)

[1] -- dmesg:

NetBSD 2.0 (GENERIC.MP) #0: Wed Dec  1 14:05:26 UTC 2004
          
builds@build:/big/builds/ab/netbsd-2-0-RELEASE/macppc/200411300000Z- 
obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/macppc/compile/ 
GENERIC.MP
total memory = 1024 MB
avail memory = 984 MB
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
cpu0: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
cpu1 at mainbus0: 7400 (Revision 2.9), ID 1
cpu1: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
cpu1: 450.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: cannot map framebuffer
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
ppb0 at pci1 dev 13 function 0: Digital Equipment DECchip 21154 PCI-PCI  
Bridge (rev. 0x05)
pci2 at ppb0 bus 1
pci2: i/o space, memory space enabled
obio0 at pci2 dev 7 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
atabus2 at wdc2 channel 0
ohci0 at pci2 dev 8 function 0: Apple Computer KeyLargo USB Controller  
(rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci2 dev 9 function 0: Apple Computer KeyLargo USB Controller  
(rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
fwohci0 at pci2 dev 10 function 0: Texas Instruments TSB12LV23 OHCI  
IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 63
fwohci0: OHCI 1.0, 00:30:65:ff:fe:68:9f:4a, 400Mb/s, 2048 max_rec, 4  
ir_ctx, 8 it_ctx
uninorth2 at mainbus0
pci3 at uninorth2 bus 0
pci3: i/o space, memory space enabled
pchb2 at pci3 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
gem0 at pci3 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
gem0: interrupting at irq 41
gem0: Ethernet address 00:30:65:68:9f:4a, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 2
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fw0 at fwohci0: 00:30:65:ff:fe:68:9f:4a:0a:02:ff:ff:f0:01:00:00
wd0 at atabus0 drive 0: <ST3120026A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648  
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at atabus0 drive 1: <Maxtor 90648D3>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 6179 MB, 12556 cyl, 16 head, 63 sec, 512 bytes/sect x 12656448  
sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4  
(Ultra/66) (using DMA data transfers)
wd1(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2  
(Ultra/33) (using DMA data transfers)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <MATSHITADVD-RAM LF-D211A, , A115> cdrom  
removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhub2 at uhub1 port 1uhub3 at uhub0 port 1
uhub2: Alps Electric Hub in Apple USB Keyboard, class 9/0, rev  
1.10/2.10, addr 2

uhub3: ALCOR Generic USB Hub, class 9/0, rev 1.10/3.12, addr 2
uhub2: 3 ports with 2 removable, bus powered
uhub3: 4 ports with 4 removable, self powered
uhidev0 at uhub3 port 3 configuration 1 interface 0uhidev1 at uhub2  
port 1 configuration 1 interface 0
uhidev1: Alps Electric Apple USB Keyboard, rev 1.10/1.03, addr 3,  
iclass 3/1

uhidev0: Microsoft Microsoft Wireless Optical MouseM-. 1.0A, rev  
2.00/0.56, addr 3, iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
uhidev0: 3 report ids
ums0 at uhidev0 reportid 1: 5 buttons and Z dir.
wsmouse1 at ums0 mux 0
uhid0 at uhidev0 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev0 reportid 3: input=1, output=0, feature=1
wskbd1 at ukbd0 mux 1
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: started

-- 
Timo Schoeler | http://macfinity.net/~tis
//macfinity -- finest IT services | http://macfinity.net
Key fingerprint = F844 51BE C22C F6BD 1196  90B2 EF68 C851 6E12 2D8A

There are 10 types of people in the world. Those who understand binary  
and those who don't.