PDA

View Full Version : Tutorial: How to burn CDI files on Linux.



dragos240
October 11th, 2009, 17:15
This method has worked for me. For this to work you will need 8 Things:

1. A sega dreamcast
2. A blank disk
3. A linux system
4. Cdrecord
5. Cdirip
6. A dreamcast game in CDI format (the way most DC games are formatted in)
7. A working cd-r drive.
8. And a physical computer

Okay, lets start. Make sure you have cdrecord, this is pre-installed on most distros. If it isn't, install it via your local repository. Now, get cdirip from here (http://es.geocities.com/dextstuff/cdirip/cdirip06.tgz). Extract the tar.gz with tar by doing this.


tar -xf cdrip06.tgzNow that that is done, you need to make cdirip able to execute and also you need to copy it to /usr/bin. Do both by doing this:


chmod +x cdirip && cp cdirip /usr/binOkay, now that those are installed, download this script. (thanks to milksheik)

2147511530

Rename this script to burndc-cdi by:


mv burndc-cdi.txt burndc.cdiAfter this chmod it:


chmod +x burndc-cdiedit the file with whatever editor you want, and edit this:


if [ -f $WAVFILE ]; then
cdrecord dev=ATA:1,0,0 speed=4 -multi -audio $WAVFILE && rm $WAVFILE
elif [ -f $ISOFILE ]; then
cdrecord dev=ATA:1,0,0 speed=4 -multi -xa $ISOFILE && rmdo this,


cdrecord -scanbusand look for a result, when you've found it, edit that in. For example, mine is 4,0,0 in this example:


~$ cdrecord -scanbus

scsibus4:

4,0,0 400) 'TSSTcorp' 'CD/DVDW TS-H652D' 'GA01' Removable CD-ROM
and I would change it to this:


if [ -f $WAVFILE ]; then
cdrecord dev=ATA:4,0,0 speed=4 -multi -audio $WAVFILE && rm $WAVFILE
elif [ -f $ISOFILE ]; then
cdrecord dev=ATA:4,0,0 speed=4 -multi -xa $ISOFILE && rmNow save the file.

And finally, burn the file onto the disk with:

./burndc-cdi DREAMCAST-CDI-FILEor


bash burndc-cdi DREAMCAST-CDI-FILEReplacing DREAMCAST-CDI-FILE with your cdi.

Enjoy!

fallout
March 10th, 2010, 02:10
Ok I only registered to get this textfile as in his other bbs posts they are down.
I created so many coasters on my linux box, I hope this tutorial wont lead to more : )

To help others heres the plain text of burndc-cdi
http://paste.ubuntu.com/392182/
http://pastebin.com/aPX5yR04

Edit the script burndc-cdi is broken atleast on ubuntu 9.10 with latest kernel

run wodim --devices by opening a terminal and run the command


EXAMPLE
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/scd0' rwrw-- : 'HL-DT-ST' 'DVDRAM GSA-4163B'
-------------------------------------------------------------------------


and copy the drive virtual path "dev='/dev/XXX'

Open burndc-cdi and replace


dev=ATA:1,0,0

with


dev=/dev/XXX

But it only wrote the first audio track yust like nero for linux ... so another coaster ...
theres more wrong


Found image file. Opening...
This is a v3 image

Analyzing image...
Found 2 session(s)

Ripping image... (Press Ctrl-C at any time to exit)

Session 1 has 1 track(s)
Creating cuesheet...
Saving Track: 1 Type: Audio/2352 Size: 302 LBA: 0 [cut: 2]

Session 2 has 0 track(s)
Open session

All done!



While running


xxx@ubuntu-desktop:~/Downloads/cdirip06$ cdirip /home/xxx/Downloads/cdirip06/xxx.cdi /home/xxx/Downloads/cdirip06 -cdrecord
CDIrip 0.6 - (C) 2001 by DeXT

Searching file: '/home/xxx/Downloads/cdirip06/bbq-aero.cdi'
Found image file. Opening...
This is a v2 image
Destination path: '/home/xxx/Downloads/cdirip06'

Analyzing image...
Found 2 session(s)

Ripping image... (Press Ctrl-C at any time to exit)

Session 1 has 1 track(s)
Creating cuesheet...
Saving Track: 1 Type: Audio/2352 Size: 300 LBA: 0 [cut: 2]

Session 2 has 1 track(s)
Saving Track: 2 Type: Mode2/2336 Size: 341445 LBA: 11700 [cut: 2] [ISO]

All done!


Outputs right. I should continue with rw media...


cdirip cannot be downloaded anymore from megagames or authors website.

Waybackarchiv mirror
http://web.archive.org/web/*/http://es.geocities.com/dextstuff/cdirip/cdirip06.tgz

http://www.1filesharing.com/download/SP3XZJZ7/cdirip06.tgz
http://www.rapidmirrors.com/files/2WRIKRJE/cdirip06.tgz
http://www.uploadmirrors.com/download/KWI2FRKH/cdirip06.tgz

Darksaviour69
March 10th, 2010, 10:13
thanks for the guide fallout

NaiGuy
October 22nd, 2010, 17:34
After just recently getting my hands on a Dreamcast and becoming interested in Homebrew. I found this tutorial, It works great for the most part but still gives me some issues So far I have plenty of coasters. My issue seems that while reading two tracks the script proceeds to only write one, and not at the speed limitations as directed by the script.


Searching file: '/home/nai/Desktop/Borcollection1.cdi'
Found image file. Opening...
This is a v2 image

Analyzing image...
Found 2 session(s)

Ripping image... (Press Ctrl-C at any time to exit)

Session 1 has 1 track(s)
Saving Track: 1 Type: Mode2/2336 Size: 233248 LBA: 0 [cut: 2] [ISO]

Session 2 has 1 track(s)
Saving Track: 2 Type: Mode2/2336 Size: 302 LBA: 244648 [cut: 2] [ISO]

All done!
Good burnin'...
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'TSSTcorp'
Identification : 'CDW/DVD TS-H492A'
Revision : 'HP03'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
wodim: Bad audio track size 700896 for track 01.
wodim: Audio tracks must be at least 705600 bytes and a multiple of 2352.
wodim: See -shorttrack option.
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'TSSTcorp'
Identification : 'CDW/DVD TS-H492A'
Revision : 'HP03'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Speed set to 1410 KB/s
Starting to write CD/DVD at speed 8.0 in real TAO mode for multi session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Track 01: Total bytes read/written: 614400/614400 (300 sectors).


it then proceeds to eject my first Drive, despite using the second one to burn the image. (however this example used the first device, I tried using it but got a bad image that didn't read at all). My working writer writes images but I still can't boot them neither directly or through a boot disk. (the boot disk appearing to be the only write I've had thats worked properly.) I assume one of the two issues i appear to be having is the cause of this, if not both.

BlueCrab
October 22nd, 2010, 20:46
The problem seems to be that your drive doesn't support burning an audio track that is as short as the one in the image is. Unfortunately, there's really no way to fix that other than burning the stuff not from a CDI, but doing it the "old-fashioned" way.

NaiGuy
October 23rd, 2010, 04:19
What is the old fashioned way? =/

Nold
September 21st, 2012, 17:26
Sorry for digging out this post but i did some work on cdirip and the burncdi script.

I simply hacked the 0.6.2 Windows sourcecode of cdirip so far that it works under linux.
Seems to work good so far...

Download: http://nold.freeunix.net/devnull/Stuff/Consoles/Dreamcast/cdirip-0.6.2-linux.tar.bz2

//Edit:

The changelog would be somthing like:
- Added CDI Ver. 3.5 Support! ;-)