Subject: Re: PowerMac 7300 won't boot 2.0 iso
To: None <port-macppc@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-macppc
Date: 12/15/2004 19:15:01
In article <20041215030008.GC5660@netbsd.org>
wrstuden@netbsd.org wrote:

> From looking at the logs, the CD actually has bootxx 1.5 or so.

It seems customized to take only one value (maybe top of
contiguous blocks) to specify ofwboot blocks to be loaded.
(I'm not sure how the length is specified though. hardcoded?)

> Luke and I dug into things, and there is a lot of magic in what's going 
> on. For now, it doesn't look easy to pull in a new bootxx.

I think it should be trivial.

mkmacppcboot.c adds apple partition map which contain bootxx,
and mkisofs with -boot-hfs-file option puts the bootxx.raw into
the second partition after the iso9660 fs partition.
Then distrib/cdrom/Makefile appends ofwboot (that is taken from
distribution and it causes version mismatch problem) after the image
and macppc_installboot.c just puts a value of "the first block of ofwboot"
into the (customized) bootxx in the second partition.

We could modify macppc_installboot.c to fill
struct shared_bbinfo like MI installboot does.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp