Subject: port-macppc/11513: Bootable CD for Open Firmware 3 default setting
To: None <gnats-bugs@gnats.netbsd.org>
From: Y. Takizawa <you@nightbreak.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Y. Takizawa
>Release:        NetBSD-current
>Organization:
>Environment:


>Description:
	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).

>How-To-Repeat:
	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

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

	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).

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: