.elf to cdi ?
-
- DCEmu Cool Newbie
- Posts: 16
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Sun Apr 03, 2011 10:48 am
- Has thanked: 0
- Been thanked: 0
.elf to cdi ?
Hi, i have compiled an .elf (thanks to DC Dev ISO R4).
Now how can i boot this .elf with SDcard ?
How can i convert my .elf to .cdi ?
Thanks.
Now how can i boot this .elf with SDcard ?
How can i convert my .elf to .cdi ?
Thanks.
- Basil
- Insane DCEmu
- Posts: 200
- Joined: Wed Apr 09, 2008 9:04 am
- Has thanked: 13 times
- Been thanked: 0
- Contact:
Re: .elf to cdi ?
You have to convert elf to bin first then create iso for loading from sd card .
Buy more independent Dreamcast games:
https://www.goatstore.com/Products/Sega ... elopments/
https://www.dragonbox.de/en/201-for-sega-dreamcast
https://www.goatstore.com/Products/Sega ... elopments/
https://www.dragonbox.de/en/201-for-sega-dreamcast
Re: .elf to cdi ?
Thanks for your answer but my questions are :
- how convert .elf to .bin ?
- how launch .bin with my SDcard ? (with DreamShell ?)
Thanks.
- how convert .elf to .bin ?
- how launch .bin with my SDcard ? (with DreamShell ?)
Thanks.
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: .elf to cdi ?
For an unscrambled binary (which you cannot burn to a cd without scrambling first), do this (assuming your toolchain is sane):mouZ wrote:- how convert .elf to .bin ?
Code: Select all
sh-elf-objcopy -R .stack -O binary file.elf file.bin
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: .elf to cdi ?
If you're compiling code yourself, there's little to no reason to be using elf2bin. Especially since its probably just a renamed version of sh-elf-objcopy anyway.
Re: .elf to cdi ?
Oh
yes. Thanks again.
DreamShell can't load the .bin.
How can i load the .bin without codercable ?
![Smile :)](./images/smilies/icon_e_smile.gif)
DreamShell can't load the .bin.
How can i load the .bin without codercable ?
- PH3NOM
- DC Developer
- Posts: 576
- Joined: Fri Jun 18, 2010 9:29 pm
- Has thanked: 0
- Been thanked: 5 times
Re: .elf to cdi ?
I have made a script to build a .cdi image from a compiled elf! Assuming you use windows, this should work for you.mouZ wrote:Hi, i have compiled an .elf (thanks to DC Dev ISO R4).
How can i convert my .elf to .cdi ?
Thanks.
http://www.megaupload.com/?d=72M4Y7A3
Just name the elf 1st_read.elf and place it in the /data folder then run CDi4DC.bat
( you can also set the elf name to something else, just look at CDi4DC.bat )
Hope that helps!
Last edited by PH3NOM on Tue Apr 05, 2011 12:43 pm, edited 1 time in total.
Re: .elf to cdi ?
Thanks PH3NOM but your MU link is break. :/
I can't load .bin without codercable ?
I can't load .bin without codercable ?
- PH3NOM
- DC Developer
- Posts: 576
- Joined: Fri Jun 18, 2010 9:29 pm
- Has thanked: 0
- Been thanked: 5 times
Re: .elf to cdi ?
Link fixed, sorry it was a typo:-)
4 ways to test code on DC:
1-CD-Rom
2-Coders Cable
3-BBA
4-SD card
2-4 still require a boot disc of some sort
I only use method 1, and I have given you all the help I can with that.
Maybe some others here feel like sharing how to use methods 2-4, but there should be more than enough info available searching the net...
4 ways to test code on DC:
1-CD-Rom
2-Coders Cable
3-BBA
4-SD card
2-4 still require a boot disc of some sort
I only use method 1, and I have given you all the help I can with that.
Maybe some others here feel like sharing how to use methods 2-4, but there should be more than enough info available searching the net...