[haiku-development] Re: PowerPC and the APM

  • From: richard jasmin <jasminr@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 12 Aug 2008 15:56:21 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --see below--

Duane Ryan wrote:
<snip>

> Apple, at the very least, uses the Apple Partition Map (APM) layout to
> boot. OpenFirmware, the Apple's New World computer's BIOS, looks at
> the first (technically, second: the APM itself counts as a partition)
> partition for a file that it can boot. (more info here:
> http://www.kernelthread.com/mac/osx/arch_boot.html and here [PDF]:
> http://www.cs.rpi.edu/~gerbal/BootX.pdf . So, this is going to be my
> main priority over the next few days: creating an image with the three
> partitions on it (the APM, the bootstrap, 800k HFS partition, and the
> final BFS partition, along with a primitive bootloader.
> 
> The cool thing about this map is that, theoretically, both ppc and
> apple's i386 macs can boot it, using a universal binary. So if I get
> this image working, intel macs will be able to boot this sucker. Cool,
> 'ey?

look on openbsd.org for owfboot.b and give it a ramdisk or kernel.
should boot fine.

the trick is using modified ybin from yaboot package to write the
bootsector correctly. when done so, the third partition is pointed to in
OF by the first or second,as you just indicated,  and then the sequence
from an ext3 or Haiku or what ever Linux ewe have starts up.

A ramdisk is usually critical after ofwboot.b. This is known to work
successfully, but may require manual entries in OF for the computer to
find the file and tell it what the kernel is called if you dont use yaboot.

something like
boot: hd:2,ofwboot /boot/<ramdisk image> [<--- this is your / (root)
volume where the file is.]

usually works.has been a few weeks since i was in BSD messing around
with it.i didn't like it and left for ubuntu, but i fgured i'd share my
experiences.

Yaboot fixes this for you, so linux just boots fine with no guessing.

if you're looking for sources, i would head into that direction.


- -cool inbdeed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIoerkZWyv5fvyGz0RAif9AJ9IYq1iD+LtUHux2YTxJdmA28PR/gCeLQ3m
weDrYS6N0DotLyNordN6mqc=
=r5y7
-----END PGP SIGNATURE-----


Other related posts: