Subject: port-macppc/11513: Bootable CD for Open Firmware 3 default setting
To: None <>
From: Y. Takizawa <>
List: netbsd-bugs
Date: 11/17/2000 09:17:14
>Number:         11513
>Category:       port-macppc
>Synopsis:       Bootble CD for Open Firmware 3 default setting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 17 09:17:00 PST 2000
>Originator:     Y. Takizawa
>Release:        NetBSD-current

	You can make a macppc bootable CD supported for `C' key holding down,
	Open Firmware 3 default CD boot sequence (``boot cd:,\\:tbxi''),
	using hfsutils and mkhybrid.

	Referring this procedure, you can also set a macppc bootable HD
	but MacOS boot cancels the setting (I do not know why).

	Assume the following files (these ARE samples):

$ ls -lR hybrid
total 2806
drwxr-xr-x  2 takizawa  wheel      512 Nov  8 16:30 boot
-rw-r--r--  1 takizawa  wheel  1363541 Nov  8 20:16 netbsd.ram.gz
-rwxr-xr-x  1 takizawa  wheel    59072 Nov  8 15:57 ofwboot.elf

total 2
-rw-r--r--  1 takizawa  wheel  277 Nov  8 20:18 bootinfo
$ cat hybrid/boot/bootinfo
iMac,1 PowerMac1,1 PowerBook1,1 PowerMac2,1 PowerMac3,1 PowerBook2,1 PowerBook3,1 PowerMac5,1
NetBSD/macppc bootable CD script
boot cd:,ofwboot.elf cd:/netbsd.ram.gz

	To make a bootable CD image:

$ mkhybrid -hfs -part -r -J -l -o macppc.image hybrid
$ hmount macppc.image
$ hattrib -b :boot
$ hattrib -t tbxi -c chrp :boot:bootinfo
$ humount

	Holding down `C' key (``boot cd:,\\:tbxi'') causes a CD boot
	to read ``cd:0,\boot\bootinfo.''
	Blessed attributes (``hattrib -b'') are canceld to boot MacOS
	except read-only media (including CD).