Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Issues with NetBSD 8.1 macppc
On 30/10/2019 21:28, Joerg Sonnenberger wrote:
> On Wed, Oct 30, 2019 at 08:50:47PM +0000, Mark Cave-Ayland wrote:
>> On 30/10/2019 20:40, Joerg Sonnenberger wrote:
>>
>>>> So just to confirm that this is cause of the XXXX error message that you see? If I
>>>> load qemu-system-ppc and try and list the contents of the various partitions on the
>>>> NetBSD 8.1 CDROM then I see this:
>>>
>>> 0 > dir /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:0,\ mac-parts mac-parts: Unable to determine filesystem
>>> ok
>>> 0 > dir /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:1,\ mac-parts: Unable to determine filesystem
>>> ok
>>> 0 > dir /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:2,\
>>> 16384 2019-10-30 11:49:38 Desktop DB
>>> 0 2019-10-30 11:49:38 Desktop DF
>>> 131072 2019-10-30 11:49:38 macppc\
>>> 5477006 2019-10-30 11:49:01 netbsd
>>> 81486 2019-10-30 11:49:01 ofwboot.xcf
>>> ok
>>>
>>> and after "boot cd:,ofwboot.xcf:
>>>
>>> ...
>>> [ 1.0000000] bootpath: /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:0/netbsd
>>>
>>> with a kernel that has the block in line 140 above commented out.
>>>
>>> The ISO has been created with:
>>> mkisofs -r -o boot.iso -hfs -part -l -J -N -m netbsd ofwboot.xcf netbsd
>>
>> I see, so it's not the vanilla ISO available from
>> https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.1/iso/NetBSD-8.1-macppc.iso. Are you able
>> to make the ISO available for me to download somewhere for testing?
>
> Sure, you can find the ISOs with (unpatched) the OF_finddevice call and
> without (patched) at the following locations:
> https://www.netbsd.org/~joerg/patched.iso.xz
> https://www.netbsd.org/~joerg/unpatched.iso.xz
Hi Joerg,
Thanks for the test images. I've had a check around OpenBIOS and it seems that if you
boot the image via "boot cd:,\ofwboot.xcf" then the resulting bootpath property gets
set to "/pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:2,\ofwboot.xcf".
However the bootpath that gets displayed in canonicalize_bootpath() is
"/pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:0/netbsd" where the partition number (2)
has been replaced with 0 and that's why the firmware fails to open the device. Do you
know where the part is that parses the OF bootpath property and replaces ofwboot.xcf
with /netbsd when constructing the bootpath string?
The other thing I've noticed is your unpatched.iso kernel is called netbsd.macppc
whereas your patched.iso is called netbsd. And in fact OpenBIOS can load the netbsd
ELF directly if you like, which makes me wonder if this could be related to the panic?
$ ./qemu-system-ppc -cdrom /home/build/src/qemu/image/ppc/patched.iso -boot d
-nographic -bios
/home/build/src/openbios/openbios.git/openbios/obj-ppc/openbios-qemu.elf.nostrip -M
mac99
>> =============================================================
>> OpenBIOS 1.1 [Oct 31 2019 17:51]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 128M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Oct 31 2019 17:51
Trying cd:,\\:tbxi...
No valid state has been set by load or init-program
0 > load cd:2,\netbsd
0 > init-program >> Ignoring failed claim for va 100000 memsz aafaac!
ok
0 > go >> switching to new context:
[ 1.0000000] mem region 0 start=0 size=8000000
[ 1.0000000] avail region 0 start=0x1000 size=0xff000
[ 1.0000000] avail region 1 start=0xbafaac size=0x3450554
[ 1.0000000] avail region 2 start=0x4800000 size=0x3458000
[ 1.0000000] avail region 3 start=0x7e10000 size=0xf0000
[ 1.0000000] [ Kernel symbol table invalid! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017,
[ 1.0000000] 2018, 2019 The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 9.99.17 (GENERIC) #12: Wed Oct 30 22:24:26 CET 2019
[ 1.0000000]
joerg@britannica:/home/joerg/work/NetBSD/clean/obj-gcc/macppc/sys/arch/macppc/compile/GENERIC
[ 1.0000000] total memory = 128 MB
[ 1.0000000] avail memory = 103 MB
[ 1.0000000] found openpic PIC at 80040000
[ 1.0000000] OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
[ 1.0000000] bootpath: /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:2,\netbsd
[ 1.0000000] mainbus0 (root)
[ 1.0000000] cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
[ 1.0000000] cpu0: HID0 0x809400a4<EMCP,DOZE,DPM,EIEC,SGE,BTIC,BHT>, powersave: 1
[ 1.0000000] cpu0: 0.00 MHz L2 cache present but not enabled
[ 1.0000000] memory0 at mainbus0
[ 1.0000000] uninorth0 at mainbus0
[ 1.0000000] pci0 at uninorth0 bus 0
[ 1.0000000] pchb0 at pci0 dev 11 function 0
[ 1.0000000] pchb0: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
[ 1.0000000] obio0 at pci0 dev 12 function 0: addr 0x80000000
[ 1.0000000] obio0: enabling KeyLargo internal modem
[ 1.0000000] cuda0 at obio0 offset 0x16000 irq 25
[ 1.0000000] nadb0 at cuda0: Apple Desktop Bus
[ 1.0000000] iic0 at cuda0: I2C bus
[ 1.0000000] zsc0 at obio0 irq 37,36
[ 1.0000000] zstty0 at zsc0 channel 0 (console i/o)
[ 1.0000000] zstty1 at zsc0 channel 1
[ 1.0000000] wdc0 at obio0 offset 0x20000 irq 13, level triggered: DMA transfer
[ 1.0000000] atabus0 at wdc0 channel 0
[ 1.0000000] wdc1 at obio0 offset 0x21000 irq 14, level triggered: DMA transfer
[ 1.0000000] atabus1 at wdc1 channel 0
[ 1.0000000] ohci0 at pci0 dev 13 function 0: Apple Computer Intrepid USB
Controller (rev. 0x00)
[ 1.0000000] ohci0: interrupting at irq 28
[ 1.0000000] ohci0: OHCI version 1.0
[ 1.0000000] usb0 at ohci0: USB revision 1.0
[ 1.0000000] genfb0 at pci0 dev 14 function 0: vendor 1234 product 1111 (rev. 0x02)
[ 1.0000000] gem0 at pci0 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
[ 1.0000000] gem0: interrupting at irq 30
[ 1.0000000] gem0: cannot reset receiver
[ 1.0000000] gem0: cannot reset receiver
[ 1.0000000] bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 0
[ 1.0000000] bmtphy0: 100baseTX-FDX, auto
[ 1.0000000] gem0: Ethernet address 52:54:00:12:34:56, 20KB RX fifo, 9KB TX fifo
[ 1.0000000] uni_n0 at mainbus0 address 0xf8000000
[ 1.0000000] vmmask 7f000000 schedmask 7f000000 highmask 7f000000
[ 1.0399325] uhub0 at usb0: NetBSD (0000) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
[ 2.2102172] adbkbd0 at nadb0 addr 2: mapped device (0)
[ 4.2408006] atapibus0 at atabus1: 2 targets
[ 4.2408006] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
$ ./qemu-system-ppc -cdrom /home/build/src/qemu/image/ppc/unpatched.iso -boot d
-nographic -bios
/home/build/src/openbios/openbios.git/openbios/obj-ppc/openbios-qemu.elf.nostrip -M
mac99
>> =============================================================
>> OpenBIOS 1.1 [Oct 31 2019 17:51]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 128M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Oct 31 2019 17:51
Trying cd:,\\:tbxi...
No valid state has been set by load or init-program
0 > load cd:,\netbsd.macppc
ok
0 > init-program >> Ignoring failed claim for va 100000 memsz aafc6c!
ok
0 > go >> switching to new context:
[ 1.0000000] mem region 0 start=0 size=8000000
[ 1.0000000] avail region 0 start=0x1000 size=0xff000
[ 1.0000000] avail region 1 start=0xbafc6c size=0x3450394
[ 1.0000000] avail region 2 start=0x4800000 size=0x3458000
[ 1.0000000] avail region 3 start=0x7e10000 size=0xf0000
[ 1.0000000] [ Kernel symbol table invalid! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017,
[ 1.0000000] 2018, 2019 The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 9.99.17 (GENERIC) #13: Wed Oct 30 22:24:55 CET 2019
[ 1.0000000]
joerg@britannica:/home/joerg/work/NetBSD/clean/obj-gcc/macppc/sys/arch/macppc/compile/GENERIC
[ 1.0000000] total memory = 128 MB
[ 1.0000000] avail memory = 103 MB
[ 1.0000000] found openpic PIC at 80040000
[ 1.0000000] OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
[ 1.0000000] bootpath: /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:2,\netbsd.macppc
>> out of malloc memory (c)!
>> out of malloc memory (c)!
>> out of malloc memory (c)!
[ 1.0000000] mainbus0 (root)
[ 1.0000000] cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
[ 1.0000000] cpu0: HID0 0x809400a4<EMCP,DOZE,DPM,EIEC,SGE,BTIC,BHT>, powersave: 1
[ 1.0000000] cpu0: 0.00 MHz L2 cache present but not enabled
[ 1.0000000] memory0 at mainbus0
[ 1.0000000] uninorth0 at mainbus0
[ 1.0000000] pci0 at uninorth0 bus 0
[ 1.0000000] pchb0 at pci0 dev 11 function 0
[ 1.0000000] pchb0: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
[ 1.0000000] obio0 at pci0 dev 12 function 0: addr 0x80000000
[ 1.0000000] obio0: enabling KeyLargo internal modem
[ 1.0000000] cuda0 at obio0 offset 0x16000 irq 25
[ 1.0000000] nadb0 at cuda0: Apple Desktop Bus
[ 1.0000000] iic0 at cuda0: I2C bus
[ 1.0000000] zsc0 at obio0 irq 37,36
[ 1.0000000] zstty0 at zsc0 channel 0 (console i/o)
[ 1.0000000] zstty1 at zsc0 channel 1
[ 1.0000000] wdc0 at obio0 offset 0x20000 irq 13, level triggered: DMA transfer
[ 1.0000000] atabus0 at wdc0 channel 0
[ 1.0000000] wdc1 at obio0 offset 0x21000 irq 14, level triggered: DMA transfer
[ 1.0000000] atabus1 at wdc1 channel 0
[ 1.0000000] ohci0 at pci0 dev 13 function 0: Apple Computer Intrepid USB
Controller (rev. 0x00)
[ 1.0000000] ohci0: interrupting at irq 28
[ 1.0000000] ohci0: OHCI version 1.0
[ 1.0000000] usb0 at ohci0: USB revision 1.0
[ 1.0000000] genfb0 at pci0 dev 14 function 0: vendor 1234 product 1111 (rev. 0x02)
[ 1.0000000] gem0 at pci0 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
[ 1.0000000] gem0: interrupting at irq 30
[ 1.0000000] gem0: cannot reset receiver
[ 1.0000000] gem0: cannot reset receiver
[ 1.0000000] bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 0
[ 1.0000000] bmtphy0: 100baseTX-FDX, auto
[ 1.0000000] gem0: Ethernet address 52:54:00:12:34:56, 20KB RX fifo, 9KB TX fifo
[ 1.0000000] uni_n0 at mainbus0 address 0xf8000000
[ 1.0000000] vmmask 7f000000 schedmask 7f000000 highmask 7f000000
[ 1.2099576] uhub0 at usb0: NetBSD (0000) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
[ 1.2800640] adbkbd0 at nadb0 addr 2: mapped device (0)
[ 4.2308512] atapibus0 at atabus1: 2 targets
[ 4.2308512] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
[ 11.2826712] wskbd0 at adbkbd0 mux 1
[ 11.2826712] wsmouse0 at adbkbd0 mux 0
[ 11.2826712] adbms0 at nadb0 addr 3: relative positioning device (mouse?) (0)
[ 11.2925999] wsmouse1 at adbms0 mux 0
[ 11.2925999] swwdog0: software watchdog initialized
[ 11.2925999] WARNING: 2 errors while detecting hardware; check system log.
[ 11.2925999] boot device: uninorth0
[ 11.2925999] can't determine root device
[ 11.2925999] root device (default uninorth0):
[ 12.2132929] wskbd0 at adbkbd0 mux 1
[ 12.2132929] wsmouse0 at adbkbd0 mux 0
[ 12.2232599] adbms0 at nadb0 addr 3: relative positioning device (mouse?) (0)
[ 12.2232599] wsmouse1 at adbms0 mux 0
[ 12.2333187] swwdog0: software watchdog initialized
[ 12.2333187] WARNING: 2 errors while detecting hardware; check system log.
[ 12.2333187] boot device: <unknown>
As you can see where OpenBIOS loads the netbsd(.macppc) ELF directly then the
bootpath displayed in canonicalize_bootpath() appears to be correct.
ATB,
Mark.
Home |
Main Index |
Thread Index |
Old Index