NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/59632: Cannot Boot NetBSD 10.1 on Mac G



The following reply was made to PR port-macppc/59632; it has been noted by GNATS.

From: James Horner <humankind135%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-macppc-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
	netbsd-bugs%netbsd.org@localhost
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@localhost:/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@localhost> 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@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: tsutsui%ceres.dti.ne.jp@localhost
 > 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
 >
 


Home | Main Index | Thread Index | Old Index