The return of the son of the demo CD

Blog post by mmu_man on Tue, 2008-03-04 02:13

Document Obsolete

2009-June: This document is now obsolete. We are in the process of consolidating and re-organizing the website documentation. For now please refer to one of these guides. Alternatively, you can view the in-progress website documentation.

As everyone knows (or should), every BeOS install CD was actually a live CD (way before Linux "invented" it...). And of course so would be for Haiku.

While it used to work long ago, nobody actually tried to make one for some time, and some fixes were required to make it happen again.
Making an usable CD still requires some work (Bootscript.cd, ramdisk for settings maybe...), but it finally boots again.

One of the problems was a kernel argument that was passed as int32 and checked for as bool, obviously missing the int32 value.
The FloppyBootImage jam file I wrote also lacked the scsi_cd driver in the list of boot modules to be put into the gzipped tarball that goes on the floppy image. Since I used a copy-paste from the NetBootImage file I overlooked this.

It's still a bit early to distribute demo CDs, but just so you know when the time comes, let's see how to make one.

Creating a bootable CD requires burning 2 tracks on a single CD.
The first track is an El-Torito bootable ISO-9660 file-system containing a boot floppy image, and is created with:

jam -q haiku-boot-cd

This generates an image file named 'haiku-boot-cd.iso' in your output directory under 'generated/'.
The second track is the raw BFS image 'haiku.image' in 'generated/' created with:

jam -q haiku-image

Under Unix/Linux, and BeOS you can use cdrecord to create a CD with:

cdrecord dev=x,y,z -v -eject -dao -data generated/haiku-boot-cd.iso generated/haiku.image

Where x,y,z is the device number of your cd burner (get it with cdrecord -scanbus).

Windows users might have a look at the .cue files around used for BeOS distros, they should work as well for Haiku.

Comments

Re: The return of the son of the demo CD

Nice

Re: The return of the son of the demo CD

Created a CDRW today, burned it with Nero and a CUE (just like I do with other beos-related CDs)..

Works on real hardware!

Definitely need to investigate a ramdisk option - not only was booting SLOW (took like 5-10 minutes on a Pentium 4) but get all sorts of issues when software tries to write to disk (ProcessController wouldn't even load into the deskbar).

Would be awesome if all the important stuff could be loaded into the ramdisk first thing to cut down on boot time... the CD drive was thrashing all around during load.

Great work!

Re: The return of the son of the demo CD

Yes the Deskbar API requires (for the 2nd method) to add an attribute to the app, which is both broken for RO media, and bad for multiuser...
Even Pulse was doing bad things (1x1 window :)

I was thinking more of settings for the ramdisk, like I did on the Zeta demo cd (memfs on /etc, ~/config and some other places IIRC)...

Re: The return of the son of the demo CD

That's great news! I'll give it a try for sure :)
Many thanks, mmu_man!

Hey did anyone already say to you how beautiful is your first name? ;D
(I know, old joke :P)

Re: The return of the son of the demo CD

Is BluRay disc supported ? :)
(ok ok ... i get out)

Re: The return of the son of the demo CD

good news except I can't get the darn thing to work lol.

I keep getting the following

rm -f generated/haiku-boot-cd.iso
mkisofs -b haiku-boot-floppy.image -r -J -V bootimg -o generated/haiku-boot-cd.iso generated/haiku-boot-floppy.image data/boot_cd/README.html

...failed BuildCDBootImage1 generated/haiku-boot-cd.iso ...
...failed updating 1 target(s)...
...updated 42 target(s)...

Did I completely spaz on something? What should I do?

Re: The return of the son of the demo CD

Of course you have mkisofs installed, don't you ?

Re: The return of the son of the demo CD

and spaz it is!

"Someone needs to hold my hand because my nick isn't always accurate"

Re: The return of the son of the demo CD

Hi! So, any progress? :)
Could someone please put an image somewhere? Then I could make some tests too.
Thanx!

Re: The return of the son of the demo CD

Yeah, a bootable image would be much appreciated.

Re: The return of the son of the demo CD

Why isn't there a floppy boot image available? I nuked my Zeta partition with dd if=haiku.image of=/dev/disk/hd3 or something like that. As far as I could tell it worked fine except that it was not the 10GB partition size I had Zeta on and it wouldn't boot. It would sure be nice if trying Haiku wasn't such a pain in the.... With a LiveCD I could boot from the CD and just copy stuff to a working BeOS/Zeta partition (I think). I tried booting from Zeta 1.21 and mounting the haiku.image but I get nothing but mount errors no matter what I try.

Re: The return of the son of the demo CD

Strange, cause it's exactly what i do: mounting the Haiku image disk on Zeta and copy paste the files on a BFS partition.

Re: The return of the son of the demo CD

But can you boot from the Zeta CD and do it with only one BeOS partition on the drive? I get mount errors.

Re: The return of the son of the demo CD

I don't think so, the Desktop is a read-only inthis case so probably no way to mount something on it...

Re: The return of the son of the demo CD

volumes are mounted on the root filesystem (/), not /boot so it doesn't matter. Them appearing on the Desktop is just done by Tracker.