Subject: Re: macppc boot process.
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Tim Kelly <hockey@dialectronics.com>
List: port-macppc
Date: 08/26/2004 12:57:32
---------- Original Message -------------
Subject: Re: macppc boot process.
Date: Thu, 26 Aug 2004 21:45:21 +0900
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: port-macppc@netbsd.org
>>
Hmm, which do you try to replace ofwboot.xcf or ofwboot?
As I wrote before, XCOFF ofwboot.xcf is loaded by OFW and
raw ofwboot is loaded by bootxx.
>>

If I type (in OF 1.0.5)
boot scsi-int/@6:1,\boot.mac netbsd

I would expect to be able to boot using the bootloader boot.mac (on the internal hard drive with SCSI ID 6). However, since the partition 1 is not recognized by OF (as it is FFS), this fails and rolls over to partition 0. This leads to booting with bootxx, which does not recognize boot.mac, even though it is on the same partition as ofwboot. This situation does not occur when partition 1 is msdos, and files can be copied in and out of this partition easily.

>>
I'm not sure what you tried on "replacing /boot,"
but requirements for the secondary bootloader to be
loaded by bootxx are:
- It has "raw" binary format (created by objcopy -O binary).
- Its text address is the same with DEFAULT_ENTRY_POINT in bootxx.c.
- "struct bbinfo" (defined in sys/bootblock.h) in bootxx is filled
  or updated by installboot(8) after the new secondary bootloader is
  installed in the file system.
>>

I appreciate the further clarification of this process. I will examine this.

thanks,
tim
--