Subject: Re: Booting NetBSD on Old World Mac
To: Allen Wong <allen@submoron.org>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 12/12/2007 11:50:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 11, 2007, at 21:19, Allen Wong wrote:

> I recently acquired a Powermac 9500 (dual 180MHz 604e) and I  
> installed NetBSD
> 2.0 (the NetBSD 3.1 iso wouldn't boot on it because it didn't have  
> the kernel
> ofwboot.xcf loader in the top level directory) on it.  The install  
> went fine
> but I'm unable to boot for the first time.  I am using the boot  
> loader from the
> cdrom but I can't figure out which is the / partition.  I've set  
> the load-base
> to 600000 and real-base to F00000.  I've tried guessing all the  
> numbers from
> "scsi-int/sd@0:0" to "scsi-int/sd@0:13" and a few others included.   
> Any help
> would be most appreciated.
>
> Here is the general output I get when I try to boot (from a serial  
> console):
>
> Open Firmware, 1.0.5
> To continue booting the MacOS type:
> BYE<return>
> To continue booting from the default boot device type:
> BOOT<return>
>  ok
> 0> boot scsi-int/sd@3:,\OFWBOOT.XCF;1 scsi-int/sd@0:3,/netbsd  
> loading XCOFF
> tsize=C850 dsize=28C bsize=25C0 entry=E00000
> SECTIONS:
> .text     00E00000 00E00000 0000C850 000000E0
> .data     00E0D000 00E0D000 0000028C 0000C930
> .bss      00E0D290 00E0D290 000025C0 00000000
> loading .text, done..
> loading .data, done..
> loading .bss, done..
>
>>>  NetBSD/macppc OpenFirmware Boot, Revision 1.10
>>>  (builds@build, Wed Dec  1 13:46:04 UTC 2004)
> bad partition number, using  0@@@@@@@@@read header
>  start=0x0
> DEFAULT CATCH!, code=FFF00300
>  ok
> 0 >

Are you trying to share the disk with MacOS? I never got that to work  
properly with anything older than OF3. If you don't need MacOS on the  
same disk the best way is to wipe out the apple partition table and  
partition it using NetBSD, then you won't have to mess with OF  
partition numbers.

Then - the state of SMP support for old world Macs in -current is  
unknown because nobody has hardware to test on. When you get the  
machine to boot please try a -current SMP kernel and tell us where it  
explodes ;)

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBR2ARcspnzkX8Yg2nAQLaZgf8CJBhGen2j3KKJloXv6IVvDgr3G3RXZ0r
sLjNw6femnMRc0lKAsqdkC+dDlnOtsdSHV0t9wRCmdM4avpnvPahck2wcWvJH6cA
QNN8KcC94FO4cdnOtp5qA7u2wjBLiw71ZZUEYrdPkkcKJjLS3Wv386ayRRObpBEo
NnyVxsrqDtWJFCn3cckiOngc4uxiv6V6bw3KQwhEnZe40Qw7fYAPIgLjXg76FB1M
9pVGLyDe+lswMSycDKx0JDhot/0+ebDgI8J21NkF/ImxwmvJGA1d2K1hxvyKyNLQ
fAcd5IsfkmGMXWokxrf4UgEuZRf5SGt70SuYV32H0AxPzTBNgQV0jw==
=w8tt
-----END PGP SIGNATURE-----