Dreamcast Convert Elf to Self Bootable Image

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Daxtorax
ES Beta Backer
ES Beta Backer
Posts: 26
Joined: Sun Mar 15, 2009 1:34 pm
Favorite Gaming Platforms: Dreamcast, N64, Xbox 360
Programming Language of Choice: C++

Dreamcast Convert Elf to Self Bootable Image

Post by Daxtorax »

I'm just starting dreamcast development and have finally managed to get the very basic hello world example to compile and I now have a .elf. I was wondering what program I could use to boot it on the dreamcast. I tried to look for some sort of program to convert the elf to a bin, or a cdi, but couldn't find anything. I was wondering how you guys convert it, or just run it on the dreamcast in general. I have ran burned cd-r's on my dreamcast before so I know the very basics. Wondering if someone could enlighten me?
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Dreamcast Convert Elf to Self Bootable Image

Post by Falco Girgis »

Damn, dude.

I have two coder's cables and a BBA. I never burn images when I'm trying to test my Dreamcast programs. Especially with all the things I screw up, it's completely unrealistic. I know a bunch of guys who use "multi session" images, so they can burn a million different builds for testing--but even that sucks.

It has been awhile since I've made a selfbooting image, since I've been very much in R&D mode on Dreamcast. I believe you want to compile to a BIN, then convert to scrambled BIN (it might have been unscrambled BIN, I don't remember), then create a selfbooting image. There's a bunch of tools at http://dcemulation.org for that type of stuff. GCC (your DC compiler) can output the starting binary, since ELF is more of a debug format.

If you're serious about Dreamcast development, you should invest in a better means immediately. "Coder's Cables" connect from your PC serial port to your DC serial port. The only problem is that when you want to test images and audio, the bandwidth is HORRIBLE, so it's slow as hell. If you're VERY serious about it, you should invest in a broadband adapter. They go for about $100 on ebay, but you get a 100mbit connection and can literally stream media for you game/program from your PC to your Dreamcast (as we do with ES).

There are two other alternatives (that I'm not very familiar with). There's a "USB coder's cable" which is the equivalent of the serial, except with a higher bandwidth and using USB. There's also a brand, brand new Dreamcast SD card reader that somebody developed, where you can drag and drop your .ELFs to it and launch them from some SD card launcher.

If you're interested in either of the last two, I can't help you much. Do some research or asking at dcemulation.org. If you are really serious about Dreamcast development, a broadband adapter is soooo worth the gigantic cost. It makes development a breeze.
Daxtorax
ES Beta Backer
ES Beta Backer
Posts: 26
Joined: Sun Mar 15, 2009 1:34 pm
Favorite Gaming Platforms: Dreamcast, N64, Xbox 360
Programming Language of Choice: C++

Re: Dreamcast Convert Elf to Self Bootable Image

Post by Daxtorax »

I wish the Dreamcast broadband adapter didn't cost so much, because I just spent the last bit of my change on the vga box. But when I get more money saved up I'll definitely look into it.
Post Reply