Talk:ATAPI

From OSDev.wiki
Revision as of 20:31, 15 October 2013 by osdev>Scdbackup (CD-DA is not related to Joliet)
Jump to navigation Jump to search

Shouldn't most of the second half be in an SCSI page ?

I am the developer of libburn, which operates CD, DVD, and BD drives via SCSI commands (SPC, SBC, MMC).

I wonder why no http://wiki.osdev.org/SCSI or ./MMC exists. It could consolidate the info about the commands to be used on optical drives attached via "real SCSI", PATA, SATA, USB, ...

OS developers who want to enable porting of CD/DVD/BD burn programs need to offer an SCSI passthrough interface. This interface has to transmit SCSI command descriptor blocks and payload data to the drive. Then it has to return payload data and/or indicate that there emerged sense data (usually error conditions). An example is Linux ioctl SG_IO.

The SCSI gestures of writing to optical media are described in http://www.libburnia-project.org/browser/libburn/trunk/doc/cookbook.txt Interesting for those OS developers who want to integrate optical burning into the OS itself.


BTW: The last four of the external links should rather go to http://wiki.osdev.org/ISO_9660

Scdbackup 15:12, 15 October 2013 (CDT)

CD-DA is not related to Joliet

The page says:

 An AudioCD (CD-DA) stores data in a Joliet filesystem.

This is plain wrong. The only filesystem-like structure on CD-DA is the two-level hierarchy of sessions and tracks. CD-DA blocks cannot be read by the usual SCSI command READ, but rather by SCSI command READ CD. They bear 2352 bytes of audio data each.

Joliet is a Microsoft extension to ISO 9660 filesystems. (One may of course store audio files in a filesystem. But that is not CD Digital Audio.)

Scdbackup 15:31, 15 October 2013 (CDT)