Subject: Possibly moving the start of the disklabel in NetBSD-only disks
To: None <port-macppc@netbsd.org>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-macppc
Date: 08/11/2000 16:01:14
One of the things I'd like to do as part of fixing up installboot to
support Apple partitioned disks is get the "driver" table entries, located
in sector 0, correct. I'd like to fix this as it might be partly why we
can't boot on OF 2.4 disks. :-)

There is a problem though. A driver consists of three fields, a start
(int32_t), a length (int16_t), and a type (int16_t). The problem is that
the way the structures are layed out, the type filed of the first driver
will overlap with the first 2 bytes of the magic number in the disklabel
we stick there.

MacOS is OS type 1. I'm not sure if the boot loaders care about this
number or not..

So I see two solutions. One is to move the disklabel up 4 bytes, to start
at byte 68. This might cause compatability problems.

Another is to say that we are OS 0x8256, which is the first two bytes of
the NetBSD disklabel magic number. :-)

Thoughts?

Take care,

Bill