The Mini-ITX box powering schmonz.com has been limping through hardware trouble for the last year. I just bought a Mac mini to replace it. Like its predecessor, it will run NetBSD.
Installing NetBSD on PowerPC Macs can be tedious. The install instructions, assuming that an Apple partition map and a small Mac OS X boot partition are needed for Open Firmware 3 machines, explain how to get Mac OS X and NetBSD to coexist on a single disk. I found a post by Matt Thomas showing these assumptions to be false, and have installed NetBSD all by itself as follows.
From another Unix machine, create a small ISO9660 filesystem containing the bootloader:
mkisofs -r -apple -o boot.iso ofwboot.xcf
Get to an Open Firmware prompt, then boot the NetBSD 3.0 install CD:
boot cd:,\ofwboot.xcf netbsd.macppc
Escape to a shell and copy
boot.iso
onto the Mac somehow (Inewfs
’d a bit of disk andscp
’d it there).Write it to the internal IDE disk:
dd if=boot.iso of=/dev/wd0c
Go back to
sysinst
and install NetBSD.When writing the disklabel, create a 1MB
h
partition starting at the beginning of the disk, then adjust thea
partition to start afterh
.Point Open Firmware at the bootloader:
setenv boot-command " screen" output boot setenv boot-device hd:OFWBOOT.XCF;1 setenv auto-boot? true reset-all
Later, if you need to update the bootloader, run
mkisofs
over the newofwboot.xcf
, then run the samedd
command as before, adding the argumentsskip=32 seek=32
(this should avoid scribbling over your disklabel).
Thanks to matt
and uwe
for their help.
I had initially installed 3.0_STABLE, but had to roll back to 2.0.2 for stability; details in NetBSD PR 34165.
Thanks a lot !
It worked great for me.
Whatever was wrong in 3.x is fixed in 4.0, which I’m now running (follow the link for more).