I am using cdrdao 1.1.4 on Linux RedHat 7.0 with Kernel 2.4.0 final
using ide-scsi emulation with an HP 9100+ Writer.

I am trying to read a cdrom XA that has index marks in the audio
tracks, but everytime it hits those tracks, I get a bunch of errors
out on the screen even just by reading the toc file.   If I try to
use --read-raw with the read-cd command, then I think it just puts out
errors when reading the audio section of the CD.   I have no problem when they don't have audio tracks in them.

If I read it with cdrwin ,  I have attached the cue file that it produces
and you'll see that it's different from what cdrdao is able to read even with
the errors.

I tried without using raw or just generic-mmc and it doesn't make a difference.

Do you know what might be the problem?

Also as an RFE, it'd be nice to be able to save the toc file as a
.cue sheet format compatible with cdrwin instead of toc, what do you
think?

Here is my output below:

onyx4 ~ >> cdrdao read-toc --read-raw --driver generic-mmc-raw toc
Cdrdao version 1.1.4 - (C) Andreas Mueller <mueller@daneb.ping.de>

Check http://cdrdao.sourceforge.net/drives.html#dt for actual driver tables.
/dev/cdrecorder: HP CD-Writer+ 9100b    Rev: 1.07
Using driver: Generic SCSI-3/MMC (raw writing) - Version 1.0 (options 0x0000)

Reading toc data...

Track   Mode    Flags  Start                Length
------------------------------------------------------------
1      DATA    4      00:00:00(     0)     43:48:27(197127)
2      AUDIO   0      43:48:27(197127)     01:53:43(  8518)
3      AUDIO   0      45:41:70(205645)     01:44:46(  7846)
4      AUDIO   0      47:26:41(213491)     01:44:70(  7870)
5      AUDIO   0      49:11:36(221361)     01:31:18(  6843)
6      AUDIO   0      50:42:54(228204)     01:37:30(  7305)
7      AUDIO   0      52:20:09(235509)     01:38:30(  7380)
8      AUDIO   0      53:58:39(242889)     01:56:36(  8736)
9      AUDIO   0      55:55:00(251625)     01:52:36(  8436)
10      AUDIO   0      57:47:36(260061)     01:23:73(  6298)
11      AUDIO   0      59:11:34(266359)     01:48:34(  8134)
12      AUDIO   0      60:59:68(274493)     03:00:00( 13500)
Leadout DATA    4      63:59:68(287993)

Analyzing track 1 (MODE2_RAW): start 00:00:00, length 43:46:27...
Analyzing track 2 (AUDIO): start 43:48:27, length 01:53:43...
Found pre-gap: 00:02:00
cdrdao: Input/output error. : scsi sendcmd: retryable error
CDB:  BE 00 00 03 02 07 00 00 0D F8 01 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.001s timeout 20s
Analyzing track 3 (AUDIO): start 45:41:70, length 01:44:46...
cdrdao: Input/output error. : scsi sendcmd: retryable error
CDB:  BE 00 00 03 23 4D 00 00 0D F8 01 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.001s timeout 20s
Analyzing track 4 (AUDIO): start 47:26:41, length 01:44:70...
cdrdao: Input/output error. : scsi sendcmd: retryable error
CDB:  BE 00 00 03 41 F3 00 00 0D F8 01 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)

[output cut]

onyx4 ~ >> more toc
CD_ROM_XA

// Track 1
TRACK MODE2_RAW
NO COPY
DATAFILE "data_1" 43:46:27 // length in bytes: 463289904

// Track 2
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
SILENCE 00:02:00
FILE "data.wav" 0 01:53:43
START 00:02:00

// Track 3
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 01:53:43 01:44:46

[output cut]

Toc produced by cdrwin:

FILE "DATA.BIN" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    PREGAP 00:02:00
    INDEX 01 43:46:27
  TRACK 03 AUDIO
    INDEX 00 45:37:70
    INDEX 01 45:39:70
  TRACK 04 AUDIO
    INDEX 00 47:22:41
    INDEX 01 47:24:41
  TRACK 05 AUDIO
    INDEX 00 49:07:36
    INDEX 01 49:09:36
  TRACK 06 AUDIO
    INDEX 00 50:38:54
    INDEX 01 50:40:54
  TRACK 07 AUDIO
    INDEX 00 52:16:09
    INDEX 01 52:18:09
[output cut]