Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Installing and booting and OF3 machine from a single empty internal disk, not working



> > 0 > boot ultra1:,ofwboot.xcf -c load-size=e938 adler32=a43122e3
> 
> What is the stuff after -c? How do you know that you need this?

-c invokes USERCONF prompt, so that I can read early boot messages
before they are scrolled out. It isn't necessary for normal boot.

> Also, did you create the disk layout with an install kernel?

No, I set up all labels manually.

> This
> would be the best solution in my opinion, we could have some
> instructions on how to set up the disk using the install kernel,

IIRC as the following, but it looks there are misc quirks.
I'll check what are actually necessary or not.

First, create MBR partitions by fdisk(8).
Partition 0 for MSDOSFS like:
sysid 6, start 63 (default), size 1c (one cylinder, usually 16002)
Partition 1 for NetBSD 
sysid 169 (default), start 16065 (default) size default (rest)

Second create BSD disklabel by disklabel(8) with -i and -I option etc.
(it might be better to reboot before this to reflect the above MBR
 info into in-core label, but I'm not sure if it's necessary)
Partition a should have offset 16065, as the above MBR partition.
Partition b follows partition a and its size should be for your swap.
Partition c should be a whole disk. (whole size, offset 0)
Partition e is MSDOSFS, offset 63 and size 16002 (= 16065 - 63).

Then newfs both partitions.
# newfs_msdos -s 16002 /dev/rwd0e
# newfs /dev/rwd0a

(it looks OF could be confused if MSDOSFS has some certain parameters)

Copy ofwboot.xcf into the MSDOSFS (ofwboot.xcf is in root of CD),
extract necessary binary sets (at least base, etc, kern-GENERIC)
into partition a, and then create device files by "sh MAKEDEV all"
in ./dev dir in the partition a.

> then
> install with the install kernel, and then boot the machine as you have
> done.

It would be trivial to make sysinst prepare such MSDOSFS
with fdisk partition. (I did it for NetBSD/arc)

We may need some API to get OF version (vis sysctl(8) etc) though.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index