NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-macppc/58284: NetBSD/macppc 10.0 ofwboot fails to load GENERIC kernel
The following reply was made to PR port-macppc/58284; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-macppc/58284: NetBSD/macppc 10.0 ofwboot fails to load GENERIC
kernel
Date: Tue, 28 May 2024 00:57:50 +0900
> >> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Thu Mar 28 08:33:33 UTC 2024)
> >> Open Firmware version 2.x
> >> Open Firmware running in virtual-mode.
> Cannot use bootpath
> Using boot-device instead
> 11800060+167172 [463008CLAIM failed!!! FAILED TO CLAIM PHYS 0xc6b000 size 0x71000
> read section
> start=0x0
> DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E328 %SRR1: 00003070
> ok
> 0 >
It turns out this happens if "real-base" environment variable
is set as "F00000" per macppc FAQ:
http://www.netbsd.org/ports/macppc/faq.html#ofw-real-base
After changing it to the default -1 (FFFFFFFF) 10.0 ofwboot can load
GENERIC kernel.
(Note changing the value to -1 requires power cycle..)
---
0 > printenv
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? false false
real-base F00000 -1
real-size 100000 100000
virt-base -1 -1
virt-size 100000 100000
load-base 70000 4000
pci-probe-list -1 -1
screen-#columns 64 64
screen-#rows 28 28
selftest-#megs 0 0
boot-device ata/ATA-Disk@0:0 /AAPL,ROM
boot-file
diag-device fd:diags fd:diags
diag-file
input-device ttya ttya
output-device ttya ttya
oem-banner
oem-logo
nvramrc
boot-command boot
ok
0 > boot -s
OF_open bootpath=ata/ATA-Disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Thu Mar 28 08:33:33 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
11800508+167172 [485712CLAIM failed!!! FAILED TO CLAIM PHYS 0xc6b000 size 0x76000
read section
start=0x0
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E0E328 %SRR1: 00003070
ok
0 > setenv real-base -1 $SETENV: invalid number
ok
0 > setenv real-base ffffffff ok
0 > printenv
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? false false
real-base -1 -1
real-size 100000 100000
virt-base -1 -1
virt-size 100000 100000
load-base 70000 4000
pci-probe-list -1 -1
screen-#columns 64 64
screen-#rows 28 28
selftest-#megs 0 0
boot-device ata/ATA-Disk@0:0 /AAPL,ROM
boot-file
diag-device fd:diags fd:diags
diag-file
input-device ttya ttya
output-device ttya ttya
oem-banner
oem-logo
nvramrc
boot-command boot
ok
0 > reset-all
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 >
[power cycle is required here]
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 > printenv
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? false false
real-base -1 -1
real-size 100000 100000
virt-base -1 -1
virt-size 100000 100000
load-base 70000 4000
pci-probe-list -1 -1
screen-#columns 64 64
screen-#rows 28 28
selftest-#megs 0 0
boot-device ata/ATA-Disk@0:0 /AAPL,ROM
boot-file
diag-device fd:diags fd:diags
diag-file
input-device ttya ttya
output-device ttya ttya
oem-banner
oem-logo
nvramrc
boot-command boot
ok
0 > boot -s
RESETing to change Configuration!
OF_open bootpath=ata/ATA-Disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.14 (Thu Mar 28 08:33:33 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
11800508+167172 [485712+462533]=0xc51a38
start=0x100000
[ 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 10.0 (GENERIC) #0: Sun May 26 12:11:08 JST 2024
[ 1.0000000] tsutsui@mirage:/s/netbsd-10/src/sys/arch/macppc/compile/GENERIC
[ 1.0000000] total memory = 144 MB
[ 1.0000000] avail memory = 125 MB
:
# reboot
reboot: rebooted by root
[ 610.3571337] syncing disks... done
[ 610.3571337] unmounting file systems...
[ 610.3971679] unmounting done
[ 610.4071554] rebooting
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 > printenv
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? false false
real-base 8F00000 -1
real-size 100000 100000
virt-base -1 -1
virt-size 100000 100000
load-base 70000 4000
pci-probe-list -1 -1
screen-#columns 64 64
screen-#rows 28 28
selftest-#megs 0 0
boot-device ata/ATA-Disk@0:0 /AAPL,ROM
boot-file
diag-device fd:diags fd:diags
diag-file
input-device ttya ttya
output-device ttya ttya
oem-banner
oem-logo
nvramrc
boot-command boot
ok
---
Maybe we need to update FAQ and installation notes?
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index