[openbeos] Re: Problems compiling haiku in ubuntu

  • From: Bryan Varner <bryan@xxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 22 Feb 2007 13:28:03 -0500

I've been following this crosscompile thread with great interest the last few days. It sparked my interest enough to build a haiku image on my Fedora Core 6 box at work.


This machine happened to have a mostly-working R5.0.3 install on one partition, so I figured I would get adventurous.

My firing up qemu with hda as the boot image, and hdb as my R5 partition, I was able to run the Haiku installer (when I upped the qemu memory to 256, it took 240 to run the install process, VM died as expected on 128) to copy all the Haiku files over to the old partition.

However, this wasn't necessarily what I wanted to do, but the tools I needed weren't on the default haiku-image.

I wanted to mkbfs /dev/disk/ata/0/slave/raw into a newly formated drive, and mount that. Then install Haiku to it, and bootman (or makebootable, whichever) to write the MBR to that partition.

However, it appears that mkbfs isn't part of the haiku-image. That seems silly. I'm curious, why? And how do I hack the build system to add that in?

As for writing the bootloader to the partition, I'd be happy if anyone could give me instructions on how to do that from even outside of Haiku. For example, writing it to the partition as root on my linux install.

I could be crazy, but I think it's possible to actually install Haiku on a Linux box from inside Linux if I do this right...

Anyone else tried?

-Bryan

Other related posts: