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 19:31:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 12, 2007, at 18:54, Allen Wong wrote:

> -> 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.
> ->
>
> No, this will only run NetBSD.  Here is the partition map:
>
> Partition map (with 512 byte blocks) on '/dev/sd0c'
>  #:                type name    length   base    ( size )
>  1: Apple_partition_map Apple       63 @ 1
>  2:           Apple_HFS boot     65536 @ 64      ( 32.0M)
>  3:     Apple_UNIX_SVR2 root    614400 @ 65600   (300.0M) S0 RUFS  
> k0  / sd0a
>  4:     Apple_UNIX_SVR2 swap    262144 @ 680000  (128.0M) S1  SFS  
> k0  (swap) sd0b
>  5:     Apple_UNIX_SVR2 var    1024000 @ 942144  (500.0M) S2  UFS  
> k0  /usr sd0g
>  6:     Apple_UNIX_SVR2 usr    2097152 @ 1966144 (  1.0G) S2  UFS  
> k0  /usr sd0e
>  7:          Apple_Free Extra    64465 @ 4063296 ( 31.5M)
>
> The entire dmesg from the install kernel can be found at:
>
> http://www.submoron.org/pmac_9500_dmesg.txt
>
> Any idea what magic words I need to chant to get it to boot?  I've  
> been trying
> many different permutations of the boot command without success.   
> Is it possible
> that the drive hasn't spun up (the system has been powered up for  
> hours)?

How did you install the boot loader on the harddisk? You need the 1st  
stage loader ( bootxx ) in partition 0 and the loader itself  
( ofwboot, without the xcf extension ) in /, installboot takes care  
of bootxx but probably not of ofwboot.
Then, how did you create those partitions? With pdisk or just  
disklabel? What worked for me is to wipe the apple partition map and  
just run disklabel. This will create partitions that MacOS can't see  
but I don't think you'd care about that.
On my S900 ( which I don't have anymore, unfortunately ) I used boot  
'scsi-int/sd@0:0 netbsd'

> -> 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 ;)
> ->
>
> I will try to run -current on this system.  Will I need to upgrade  
> to version 3
> before building and installing -current?

No, all you need to run a -current kernel is the boot loader from - 
current, the GENERIC kernels from releng should have all the required  
compatibility stuff for running a 2.x userland.

> As always, any advice is greatly appreciated.  Thanks in advance!

Keep in mind that OF 1.0.5 is weird even by Apple standards, it's  
never been intended to load operating systems ( /AAPL,ROM just  
invokes the MacOS ROM - this version of OpenFirmware doesn't even  
understand HFS for instance ) so things aren't always logical. Keep  
trying, get rid of the Apple partition map, install the partition  
zero boot loader and cross fingers - I  always got it to work like  
that but sometimes it took a while for no apparent reason. You'll  
need to reset-all after each try - subsequent boot attempts without  
that will always fail, not always with error messages that make sense.

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

iQEVAwUBR2B9R8pnzkX8Yg2nAQJ9FAf/XJ7Ma1IPcZBsGJAVpMoiRI9Ub2inxzQG
d8x9QKQAI/tKJohX7p1Pdg/8JY8SJcipYm2hGVr0WGgN/lhavhhHzQq6dgAUAnUw
y16/Wajy7oe0SOpqJucX8tkFpWchbJZIPr1xcqoOwOxtJFKHnWLL+WduqASGCNQs
lBxa9oXBNG+xK1OriSY/AjS/t3nr2E45fwFUWKVHa6Rp9RzR6rVBB10uFXwVU8Ll
k36tcb4JF1bnyGnR5b+N7k8pWGdumMbtl4CjsZ8zTulELxxDCScoaoFD3fOuug6j
+CPtDn4SjcbN3Ldn3q7MUd8OgjK61n60/SUjeO3+APpiaJDBVUcg+A==
=XuMe
-----END PGP SIGNATURE-----