Results 1 to 7 of 7

Thread: Tutorial: How to burn CDI files on Linux.

                  
   
  1. #1
    DCEmu Newbie
    Join Date
    Sep 2009
    Posts
    3
    Rep Power
    0

    Default Tutorial: How to burn CDI files on Linux.

    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. Extract the tar.gz with tar by doing this.

    Code:
    tar -xf cdrip06.tgz
    Now 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:
    Code:
    chmod +x cdirip && cp cdirip /usr/bin
    Okay, now that those are installed, download this script. (thanks to milksheik)

    Attachment 2147511530

    Rename this script to burndc-cdi by:

    Code:
    mv burndc-cdi.txt burndc.cdi
    After this chmod it:

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

    Code:
        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 && rm
    do this,

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

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

    Code:
        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 && rm
    Now save the file.

    And finally, burn the file onto the disk with:
    Code:
    ./burndc-cdi DREAMCAST-CDI-FILE
    or

    Code:
    bash burndc-cdi DREAMCAST-CDI-FILE
    Replacing DREAMCAST-CDI-FILE with your cdi.

    Enjoy!
    Last edited by dragos240; October 11th, 2009 at 17:19.

  2. #2
    DCEmu Newbie
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Default

    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://...p/cdirip06.tgz

    http://www.1filesharing.com/download...7/cdirip06.tgz
    http://www.rapidmirrors.com/files/2WRIKRJE/cdirip06.tgz
    http://www.uploadmirrors.com/downloa...H/cdirip06.tgz
    Last edited by fallout; March 10th, 2010 at 03:07. Reason: shell file broken..

  3. #3
    Sir Digby Chicken Caesar Darksaviour69's Avatar
    Join Date
    Mar 2004
    Location
    Armagh, Ireland
    Age
    41
    Posts
    7,005
    Rep Power
    50

    Default

    thanks for the guide fallout

  4. #4
    DCEmu Newbie
    Join Date
    Oct 2010
    Posts
    8
    Rep Power
    0

    Default

    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.

  5. #5
    The Long Claw of the Law BlueCrab's Avatar
    Join Date
    Apr 2004
    Age
    37
    Posts
    1,215
    Rep Power
    50

    Default

    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.
    Sylverant PSO Server
    http://crabemu.sourceforge.net/
    irc.freenode.net #dreamcastdev #dcemuuk #yabause #ljsdcdev

  6. #6
    DCEmu Newbie
    Join Date
    Oct 2010
    Posts
    8
    Rep Power
    0

    Default

    What is the old fashioned way? =/

  7. #7
    DCEmu Newbie Nold's Avatar
    Join Date
    Mar 2007
    Posts
    19
    Rep Power
    0

    Default

    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/Stu...-linux.tar.bz2

    //Edit:

    The changelog would be somthing like:
    - Added CDI Ver. 3.5 Support! ;-)
    Last edited by Nold; September 22nd, 2012 at 08:05.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wii Development Tutorial - Tutorial 10: Using the filesystem
    By wraggster in forum DCEmu Homebrew, Emulation, Hacking and Development Forum
    Replies: 1
    Last Post: September 12th, 2009, 06:38
  2. Yellow Dog Linux 5.0 Hands-on
    By wraggster in forum Sony Consoles News Forum
    Replies: 2
    Last Post: December 2nd, 2006, 18:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •