Subject: Re: Dual-boot OS9 & NetBSD 1.6.1?
To: Eric Pretorious <epretorious@hotmail.com>
From: Michael Wolfson <michael@nosflow.com>
List: port-macppc
Date: 05/31/2003 10:23:11
At 12:32 AM -0700 5/31/03, Eric Pretorious wrote:

:)I've read quite a bit of the voluminous on-line documentation for NetBSD
:)1.6.1 but am not able to find the answer to this question: Can I configure
:)my PB G3 Bronze (Lombard) as a dual-boot system?

D'oh.  Not quite voluminous enough, I guess.

Yes, you can have your cake and eat it too.  Three methods:  manual,
devaliases, and yaboot.

The easy thing to do is to just follow the Open Firmware instructions.
Either type 'bye' or 'mac-boot' at the 0 > prompt (depends on OF version)
to get to MacOS.  To get to NetBSD, just type in the the boot command you
figured out.

I have no idea how to use yaboot.

devaliases are like csh aliases to Open Firmware.  You can alias the full
path to your ofwboot.xcf and your MacOS ROM file.

For OF 1 it's a bit of a pain since OF loses its state when you boot to
MacOS.  For OF 2 and 3, you set up devaliases for MacOS and NetBSD.

In MacOS, run Startup Disk and pick your MacOS disk.  When you get into
Open Firmware, type 'printenv boot-device'.  That's the path to your MacOS
ROM file.

You'll also need to expand any current devaliases you use for NetBSD when
you create a new one (it's not recursive).

For example on my pismo with OS9 and ofwboot.xcf on partition 9, OSX on
partition 10, and NetBSD on partition 11:
0 > printenv boot-device
/pci@f2000000/mac-io@17/ata-4@1f000/@0:9,\\:tbxi
0 > devalias hd
/pci@f2000000/mac-io@17/ata-4@1f000/@0
0 > nvalias os9 /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,\\:tbxi
0 > nvalias osx /pci@f2000000/mac-io@17/ata-4@1f000/@0:10,\\:tbxi
0 > nvalias bsd /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,\ofwboot.xcf
0 > nvstore
0 > setenv use-nvramrc? true
0 > reset-all

[...]
0 > boot os9
0 > boot osx
0 > boot bsd hd:11,/netbsd

You could store the hd:11,/netbsd part in boot-file, but it confuses OSX.

Enjoy,
  -- MW