Kuro5hin.org: technology and culture, from the trenches
create account | help/FAQ | contact | links | search | IRC | site news
[ Everything | Diaries | Technology | Science | Culture | Politics | Media | News | Internet | Op-Ed | Fiction | Meta | MLP ]
We need your support: buy an ad | premium membership

[P]
BeOS 5 on a MacBook Pro

By MichaelCrawford in MichaelCrawford's Diary
Tue Jun 06, 2006 at 08:42:26 PM EST
Tags: BeOS, QEMU, Q, Ogg Frog, ZooLib, cross-platform, emulator, partition, sfdisk (all tags)

One would think that one could install BeOS on a modern Macintosh by using the QEMU PC emulator, but everyone who tries to boot QEMU from the BeOS installation CD is stymied by the message "Please place the BeOS CD in the CD-ROM drive". I guess the BeOS boot loader tries to access the drive in a way QEMU doesn't emulate, that hasn't been needed by the other operating systems that QEMU does support.

I really badly needed to install BeOS 5 on my MacBook Pro to support Ogg Frog's development, so I figured out a workaround.

I want Ogg Frog to support all the operating systems supported by the ZooLib cross-platform application framework. Besides BeOS, there is Mac OS X, Windows, Linux, and PowerPC and 680x0 Classic MacOS. It would drive me bananas if I had to use real computers to test all those different platforms.

My solution was to install the BeOS on a real PC, then to use the dd command to copy its partition to a disk image file. I used Linux' sfdisk to give the disk image a partition table that precisely reproduces the original partition's size, then I transferred the image to my MacBook Pro and installed it under QEMU.

There are some gotchas, so the whole procedure is pretty complex. I describe it in detail with a working example in my new article:

Inside: You can run Classic on Intel Macs!


I knew you'd say "-1, Buy an Ad", so I did.

Even if QEMU's developers were to fix the BeOS' problem with the emulated CD-ROM drive, my procedure would be useful for other purposes with most operating systems. For example, one could safely test proposed configuration changes before committing them to a real system, or one could debug arcane problems in a real installation by copying it to an image then running it in QEMU under a debugger.

While it's tedious to perform manually, my method could easily be automated and made very quick and easy to use. A simple Perl or Python script would work under Linux, while a C program could be used from any operating system.

So far I just discuss the BeOS under QEMU, but as I continue work on my article I'll talk about other operating systems and other emulators, for example how SheepShaver and Basilisk II can provide PowerPC and 680x0 Classic MacOS environments, which Apple doesn't support on Intel Mac OS X.

I only give QEMU configuration instructions for the Q front-end to QEMU on Mac OS X, but anyone who's ever used QEMU will know what to do once they've been able to create a BeOS disk image.

My article has the Creative Commons Attribution-Sharealike 2.5 license.

On a more personal note, Ogg Frog represents my first BeOS development since I was unsubscribed from the bedevtalk mailing list after posting a particularly pithy flame back in 2000. While I resented Be's senseless business management and its "change in focus" after all my hard work to support the BeOS, I never lost my love of the platform, my admiration for the quality of work evidenced by Be's engineers, or the camaraderie of the tight-knit BeOS developer community.

Thus when I decided that Ogg Frog would be Free (as in Freedom) Software, I knew from the start that I'd be supporting the BeOS. And with Haiku getting closer to release, I'd do my part in supporting it as well.

Because ZooLib uses some assembly code to improve performance, its BeOS port only supports Intel. As part of my work on Ogg Frog, I'll also be adding support for BeOS PowerPC to ZooLib.

Ever Faithful,

Michael David Crawford

PS. Yeah, I know my domain expired. I just renewed it, but the DNS isn't available yet.

Sponsors

Voxel dot net
o Managed Hosting
o VoxCAST Content Delivery
o Raw Infrastructure

Login

Poll
Which BeOS do you prefer?
o Be Box PowerPC 33%
o Macintosh PowerPC 33%
o Intel 33%

Votes: 3
Results | Other Polls

Related Links
o QEMU PC emulator
o Ogg Frog's
o ZooLib cross-platform application framework
o Single-Mac hine Cross-Platform Development Through CPU Emulation.
o I did
o SheepShave r
o Basilisk II
o Q front-end to QEMU
o Creative Commons Attribution-Sharealike 2.5 license.
o Haiku
o Michael David Crawford
o MichaelCrawford's Diary


Display: Sort:
BeOS 5 on a MacBook Pro | 11 comments (11 topical, editorial, 0 hidden)
s n o r e (1.33 / 3) (#1)
by zombie penis cyst on Tue Jun 06, 2006 at 08:44:42 PM EST




"I think I have a new dupe." - maynard
+1FP (none / 1) (#2)
by t1ber on Tue Jun 06, 2006 at 08:56:17 PM EST

Put it in the queue under MLP.

Or, actually write an article, give us the history of BeOS, tell us why we'd want to run it like that, and thanks for buying an ad.

And she said...
Durka Durka Mohammed Jihad
Sherpa Sherpa Bak Allah
Hadji girl I can't understand what you're saying.

Yep qemu is cool. (none / 0) (#5)
by neozeed on Tue Jun 06, 2006 at 09:28:16 PM EST

Ive even cobbled together a pcap driver so it can be native on the network.. no more nat!

http://www.dad-answers.com/qemu-forum/viewtopic.php?t=1568 There a little link whoreing of my own!

-----------------------
Unless you're alive you can't play. And if you don't play, you don't get to be alive.

Nighty-Night (none / 0) (#7)
by MichaelCrawford on Tue Jun 06, 2006 at 09:31:45 PM EST

I've been up about twenty-four hours now, so it's time for me to go to bed.


--

Live your fucking life. Sue someone on the Internet. Write a fucking music player. Like the great man Michael David Crawford has shown us all: Hard work, a strong will to stalk, and a few fries short of a happy meal goes a long way. -- bride of spidy


Shouldn't you be booting the BeOS CD from qemu? (none / 0) (#8)
by Mathemagician on Tue Jun 06, 2006 at 10:57:33 PM EST

Instead of the other way around? Also, there's some qemu option that you have to use while installing win2k, which you don't use after installation. That might be worth a shot next time around.

BeOS? (none / 0) (#10)
by MrHanky on Wed Jun 07, 2006 at 03:01:59 AM EST

Are you going to support *BSD as well? How about OS/2 and CP/M? I'm sure you can dig up their corpses and have your way with them if you please.


"This was great, because it was a bunch of mature players who were able to express themselves and talk politics." Lettuce B-Free, on being a total fucking moron for Ron Paul.
BeOS 5 on a MacBook Pro | 11 comments (11 topical, 0 editorial, 0 hidden)
Display: Sort:

kuro5hin.org

[XML]
All trademarks and copyrights on this page are owned by their respective companies. The Rest © 2000 - Present Kuro5hin.org Inc.
See our legalese page for copyright policies. Please also read our Privacy Policy.
Kuro5hin.org is powered by Free Software, including Apache, Perl, and Linux, The Scoop Engine that runs this site is freely available, under the terms of the GPL.
Need some help? Email help@kuro5hin.org.
My heart's the long stairs.

Powered by Scoop create account | help/FAQ | mission | links | search | IRC | YOU choose the stories!