Subject: Re: How does one install NetBSD on a mac cube?
To: None <port-macppc@netbsd.org>
From: Andrew White <awhite@arc.corp.mot.com>
List: port-macppc
Date: 03/02/2001 12:03:37
Vickie Jean- Charles wrote:
> 
> Greetings,
> 
> Well, it seems that I have gotten past the first stage of booting!! I think anyway.  I typed "boot hd:ofwboot.xcf"  and I got a response to the effect of the following:
> 
> NetBSD/macppc
> some guy's name
> blah, blah, blah
> boot:
> 
> Now, the last line where it says boot is where I am stuck.  I am assuming
> that it is looking for the kernel.  Well, I pointed to the kernel, which
> is unzipped on my hd, and it couldn't find it. I pointed to the zipped
> one on the cd, which is macppc bootable, and it couldn't find it.
> Exactly, what am I supposed to do?  Any help would be greatly
> appreciated.

Haven't tried this on the Cube yet, but on the architecturally similar G4
pillow I found that copying the boot.fs file to the same device root as
ofwboot.xcf and then using the boot command below worked.

0> boot hd:p,ofwboot.xcf hd:p,boot.fs
	(where p is partition #, possibly optional)

Caveat - worked on AGP G4, hasn't been checked on Cube.

Caveat 2 - The default install wants to clobber a HD, and wants to boot off
device wd0.  With a single HD in the Cube, this could cause complications. 
Apparently it is possible to manually do the install, but I haven't tried
that yet.  Henry Holtz mail "Re: Booting G4 (how-to)" send Tues seems to
give a concise run-down of the main steps.


PS:  A lot of people triumphantly noted that 

0 > boot hd:10,ofwboot.elf cd,netbsd.macppc

wouldn't work because I forgot the colon.  I actually tried this with and
without colons, slashes and partition numbers, but none worked.  The
presence or absence of particular partition numbers (eg 0,1,2) did affect
whether the error was device not available or file not found.

I may have had some success if I could figure the correct cd partition, but
that doesn't seem to be 0 or the default.


And for the FAQ - On first boot, NetBSD dropped me into single user mode. 
The FAQ said to edit rc.conf, but wd0 is write only.  It didn't say how to
fix this.  Assuming fstab is set up, the necessary commands are

# mount -u -w /
# mount /usr

which will remount the root directory r/w and mount /usr, which is all your
tools (the second command is mentioned, I think).


PS Is there a way to switch default boot device from wd0 to wd1 without a
kernel recompile?

-- 
Andrew White
(Speaking for myself, not Motorola)