Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Issues booting kernels in 7.0_RC1 (201507190150Z build)
Hi!,
I made a big misstake!, I thought ofwboot.xcf would load the NetBSD
kernel of the FAT12 partition. However it does not!, it will boot it
of the first partition in the disklabel. Which on my disk is the ffs
root / partition, because the kernel will try to mount wd0a as root /.
I had forgotten this since I was installing 6.1.4, and my notes were not good.
Embarrassments aside. I did boot the 7.0_RC1 (201507192310Z) kernel
and had it PANIC. I was dropped of into db> but the keyboard was not
responsive, so I took a picture of the screen and transcribed it into
text. After rebooting with a 6.1.5 kernel I found that the partial
7.0_RC1 dmesg was recorded. I have transcribed the text from the
screen after the last line of the recorded dmesg, panic: trap.
(I did also compile a new version of ofwboot.xcf with Izumi Tsutsui's
patch applied to Locore.c, it did not make any difference but it
loaded NetBSD 6.1.5 just fine. At least I can say that it didn't break
anything I could see).
After the 7.0_RC1 dmesg I've included the dmesg from the working 6.1.5
kernel, maybe it would help to see which PCI device cause the kernel
to panic.
It should have said: zsc0 at obio0 irq 22,23 , where panic: trap, is now.
There doesn't seem to be a way to enter userconf(4) from ofwboot? So I
will build a kernel without this device to see if that is the culprit.
I thought that I'd send this update in the meantime in case I'm
missing something.
Cheers!,
Adrian.
--- Dmesg + db> output from 7.0_RC1 ---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights rM-2M^^M^MM^Fe=^[^M
NetBSD 7.0_RC1 (GENERIC.201507192310Z)
total memory = 1024 MB
oea_startup: failed to allocate DEAD ZONE: error=12
avail memor} = 981 MB
kern.module.path=/stand/macppc/7.0/modules
timecounter: Timecounters tick every 10.000 msec
found openpic PIC at 80040000^KOpenPIC Version 1.2: Suqports 4 CPUs
and 64 interrupt sources.
bootpath: /tci@f2000000/mac-ioA17/ata-4@1f000/disk@0:0/netbsd-7
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
cpu0: HID0 0x84d0c1bc<EMCP,TBEN,HIGH_BAT_EN,NAPM-2M^^M^MM^Fe=^[^M,DCE,XBSEN,SGE,BTIC,LRSTK,FOLD.BHT>,
powersave: 1
cpu0: 1000.00 MHz, 256KB L2 cache no parity parity enabled
memory0 at mainbus0: len=384
spdmem0 at memory0
spdmem0: SDRAM, no parity or ECC, 512MB, 133MHz (PC-133)
spdmem0: 13 rows, 10 cols, 2 banksM-2M^^M^MM^Fe=^[^Ms/chip, 7.5ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 3-20-20-45
spdmem0: voltage LvTTL (not 5V tolerant), refresh time
7M-2M^^M^MM^Fe=^[^Mlf-refreshing)
spdmem1 at memory0
spdmem1: SDRAM, no pArM-2M^^M^MM^Fe=^[^MCC, 512MB, 143MHz
,PC-13M-2M^^M^MM^Fe=^[^Mm1: 13
rM-2M^^M^MM^Fe=^[^MM-2M^^M^MM^Fe=^[^MM-2M^^M^MM^Fe=^[^M banks/chip,
7.0ns cycle time
spdmem1:\240tAA-tRM-CD-tRP-tPAS: 3-15-15-37
spdmem1: M-voltage LvTTL (not 5V tolerant), refresh time 7.8us (self-refreshing)
una_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
ki2c0 at uni_n0 addresr 0xf8001000
iic1 at ki2c0: I2C `us
cereal at`ki2c0 address 0x1c0 not configured
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space\240enabled
pchr0 at pci0 dev 11 fujction 0
pchb0: Apple Computer UfiNorth AGP Interface (rev. 0x00)
radeonfb0\240at pci0 dev 16 function 0found EDID property>..
8 ATI Technologies R`deon 7500 QW (rev. 0x00)
radeonfb0: Video BIOS fot present
radeonfb0: No video BIOS, using default clocks
radeonfb0: refclk = 27.000 MHz, refdiv = 12 minpll = 125000, maxpll = 400000
radeonfb0: 64 MB apertura at 0x98000000, 64 KB registers at`0x90000000
radeonfb0: display 0: initial virtual resklution 1024x768 at 8 bpp
radeonfb0: using 32 MB per display
radeonfb0: port 0: physical 1024x768 89Hz
rqdeonfb0: port 1: physical 1024x768 89Hz*wsdisplay0 at radeonfb0
kbdmux 1: console (fb, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at radeonfb0 not configured
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/M-o space, memory space enabled
pc`b1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI BrM-idge (rev. 0x00)
obio0 at pci1 dev 23 function 08 addr 0x80000000
obio0: enabling KeyLargo internal modem
trap: pid 0.1 (system): kernel\240MCHK trap @ 0x101c04 (SRR1=0x141030)
panic: trap
Stopped in pid 0.1 (system) at netbsd:vpanic+0x13c: or r3, r29, r29
0x00aa37e0: at panic+0x4c
0x00aa3820: at trap+0x454
0x00aa38a0: kernel MCHK trap by bsr4rb+0x4: srr1=0x141030
r1=0xaa3970 cr=0x24028084 xer=0x20000000 ctr=0x101c00
0x00aa3970: at obio_attach+0x3bc
0x00aa3a90: at config_attach_loc+0x1c8
0x00aa3ac0: at pci_probe_device+0x4ac
0x00aa3b70: at pci_enumerate_bus+0x1c0
0x00aa3be0: at pcirescan+0x24
0x00aa3bf0: at pciattach+0x1f0
0x00aa3c20: at config_attach_loc+0x1c8
0x00aa3c50: at uninorth_attach+0x390
0x00aa3d80: at config_attach_loc+0x1c8
0x00aa3db0: at mainbus_attach+0x134
0x00aa3e80: at config_attach_loc+0x1c8
0x00aa3eb0: at cpu_configure+0x20
0x00aa3ec0: at main+0x28c
0x00aa3f10: at 0x1000b4
db> _
--- end of dmesg from NetBSD 7.0_RC1 (201507192310Z) -----
--- dmesg from working NetBSD 6.1.5 ---
NetBSD 6.1.5 (GENERIC)
total memory = 1024 MB
oea_startup: failed to allocate DEAD ZONE: error=12
avail memory = 982 MB
timecounter: Timecounters tick every 10.000 msec
found openpic PIC at 80040000
OpenPIC Version 1.2: Supports 4 CPUs and 64 interrupt sources.
bootpath: /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:0/netbsd-615
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
cpu0: HID0 0x84d0c1bc<EMCP,TBEN,HIGH_BAT_EN,NAP,DPM,ICE,DCE,XBSEN,SGE,BTIC,LRSTK,FOLD,BHT>,
powersave: 1
cpu0: 1000.00 MHz, 256KB L2 cache no parity parity enabled
memory0 at mainbus0: len=384
spdmem0 at memory0
spdmem0: SDRAM, no parity or ECC, 512MB, 133MHz (PC-133)
spdmem0: 13 rows, 10 cols, 2 banks, 4 banks/chip, 7.5ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 3-20-20-45
spdmem0: voltage LvTTL (not 5V tolerant), refresh time 7.8us (self-refreshing)
spdmem1 at memory0
spdmem1: SDRAM, no parity or ECC, 512MB, 143MHz (PC-133)
spdmem1: 13 rows, 10 cols, 2 banks, 4 banks/chip, 7.0ns cycle time
spdmem1: tAA-tRCD-tRP-tRAS: 3-15-15-37
spdmem1: voltage LvTTL (not 5V tolerant), refresh time 7.8us (self-refreshing)
uni_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
ki2c0 at uni_n0 address 0xf8001000
iic1 at ki2c0: I2C bus
cereal at ki2c0 address 0x1c0 not configured
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)
genfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 7500 QW (rev. 0x00)
genfb0: framebuffer at 0x9c008000, size 1024x768, depth 8, stride 1024
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsemul_vt100_output_c0c1: ESC in kernel output ignored
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at genfb0 not configured
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)
obio0 at pci1 dev 23 function 0: addr 0x80000000
obio0: enabling KeyLargo internal modem
zsc0 at obio0 irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at obio0 offset 0x10000: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47: rev. 12
pmu0: initializing IIC bus
pmu0: initializing RTC
pmu0: power-mgt not configured
ki2c1 at obio0
iic2 at ki2c1: I2C bus
cereal at ki2c1 address 0x1c0 not configured
deq0 at ki2c1 Apple Digital Equalizer, addr 0x6a
wdc0 at obio0 offset 0x1f000 irq 19, level triggered: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20, level triggered: DMA transfer
atabus1 at wdc1 channel 0
snapper0: codec: TAS3004
audio0 at snapper0: full duplex, playback, capture
ohci0 at pci1 dev 24 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
ohci1 at pci1 dev 25 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
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
fwohci0 at pci2 dev 14 function 0: Lucent Technologies FW322/323 IEEE
1394 Host Controller (rev. 0x00)
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 xx:xx:xx:xx:xx:xx:63:4e
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
gem0: interrupting at irq 41
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: Ethernet address xx:xx:xx:xx:xx:xx, 10KB RX fifo, 4KB TX fifo
vmmask 67780000 schedmask 7ff80000 highmask 7ff80000
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 33290675 Hz quality 100
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
ieee1394if0: bus manager 0
uhub0 at usb0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at uhub0 port 1: Mitsumi Electric Hub in Apple Extended USB
Keyboard, class 9/0, rev 1.10/3.95, addr 2
uhub2: 3 ports with 2 removable, bus powered
wd0 at atabus0 drive 0
wd0: <ST340015A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <_NEC DV-5800A, , 1.0A> 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)
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: Logitech Apple Optical USB Mouse, rev 2.00/3.40, addr 3, iclass 3/1
ums0 at uhidev0: 1 button
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 3 configuration 1 interface 0
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/3.95,
addr 4, iclass 3/1
ukbd0 at uhidev1
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub2 port 3 configuration 1 interface 1
uhidev2: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/3.95,
addr 4, iclass 3/0
uhidev2: 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=3, output=0, feature=0
Kernelized RAIDframe activated
swwdog0: software watchdog initialized
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
--- end of dmesg from 6.1.5 ---
2015-07-20 2:21 GMT+02:00 Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>:
>> Out of curiosity I tried replacing the ofwboot.xcf and kernel to the
>> working installation on disk, and tried booting that. Which is also
>> booting with ofwboot.xcf and kernel inside a FAT12 partition. The new
>> ofwboot.xcf and boot the old 6.1.4 kernel just fine, but no luck with
>> the NetBSD-7.0_RC1 one:
>>
>> >>> NetBSD/macppc OpenFirmware Boot, Revision 1.12
>> 5922276+130584|seek symbols: invalid file offset
>> Boot: _
> :
>> Don't really know where to go from here in the fault searching
>> progress, any suggestions?
>
> Could you try the following ofwboot patch?
> http://mail-index.netbsd.org/netbsd-bugs/2015/07/01/msg041487.html
>
> ---
> Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index