> In a nutshell, I want some experience interfacing with hardware peripherals.
> In an act of 3am weariness, I decided writing a CD to CD copier would be
> great practice. I've already contacted the vendor of my cdr to get the
> SCSI command instruction set. My question to you all is how do I interface
> this with the pre-existing generic linux scsi drivers already available?
>
> Any help would be greatly appreciated.
[snip]
First off, may I extend my gratitude to those that responded. The Linux
SCSI Programming HOWTO as provided me with a really good foundation into
the generic SCSI interface.
Unfortunatly, the FAQ falls short and I've already started venturing into
the actual SCSI-2 draft. Which brings me to my next few questions..
For starters, I want to create an _exact_ image of a cd (ECC and all). I
realize `dd' will do for the mostpart what I want, but that entirely defeats
the purpose as I'm actually trying to learn something :-). I've looked through
the SCSI-2 draft and I believe the READ LONG command is what I need to be
using as that copies the ECC as well. Unfortunatly, what the draft doesn't
go into is:
1) How big is the block? 2352? 2340? 2336? 2646? These are all values
defined in /usr/include/linux/cdrom.h as "raw" values, but which one
is the "correct" blocksize?
2) In most cdrom frame layouts, ECC is 276 bytes. What about all the other
data (sync, head, subheaders, etc)?
In a nutshell, I want to reproduce an _exact_ image of the cd, not just of
the iso9660 filesystem on the disk. Ideas?
Respectfully,
--
Dan Moschuk ([EMAIL PROTECTED])
Senior Systems/Network Administrator, Globalserve Communications Inc
"Intel Inside - It's not a slogan, it's a warning."
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]