Re: Issues with NetBSD 8.1 macppc

Julien Savard <[email protected]>
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <CAFVXn8SXs5GLE_peFMBe9MOPGpjR8AJ7uJLE2LTHKsjyJa4j8g@mail.gmail.com>
Hi,
It seems I was a little too enthusiastic about NetBSD 8.0/8.1 and my Ibook
G4. The install "kernel" doest work. It boots. I can install NetBSD fine
but as soon as I boot to the generic Kernel it crashes with a Kernel Panic.

I mostly followed this guide for the installation :
https://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_a_power_macintosh_g4___40__grey__41__/
Only diffrences were :
- Booted on usb flash drive ( CD/DVD drive has a screw through it )
- Partition goes that way :

   1: Apple partition map
   2: 32m HFS boot
   3: 2g Apple_UNIX_SVR2 swap      b
   4: 35g Apple_UNIX_SVR2 /              a

-  Did not install hfsutil from pkgsrc but from pkgin instead
- I read somewhere that having Kernel with ofwboot on HFS partition is a
good Idea. So I copied the Kernel on the 32m HFS partition.

As soon as I try to boot from HD ( boot hd:2,ofwboot.xcf netbsd or boot
hd:2,ofwboot.xcf hd:4,/netbsd) i got these messages : --db-more-trap Kernel
ISI by 0xff8472b0 (SRR 1 0x40003030), 1r: 0x1001e4
Skipping crash dump on recursive panic

These look like the one I got with qemu.
I did some digging and I foud this (
http://mail-index.netbsd.org/port-macppc/2019/06/02/msg002583.html)

So I basically copied the ofwboot.elf in my HFS partition and tried to boot
with " hd:2,ofwboot.xcf netbsd" and VOILA ! It boots now !
I also tried to boot with the Kernel on the FFS partition and it works too.

I was wondering if this could fix the problem with NetBSD 8.1 and
qemu-system-ppc however ofwboot.elf is not on the iso. Do you think it
might be possible to add it ?


On Tue, Oct 8, 2019 at 4:47 PM Julien Savard <[email protected]>
wrote:

> Hi,
> I tried to boot without "via=pmu" option. Still Kernel panic on boot.
> The message "oea_startup: failed to allocate DEAD ZONE: error=12" does
> shows up when booting on NetBSD 8.0 but it does not seems to affect the
> booting process.
>
> Command : qemu-system-ppc -boot d -M mac99,via=pmu -m 1024 -hda
> /srv/disk-images/mxqc1-test.img -cdrom /mnt/NetBSD-8.0-macppc.iso -net
> nic,model=e1000,macaddr=52:54:00:12:34:fa -net bridge,br=br0 -prom-env
>  'auto-boot?=true' -prom-env 'boot-device=cd:,ofwboot.xcf netbsd.macppc'
> -nographic
>
> >> =============================================================
> >> OpenBIOS 1.1 [Feb 2 2019 05:05]
> >> Configuration device id QEMU version 1 machine id 1
> >> CPUs: 1
> >> Memory: 1024M
> >> UUID: 00000000-0000-0000-0000-000000000000
> >> CPU type PowerPC,G4
> milliseconds isn't unique.
> Welcome to OpenBIOS v1.1 built on Feb 2 2019 05:05
> Trying cd:,ofwboot.xcf...
> >> switching to new context:
>
> >> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Tue Jul 17 14:59:51 UTC
> 2018)
> open /netbsd: No such file or directory
> open /netbsd.gz: No such file or directory
> 6075428+127808=0x5eab28
>  start=0x100000
> mem region 0 start=0 size=40000000
> avail region 0 start=0x1000 size=0x3fff000
> avail region 1 start=0x4800000 size=0x3b458000
> avail region 2 start=0x3fe10000 size=0xda000
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
>     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
>     2018 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 8.0 (INSTALL) #0: Tue Jul 17 14:59:51 UTC 2018
>         [email protected]:
> /usr/src/sys/arch/macppc/compile/INSTALL
> total memory = 1024 MB
> oea_startup: failed to allocate DEAD ZONE: error=12
> avail memory = 980 MB
> found openpic PIC at 80040000
> OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
> bootpath: /pci@f2000000/mac-io@c/ata-3@21000/cdrom@0:0/netbsd.macppc
> mainbus0 (root)
> cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
> cpu0: HID0 0x809400a4<EMCP,DOZE,DPM,EIEC,SGE,BTIC,BHT>, powersave: 1
> cpu0: 0.00 MHz L2 cache present but not enabled
>
>
> Another point : I tried to boot with NetBSD 8.0 and 8.1 on my ibook g4.
> Both seems to work fine with real hardware.
>
>
> On Tue, Oct 8, 2019 at 2:51 PM Mark Cave-Ayland <
> [email protected]> wrote:
>
>> On 08/10/2019 07:46, Julien Savard wrote:
>>
>> > Hi,
>> > 1) I'm using QEMU emulator version 3.1.1 ( host system is fedora 30)
>> > 2) Booting with "-nographic"  was a pretty good idea :
>> >
>> > Started qemu with : qemu-system-ppc -boot d -M mac99,via=pmu -m 1024
>> -hda
>> > /srv/disk-images/mxqc1-test.img -cdrom /mnt/NetBSD-8.1-macppc.iso -net
>> > nic,model=e1000,macaddr=52:54:00:12:34:fa -net bridge,br=br0 -prom-env
>> >  'auto-boot?=true' -prom-env 'boot-device=cd:,ofwboot.xcf
>> netbsd.macppc' -nographic
>> >
>> >     >> =============================================================
>> >     >> OpenBIOS 1.1 [Feb 2 2019 05:05]
>> >     >> Configuration device id QEMU version 1 machine id 1
>> >     >> CPUs: 1
>> >     >> Memory: 1024M
>> >     >> UUID: 00000000-0000-0000-0000-000000000000
>> >     >> CPU type PowerPC,G4
>> >     milliseconds isn't unique.
>> >     Welcome to OpenBIOS v1.1 built on Feb 2 2019 05:05
>> >     Trying cd:,ofwboot.xcf...
>> >     >> switching to new context:
>> >
>> >     >> NetBSD/macppc OpenFirmware Boot, Revision 1.13 (Tue May 14
>> 17:21:59 UTC 2019)
>> >     open /netbsd: No such file or directory
>> >     open /netbsd.gz: No such file or directory
>> >     6081892+127872=0x5ec4a8
>> >      start=0x100000
>> >     mem region 0 start=0 size=40000000
>> >     avail region 0 start=0x1000 size=0x3fff000
>> >     avail region 1 start=0x4800000 size=0x3b458000
>> >     avail region 2 start=0x3fe10000 size=0xda000
>> >     Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
>> 2005,
>> >         2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
>> 2016, 2017,
>> >         2018, 2019 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 8.1_RC1 (INSTALL) #0: Tue May 14 17:21:59 UTC 2019
>> >             [email protected]:
>> /usr/src/sys/arch/macppc/compile/INSTALL
>> >     total memory = 1024 MB
>> >     oea_startup: failed to allocate DEAD ZONE: error=12
>> >     avail memory = 980 MB
>> >     found openpic PIC at 80040000
>> >     OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
>> >     trap: pid 0.0 (): kernel PGM trap @ 0 (SRR1=0x83030)
>> >     panic: trap
>> >     trap: pid 0.0 (): kernel PGM trap @ 0x6bada4 (SRR1=0x89032)
>> >     Skipping crash dump on recursive panic
>> >     panic: trap
>> >     rebooting
>> >
>> >     EXITtrap: pid 0.0 (): kernel PGM trap @ 0 (SRR1=0x83030)
>> >     Skipping crash dump on recursive panic
>> >     panic: trap
>> >     rebooting
>> >
>> >     EXITtrap: pid 0.0 (): kernel PGM trap @ 0 (SRR1=0x83030)
>> >     Skipping crash dump on recursive panic
>> >     panic: trap
>> >     rebooting
>> >
>> >     EXITtrap: pid 0.0 (): kernel PGM trap @ 0 (SRR1=0x83030)
>> >     Skipping crash dump on recursive panic
>> >     panic: trap
>> >     rebooting
>> >
>> >
>> > And so on...
>> >
>> > Not sure it is related to RC1 kernel but if you plan to replace the iso
>> with "stable"
>> > 8.1 keep me posted,
>>
>> I haven't been following NetBSD development too closely, however the
>> "oea_startup:
>> failed to allocate DEAD ZONE: error=12" message looks slightly suspicious
>> - does that
>> appear when booting 8.0 in the same way? And are you able to boot if you
>> remove the
>> "via=pmu" machine option?
>>
>>
>> ATB,
>>
>> Mark.
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.