Subject: Re: CD booting info wanted
To: None <mw@blobulent.com>
From: SUNAGAWA Keiki <Keiki_SUNAGAWA@yokogawa.co.jp>
List: port-macppc
Date: 10/17/2000 09:42:22
Michael Wolfson <mw@costello.cnf.cornell.edu> wrote:

Michael> Hmmm.

Michael> I just tried some more experimentation with making
Michael> bootable CDs for macppc.  I made a hybrid HFS/ISO
Michael> CD with Toast for MacOS, and it works fine on OF 3,
Michael> but not OF 1.  The behavior is consistent with my
Michael> previous failures to boot as well.

Michael> CD contains ofwboot.elf, ofwboot.xcf, netbsd, and
Michael> netbsd-GENERIC on both HFS and ISO partitions.

Michael> The HFS partition was not marked as "bootable".

Michael> To summarize, OF 1 boots ofwboot.xcf and NetBSD
Michael> from a pure ISO filesystem, but not hybrid or pure
Michael> HFS.  OF 3 boots NetBSD if ofwboot.elf is on a HFS
Michael> or hybrid CD, and the kernel is on an ISO or hybrid
Michael> CD.

Michael> OF 1
Michael> boot scsi-int/sd@3:0,OFWBOOT.XCF	# which works with pure ISO CD
Michael>    bad partition number, using 0no bootable HFS partition
Michael> boot scsi-int/sd@3:1,OFWBOOT.XCF
Michael>    bad partition number, using 0no bootable HFS partition
Michael> boot scsi-int/sd@3:2,OFWBOOT.XCF
Michael>    bad partition number, using 0no bootable HFS partition
Michael> boot scsi-int/sd@3:,OFWBOOT.XCF
Michael>    bad partition number, using 0no bootable HFS partition
Michael> boot fd:0 scsi-int/sd@3:0,NETBSD
Michael>    bad partition number, using 0open scsi-int/sd@3:0,NETBSD: Input/output error
Michael>    open scsi-int/sd@3:0,NETBSD/netbsd: Input/output error
Michael> boot fd:0 scsi-int/sd@3:0,NETBSD	# works only if CD is pure ISO
Michael> boot scsi-int/sd@3:0,OFWBOOT.XCF -a
Michael> # replace CD with a hybrid CD with kernel on ISO filesystem
Michael> # boots NetBSD

Well, please replace `,' with ` ' and try again?

Michael> OF 3
Michael> boot cd:ofwboot.elf				# works
Michael> boot cd:netbsd					# works
Michael> boot cd:ofwboot.elf cd:netbsd-GENERIC		# works
Michael> boot hd:ofwboot.elf cd:netbsd
Michael>    open cd:netbsd: No such file or directory
Michael>    open cd:netbsd-GENERIC: No such file or directory
Michael> boot cd:ofwboot.elf -a
Michael> # replace CD with one that has netbsd on pure ISO filesystem (non-hybrid)
Michael> # boots from kernel on pure ISO filesystem

OF 3.x seems need a `,' after ':' if you use HFS partition.

Michael> So, this looks like it's not possible to come up
Michael> with one CD that will boot OF 3 *and* OF 1, since
Michael> OF 1 will not ignore the HFS partition even though
Michael> it can't load files from HFS.

I thought that I could load ofwboot.xcf on both of 7200 (OF
1.0.5) and iBook (OF 3), but I'm not sure, so I will make
sure that and let you know.

Michael> Here's are the three schemes that work (minimizing size):

Michael> Scheme 1
Michael> CD 1, HFS side:  ofwboot.elf, netbsd.ram, System Disk pointer
Michael> CD 1, ISO side:	 netbsd.ram, distribution files
Michael> CD 2, ISO only:  ofwboot.xcf

Michael> OF 1 users boot from CD 2 with -a, then load kernel from CD 1
Michael> OF 3 users boot from CD 1


Michael> Scheme 2
Michael> CD 1, ISO only:  ofwboot.xcf, netbsd.ram, distribution files
Michael> CD 2, HFS only:  ofwboot.elf, System Disk pointer

Michael> OF 1 users boot from CD 1
Michael> OF 3 users boot from CD 2 with -a then load kernel from CD 1


Michael> Scheme 3
Michael> CD, HFS side:    ofwboot.elf, suntar, boot.fs, System Disk pointer
Michael> CD, ISO side:    netbsd.ramdisk, distribution files

Michael> OF 1 users make boot floppy, boot from floppy and use CD for dist files
Michael> OF 3 users boot from CD


Michael> Personally, I think the best bet would be scheme 1
Michael> including suntar and boot.fs on the HFS partition
Michael> allowing the OF 1 users to decide whether to burn a
Michael> second CD-R or to boot from floppy (as in scheme
Michael> 3).

Michael> And, for future reference, OF 1 and OF 3 only
Michael> recognize files on the first session of a
Michael> multi-session CD.

Michael> And on a semi-related note, ofwboot.xcf on OF 1 does not recognize long
Michael> filenames.  Since Toast wrote the ISO level 1 name in 8.3, "netbsd-GENERIC"
Michael> was only recognized as "NETBSD-G.ENE".  I know cdrecord can write ISO level
Michael> 1 names as 32.32, but don't know if OF 1 can recognize those.  ofwboot.elf
Michael> on OF 3 somehow picked up the full filenames either from ISO level 2 or 3,
Michael> or from the "Apple Extensions" that Toast wrote.

Michael>   -- MW