saramibreak / DiscImageCreator

This is the disc (CD, GD, DVD, HD-DVD, BD, GC/Wii, XBOX, XBOX 360) and disk (Floppy, MO, USB etc) image creation tool
http://forum.redump.org/topic/10483/discimagecreator/
Apache License 2.0
530 stars 45 forks source link

Invalid Command OpCode for TS40i #159

Open Still34 opened 1 year ago

Still34 commented 1 year ago

Version 20220909T220450

Describe the bug Getting invalid OpCode for TS40i despite multiple reports of it working and TS40 (without the i) marked as working on the redump wiki. The setup is through an LSI20320IE SCSI card directly to the TS40i.

Screenshots ."C:\downloads\DiscImageCreator_20220909\Release_ANSI\DiscImageCreator.exe" cd I output.bin 1 /c2 /nl

Disc title Tell me the correct disc title.

Disc ringcode All the string that is written the inner of the disc (IFPI etc.)

URL Tell me the link to get the disc. Amazon: eBay: discogs:

Log file

AppVersion
        32 bit, AnsiBuild, 20220909T220450
/c2 val1 was omitted. set [4000]
/c2 val2 was omitted. set [0]
CurrentDirectory
        C:\Users\still
WorkingPath
         Argument: output.bin
         FullPath: C:\Users\still\output.bin
            Drive: C:
        Directory: \Users\still\
         Filename: output
        Extension: .bin
StartTime: 2022-11-10T01:32:22+0800
LBA[000000, 0000000]: [F:GetConfiguration][L:643]
        Opcode: 0x46
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:SetDiscSpeed][L:920]
        Opcode: 0xbb
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:ModeSense10][L:762]
        Opcode: 0x5a
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:ReadCDForCheckingSubQ1stIndex][L:1151]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
lpCmd: be, 04, 00, 00, 00, 00, 00, 00, 01, f8, 01, 00
dwBufSize: 2448
EndTime: 2022-11-10T01:32:22+0800
========== StorageAdapterDescriptor ==========
                  Version: 32
                     Size: 32
    MaximumTransferLength: 16777215 (bytes)
     MaximumPhysicalPages: 257
            AlignmentMask: 0 (Buffers must be aligned on BYTE boundaries)
           AdapterUsesPio: True
         AdapterScansDown: False
          CommandQueueing: True
      AcceleratedTransfer: True
                  BusType: BusTypeScsi
          BusMajorVersion: 2
          BusMinorVersion: 0
========== IoctlScsiGetAddress ==========
        Length: 8
    PortNumber: 4
        PathId: 0
      TargetId: 1
           Lun: 0
========== InquiryData ==========
              DeviceType: ReadOnlyDirectAccessDevice (CD/DVD etc)
     DeviceTypeQualifier: Active
      DeviceTypeModifier: 0
          RemovableMedia: Yes
                Versions: 2
      ResponseDataFormat: 2
               HiSupport: No
                 NormACA: No
           TerminateTask: No
                    AERC: No
        AdditionalLength: 143
           MediumChanger: No
               MultiPort: No
       EnclosureServices: No
               SoftReset: No
            CommandQueue: No
          LinkedCommands: Yes
      RelativeAddressing: No
                VendorId: IBM     
               ProductId: CDRM00203
    ProductRevisionLevel: 1_06
          VendorSpecific: 8X20X
GET_CONFIGURATION doesn't support on this drive
SET_CD_SPEED doesn't support on this drive
Or if you use the SATA/IDE to USB adapter, doesn't support this command
MODE_SENSE10 doesn't support on this drive
READ_DISC_INFORMATION doesn't support on this drive
This drive supports [OpCode: 0xd8, SubCode: 0]
This drive supports [OpCode: 0xd8, SubCode: 1]
This drive supports [OpCode: 0xd8, SubCode: 2]
This drive supports [OpCode: 0xd8, SubCode: 8]
Checking reading lead-out -> OK
saramibreak commented 1 year ago
                VendorId: IBM     
               ProductId: CDRM00203

Due to LSI20320IE SCSI card, the drive does not recognize as Plextor. Try to use /d8.

ehw commented 1 year ago

We've experienced this before with another TS40i that we acquired off eBay. There are some drives being sold that were originally part of an IBM drive array server that we think has custom firmware written on it.

Try updating the firmware with this (see attached). px40ts_114.zip

Still34 commented 1 year ago

We've experienced this before with another TS40i that we acquired off eBay. There are some drives being sold that were originally part of an IBM drive array server that we think has custom firmware written on it.

Try updating the firmware with this (see attached). px40ts_114.zip

I'm pretty sure this is the case here, and that was one of the things I wanted to try. Problem is the firmware updater is not picking up my drive :/

Still34 commented 1 year ago
              VendorId: IBM     
             ProductId: CDRM00203

Due to LSI20320IE SCSI card, the drive does not recognize as Plextor. Try to use /d8.

AppVersion
32 bit, AnsiBuild, 20220909T220450
/c2 val1 was omitted. set [4000]
/c2 val2 was omitted. set [0]
CurrentDirectory
C:\
WorkingPath
Argument: output.bin
FullPath: C:\output.bin
Drive: C:
Directory: 
Filename: output
Extension: .bin
StartTime: 2022-11-19T11:23:40+0800
LBA[000000, 0000000]: [F:GetConfiguration][L:643]
Opcode: 0x46
ScsiStatus: 0x02 = CHECK_CONDITION
SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:SetDiscSpeed][L:920]
Opcode: 0xbb
ScsiStatus: 0x02 = CHECK_CONDITION
SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:ModeSense10][L:762]
Opcode: 0x5a
ScsiStatus: 0x02 = CHECK_CONDITION
SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
DiskSize of [E:\tools\PixivUtil2]
Total:   512108785664 bytes
Used:   387623440384 bytes
---------------------------
Space:   124485345280 bytes
=> There is enough disk space for dumping
LBA[000000, 0000000]: [F:ReadDiscInformation][L:730]
Opcode: 0x51
ScsiStatus: 0x02 = CHECK_CONDITION
SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
This drive doesn't define in driveOffset.txt
Please input drive offset(Samples):
saramibreak commented 1 year ago

Please input drive offset(Samples):

Type 676 from the keyboard.

Still34 commented 1 year ago

For whatever reason it seems to hang after the SubRtoW part

This drive doesn't define in driveOffset.txt
Please input drive offset(Samples): 676
This drive supports [OpCode: 0xd8, SubCode: 0]
This drive supports [OpCode: 0xd8, SubCode: 1]
This drive supports [OpCode: 0xd8, SubCode: 2]
This drive supports [OpCode: 0xd8, SubCode: 8]
Checking reading lead-out -> OK
Checking SubQ adr (Track)  1/ 1
Checking SubRtoW (Track)  1/ 1
[F:ReadCDForSegaDisc][L:2558] GetLastError: 1117, The request could not be performed because of an I/O device error.

Please wait for 25000 milliseconds until the device is returned
lpCmd: a8, 00, 00, 00, 00, 00, 00, 00, 00, 01, 00, 00
dwBufSize: 2048
saramibreak commented 1 year ago

Uploaded. DiscImageCreator_test.zip

saramibreak commented 1 year ago

@Still34 Is this solved?

Still34 commented 1 year ago

Hey, I'm just about to test it now. Sorry, I've been putting the project off due to frustrations. I'll see if I can get it working.

Still34 commented 1 year ago

Unfortunately still the same.

 still  ."C:\downloads\DiscImageCreator_test\Release_ANSI\DiscImageCreator.exe" cd I output.bin 1 /c2 /nl /d8
AppVersion
        32 bit, AnsiBuild, 20221121T222909
/c2 val1 was omitted. set [4000]
/c2 val2 was omitted. set [0]
CurrentDirectory
        C:\Users\still
WorkingPath
         Argument: output.bin
         FullPath: C:\Users\still\output.bin
            Drive: C:
        Directory: \Users\still\
         Filename: output
        Extension: .bin
StartTime: 2022-12-05T01:52:03+0800
LBA[000000, 0000000]: [F:GetConfiguration][L:643]
        Opcode: 0x46
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:SetDiscSpeed][L:920]
        Opcode: 0xbb
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
LBA[000000, 0000000]: [F:ModeSense10][L:762]
        Opcode: 0x5a
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
DiskSize of [C:\Users\still]
        Total:   999384150016 bytes
         Used:   733197676544 bytes
        ---------------------------
        Space:   266186473472 bytes
         => There is enough disk space for dumping
LBA[000000, 0000000]: [F:ReadDiscInformation][L:730]
        Opcode: 0x51
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 05-20-00 = ILLEGAL_REQUEST - INVALID COMMAND OPERATION CODE
This drive doesn't define in driveOffset.txt
Please input drive offset(Samples): 676
This drive supports [OpCode: 0xd8, SubCode: 0]
This drive supports [OpCode: 0xd8, SubCode: 1]
This drive supports [OpCode: 0xd8, SubCode: 2]
This drive supports [OpCode: 0xd8, SubCode: 8]
Checking reading lead-out -> OK
Checking SubQ adr (Track)  1/ 1
Checking SubRtoW (Track)  1/ 1
[F:ReadCDForSegaDisc][L:2558] GetLastError: 1117, The request could not be performed because of an I/O device error.

Please wait for 25000 milliseconds until the device is returned
lpCmd: a8, 00, 00, 00, 00, 00, 00, 00, 00, 01, 00, 00
dwBufSize: 2048

output_drive.txt

saramibreak commented 1 year ago

I tried PX-40TSe with SCSI, and it's working now. Firmware is latest (1.14). Disc is single date track.

Btw, what disc you try to dump? Single track or multi track? Data only or with audio? Without all log files, I have to ask you to one by one.

And, wouldn't you update the firmware to latest? Your drive firmware is perhaps 1.06. LastError 1117 is a hardware problem generally. So this app may not support its firmware.