NetBSD Problem Report #59632
From www@netbsd.org Fri Sep 5 10:51:00 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C521D1A923A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 5 Sep 2025 10:51:00 +0000 (UTC)
Message-Id: <20250905105059.6B1801A923E@mollari.NetBSD.org>
Date: Fri, 5 Sep 2025 10:50:59 +0000 (UTC)
From: humankind135@gmail.com
Reply-To: humankind135@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Cannot Boot NetBSD 10.1 on Mac G3
X-Send-Pr-Version: www-1.0
>Number: 59632
>Category: port-macppc
>Synopsis: Cannot Boot NetBSD 10.1 on Mac G3
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-macppc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 05 10:55:00 +0000 2025
>Last-Modified: Sun Sep 07 12:00:01 +0000 2025
>Originator: James Horner
>Release: NetBSD 10.1
>Organization:
None
>Environment:
>Description:
Cannot Boot NetBSD 10.1 on a G3 Beige Desktop.
0 > setenv bootload-base 600000 ok
0 > setenv real-base F00000 ok
0 > setenv boot-file netbsd ok
0 > setenv boot-device dide0/disk@0:0,ofwboot ok
0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
no active packageno active package11860332+167196 [463456CLAIM failed!!! FAILED TO CLAIM PHYS 0xc79000 size 0x71000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
0 >
Same Procedure works in 9.4
0 > setenv load-base 600000 ok
0 > setenv real-base F00000000 ok
0 > setenv boot-device ide0/disk@0:0,ofwboot ok
0 > setenv boot-file netbsd ok
0 > reset-all ok
0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 0123. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.13 (Sat Apr 20 13:32:22 UTC 2024)
Cannot use bootpath
Using boot-device instead
no active packageno active package11111524+166504 [476608+464230]=0xba7714
start=0x100000
[ 1.0000000] mem region 0 start=0 size=18000000
[ 1.0000000] avail region 0 start=0x4800 size=0xefb800
[ 1.0000000] avail region 1 start=0x1010000 size=0x16ff0000
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024
[ 1.0000000] 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.4 (GENERIC) #0: Sat Apr 20 13:32:22 UTC 2024
[ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/macppc/compile/GENERIC
[ 1.0000000] total memory = 384 MB
[ 1.0000000] avail memory = 359 MB
[ 1.0000000] found heathrow PIC at f3000000
[ 1.0000000] bootpath: ide0/disk@0/netbsd
[ 1.0000000] mainbus0 (root)
[ 1.0000000] cpu0 at mainbus0: 750 (Revision 2.1), ID 0 (primary)
[ 1.0000000] cpu0: HID0 0x8250c0a4<EMCP,ECLK,NAP,DPM,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
[ 1.0000000] cpu0: 237.29 MHz, no-parity 512KB WB L2 cache (PB SRAM) at 2:1 ratio
[ 1.0000000] memory0 at mainbus0
[ 1.0000000] grackle0 at mainbus0
[ 1.0000000] pci0 at grackle0 bus 0
The computer was "primed" by booting OS9 and starting System Disk and hitting save so it can boot ide drives.
This issue renders 10.1 unbootable and 10.0 has similar issues when the installation completes
>How-To-Repeat:
Install NetBSD 10.1 on a G3 Mac with OF 2.01f and try to boot it.
>Fix:
>Release-Note:
>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: port-macppc/59632: Cannot Boot NetBSD 10.1 on Mac G
Date: Fri, 5 Sep 2025 21:13:30 +0900
> 0 > setenv bootload-base 600000 ok
> 0 > setenv real-base F00000 ok
> 0 > setenv boot-file netbsd ok
> 0 > setenv boot-device dide0/disk@0:0,ofwboot ok
> 0 > boot bad partition number, using 0
Try "setenv real-base ffffffff" (i.e. the default value) instead.
https://mail-index.netbsd.org/netbsd-bugs/2024/05/27/msg083212.html
---
Izumi Tsutsui
From: James Horner <humankind135@gmail.com>
To: gnats-bugs@netbsd.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-macppc/59632: Cannot Boot NetBSD 10.1 on Mac G
Date: Sun, 7 Sep 2025 12:57:53 +0100
Hi There
To start I would like thank you for your quick response, apologies for
the delay in response. I went down a rabbithole trying to install 10.0
but that didn't work (it would boot but get a dsa trap)
I tried the values you suggested and no luck and I tried some values
from the linked post and got a little further but no luck as yet:
--- Fresh Boot after time set and Sysem Disk save
--- real-base at default (-1)
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
no active packageno active package11860332+167196 [463456CLAIM
failed!!! FAILED TO CLAIM PHYS 0xc79000 size 0x71000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
0 > printenv
VARIABLE CURRENT DEFAULT
little-endian? false false
real-mode? false false
auto-boot? false true
diag-switch? false false
fcode-debug? false false
oem-banner? false false
oem-logo? false false
use-nvramrc? true false
real-base -1 -1
real-size 100000 100000
virt-base -1 -1
virt-size 100000 100000
load-base 600000 4000
pci-probe-list -1 -1
screen-#columns 64 64
screen-#rows 28 28
selftest-#megs 0 0
boot-device /AAPL,ROM /AAPL,ROM
boot-file
diag-device fd:diags
diag-file
input-device kbd kbd
output-device screen screen
oem-banner
oem-logo
nvramrc
hex
: $D find-device ;
: $E device-end ;
: $L BLpatch ; : $R BRpatch ;
: $X execute ;
: $p 0 to my-self property ;
: $a " /chosen" $D $p $E ;
: &c " ata-enable" $call-parent ;
10 buffer: km
dev kbd
get-key-map km swap move
$E
: ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;
: bootr 0d word count encode-string " machargs" $a
0 0 1 ck if 0 and else f 3d 0 2 ck if 40 or then then
if bye else 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;
: myboot boot-command eval ;
dev enet
' open constant $M
: $M2 $M 710 - $X ;
: rl@ -7D9D40 $X ;
: chstat begin $M2 $M 14f8 - $X -7D6C20 $X rl@ 400 and 0= until ;
: bmstat begin $M2 $M 13F0 - $X rl@ 100 and until ;
: xmt1 get-msecs $M 720 - ! chstat $M A00 - $X bmstat chstat ;
' xmt1 ' WRITE 10 + l!
62 ' READ 7 - c!
: READ { _p _n ; _a } begin _p _n bead -> _a _a 2+
if _p c@ 80 and 0= else 1 then until _a ;
$E
dev /packages/obp-tftp
: $M over + ['] noop $L ;
: $O ['] open + ;
: $M1 dup 24 - -1720 $O $X 6 move 14 + ;
-5BC $O ' $M1 $L
0 $O E8 $M EC $M F0 $M F4 $M F8 + ' true $L
$E
dev /packages/mac-parts
: $M -7E89E0 $X 8000 alloc-mem 7F00 + 4 -7E89E0 $X ;
' load 268 - ' $M $L
' load 160 + ' 0 $L
$E
dev ide0
: open use-ata-interface 0 &c -1 ;
: set-device-ID set-drive-select ;
: reset-atapi-bus reset-ata-bus ;
' reset-ata-bus 2c + ' 2 $L
$E
dev ide1
: open use-ata-interface 0 &c -1 ;
: set-device-ID set-drive-select ;
: reset-atapi-bus reset-ata-bus ;
' reset-ata-bus 2c + ' 2 $L
$E
dev scsi
: $M ['] do-cmd + ;
: $M2 5 us -5f0 $M $X ;
: $M3 -710 $M f over $X $X ;
: $M4 1 ms ;
-1AC $M ' $M2 $L
100 $M ' $M3 $L
120 $M ' $M4 $L
124 $M ' 1 $L
$E
ff000000 dup dup 400 28 do-map 4+ w@ 10 and 0=
if 90b7 f3000032 w! then
unselect-dev
boot-command boot boot
ok
0 > setenv boot-load-base 6000000 ok
0 > setenv boot-device ide0/disk@0:0,ofwboot ok
0 > setenv boot-file netbsd ok
0 > setenv input-device ttya ok
0 > setenv output-device ttya ok
0 > reset-all
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
no active packageno active package11860332CLAIM failed!!! FAILED TO
CLAIM PHYS 0x100000 size 0xb50000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
0 >
-- real-base set to ffffffff
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 > setenv breal-base FFFFFFFF ok
0 > reset-all
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
no active packageno active package11860332CLAIM failed!!! FAILED TO
CLAIM PHYS 0x100000 size 0xb50000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
--- real-base 8F00000, this got the furthest
0 > setenv real-base 8F00000 ok
0 > reset-all
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
no active packageno active package11860332+167196 [463456CLAIM
failed!!! FAILED TO CLAIM PHYS 0xc79000 size 0x71000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
0 >
--- load-base at 70000 same as pre
ad-base is affecting the process
0 > setenv load-base 70000 ok
0 > reset-all
Open Firmware, 2.0f1
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
For Open Firmware serial I/O type:
TTYA IO<return>
ok
0 > 0 > 0 > boot bad partition number, using 0
OF_open bootpath=ide0/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Mon Dec 16 13:08:11 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
no active packageno active package11860332+167196 [463456CLAIM
failed!!! FAILED TO CLAIM PHYS 0xc79000 size 0x71000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E6E8 %SRR1: 00003070
ok
0 >
I tried some more values, 9F00000 didn't work but FF00000 did work. I
increased this value arbitrarily so FF00000 is probably larger than is
needed. I missed the logs for these but 9F00000 was basically the
same.
--- First SSH to Mac G3 Running NetBSD 10.1
NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024
Welcome to NetBSD!
macppcg3$ uname -a
NetBSD macppcg3.home....co.uk 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec
16 13:08:11 UTC 2024
mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/macppc/compile/GENERIC
macppc
Trying other values I got the same issues incrementing the first digit
of real-base from 9 though C, at D open firmware stopped starting (no
chime) and so I reset the nvram by removing the battery and power at
which point I went through the time and system disk process and tried
real-base FF00000 and the default load base and that seems to work.
An issue I have encountered is that it really doesn't like having
384MB memory, I had to remove a stick and bring it down to 256M to
get it to boot.
I;m not really sure what load-base and real-base do, although its
seems to have relevance as some kind of memory addresses for the
kernel/userspace loading.
I hope this information is useful, I have it booting but I am not sure
why the memory limit.
Thanks Again
James
On Fri, 5 Sept 2025 at 13:15, Izumi Tsutsui via gnats
<gnats-admin@netbsd.org> wrote:
>
> The following reply was made to PR port-macppc/59632; it has been noted by GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: gnats-bugs@netbsd.org
> Cc: tsutsui@ceres.dti.ne.jp
> Subject: Re: port-macppc/59632: Cannot Boot NetBSD 10.1 on Mac G
> Date: Fri, 5 Sep 2025 21:13:30 +0900
>
> > 0 > setenv bootload-base 600000 ok
> > 0 > setenv real-base F00000 ok
> > 0 > setenv boot-file netbsd ok
> > 0 > setenv boot-device dide0/disk@0:0,ofwboot ok
> > 0 > boot bad partition number, using 0
>
> Try "setenv real-base ffffffff" (i.e. the default value) instead.
> https://mail-index.netbsd.org/netbsd-bugs/2024/05/27/msg083212.html
>
> ---
> Izumi Tsutsui
>
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.