3,051 (edited by matura713 2021-09-12 18:05:40)

matura713 wrote:

* make small tool using SPTI Windows interface... that tries only to read the BCA

OK, I coded the test tool, the source code is attached. it should not be considered fully finished, i.e. some (small) modifications could be necessary in order to be fully functional, but it contains the essential portion of the necessary code.

P.S. One open question, at least to me, is how GC/Wii "dvd" structure in CleanRip code corresponds to "Cdb" in SPTI Windows interface, especially which parameter defines the "layer" to read.

[EDIT] more or less the code is working, because I tested it with changing "sptd.Cdb[7] = 0x03" to "sptd.Cdb[7] = 0x04", i.e. reading the Manufacturer (instead the BCA) and I can read:

Nintendo NNGC Disk

on Nintendo discs. Unfortunately, even on PC drives that works for getting the "Manufacturer", I cannot get the BCA on any disc. So, it's still open question, if there is PC drive that can read the BCA...

Post's attachments

bca_read.c 2.43 kb, 7 downloads since 2021-09-12 

You don't have the permssions to download the attachments of this post.

https://ibb.co/G541SPB


Here is what I get using latest test DIC.  Trying to grab TOC/pre-gap with this troublesome CD

3,053

Cyo.the.vile wrote:

Here is what I get using latest test DIC.  Trying to grab TOC/pre-gap with this troublesome CD

https://github.com/saramibreak/DiscImag … /issues/86

3,054

matura713 wrote:

on Nintendo discs. Unfortunately, even on PC drives that works for getting the "Manufacturer", I cannot get the BCA on any disc. So, it's still open question, if there is PC drive that can read the BCA...

Perhaps it's the same as PS3 compatible drive cannot get data1/data2. If we get BCA on PC, we need to get Wii optical drive emulator like 3k3yRipper of PS3.

3,055 (edited by matura713 2021-09-17 20:53:44)

@sarami

because you requested BW-16D1HT logs in the other forum thread, I have one - I don't know if it helps, but currently it's the only CD that failed for me in BW-16D1HT using DiscImageCreator. so, the log is attached. basically, it says "Cache is short. Retry 45/50" and at the end fails.

sarami wrote:

If we get BCA on PC, we need to get Wii optical drive emulator like 3k3yRipper of PS3.

maybe that's the case... BTW, I cannot get the link to your "PS3Auth" from your signature to work for me:

Bad request. The link you followed is incorrect or outdated.

It's like 10 years ago, I made such tool for myself that authenticates PS3 drive in Windows using as base the Linux source code or I don't clearly remember, maybe it was 3k3yRipper .NET code I reversed-engineered, but I guess yours do the same anyway...

Post's attachments

asus_fails.rar 12.81 kb, 1 downloads since 2021-09-17 

You don't have the permssions to download the attachments of this post.

3,056

matura713 wrote:

it says "Cache is short. Retry 45/50" and at the end fails.

Change the retry count -> /mr 100 or /mr 150 or more

matura713 wrote:

I cannot get the link to your "PS3Auth" from your signature to work for me:

It needs a login.

matura713 wrote:

I guess yours do the same anyway...

Yes.

sarami wrote:

Change the retry count -> /mr 100 or /mr 150 or more

i set it at 500, but it's the same "Cache is short. Retry 500/500", logs attached.

sarami wrote:

It needs a login.

thanks, I see, I guess I need to elevate my forum credentials somehow. That probably explains why I get so many dead links in the database as well. Anyway, I will reread the forum rules and faqs, maybe, i can figure out what i have to do...

Post's attachments

asus_fails2.rar 18.5 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

3,058 (edited by sadikyo 2021-09-18 18:10:47)

@sarami,

I noticed an issue/bug/etc that started with DIC version 20210601.  When I try to dump certain PC discs, the status reaches "Checking EXE" and crashes immediately and will not dump. 

I believe it is something to do with some file checking or version checking that DIC is doing on files on the disc, and I'm not sure why.

On my current example, I see the line:  AUTORUN.EXE: File Version 4, 0, 0, 1 and then Checking EXE     1,
and then it crashes immediately every time.

I tested dumping on DIC 20210401 and it worked perfectly fine and this file/version checking didn't happen.

The crash occurs in both 0601 and 0701.  Please let me know if you need anymore information.  I've attached logs for the unsuccessful dump on 0601.

Post's attachments

020101_1036---20120601.7z 212.77 kb, 2 downloads since 2021-09-18 

You don't have the permssions to download the attachments of this post.

3,059

sadikyo wrote:

I've attached logs for the unsuccessful dump on 0601.

    ========== IMAGE_SECTION_HEADER (40 bytes) ==========
                    Name: UPX1
             VirtualSize: 0002e000
          VirtualAddress: 0005b000
           SizeOfRawData: 0002e000
        PointerToRawData: 00000400
    PointerToRelocations: 00000000
    PointerToLinenumbers: 00000000
     NumberOfRelocations: 0000
     NumberOfLinenumbers: 0000
         Characteristics: e0000040
                        => contains initialized data
                        => can be executed as code
                        => can be read
                        => can be written to
    ========== IMAGE_SECTION_HEADER (40 bytes) ==========
                    Name: .rsrc
             VirtualSize: 00002000
          VirtualAddress: 00089000
           SizeOfRawData: 00002000
        PointerToRawData: 0002e400
    PointerToRelocations: 00000000
    PointerToLinenumbers: 00000000
     NumberOfRelocations: 0000
     NumberOfLinenumbers: 0000
         Characteristics: c0000040
                        => contains initialized data
                        => can be read
                        => can be written to
    ========== IMAGE_EXPORT_DIRECTORY ==========
              Characteristics: 2c10227c
                TimeDateStamp: 284ef6b9 (1991-06-07T03:00:09)
                 MajorVersion: 197f
                 MinorVersion: 03b2
                         Name: dae40257 (

"UPX" is shown in IMAGE_SECTION_HEADER of SETUP.EXE. Please check if it is compressed by UPX or not.
If yes, DIC is not supported it yet. 20210401 version does not output IMAGE_EXPORT_DIRECTORY yet.

3,060

sarami wrote:

"UPX" is shown in IMAGE_SECTION_HEADER of SETUP.EXE. Please check if it is compressed by UPX or not.
If yes, DIC is not supported it yet. 20210401 version does not output IMAGE_EXPORT_DIRECTORY yet.

Is there any way to disable this checking so DIC doesn't crash?

3,061

sarami wrote:

"UPX" is shown in IMAGE_SECTION_HEADER of SETUP.EXE. Please check if it is compressed by UPX or not.
If yes, DIC is not supported it yet. 20210401 version does not output IMAGE_EXPORT_DIRECTORY yet.

I do not know how to check if something is compressed with UPX or not.  ?

Also, I've talked to a few people and we are wondering what the purpose of the version checking / displaying is? Especially if it is causing DIC to crash and not complete dumps.

3,062

sadikyo wrote:

I do not know how to check if something is compressed with UPX or not.  ?

SETUP.EXE

UPX is https://upx.github.io/

3,063

http://forum.redump.org/topic/39974/ibm … ozoficzny/
@sarami Is my CD working properly? I would like to add that the game is very slow to install from the original, physical disc, but from the bin/cue disc image it installs normally, the disc itself is also slow to copy something. Could these C2 errors also be an MPF bug?

3,064

http://forum.redump.org/post/95348/#p95348
This CD reports even more errors, although the installation of the game from this particular CD is flawless, I also had no problems copying this CD

3,065

> HARRY_POTTER_POL
It seems no problem.

> HPPoA
There are non-intentional c2 errors (bad dump).

Anyway, redump.org does not accept your drive.

                VendorId: Optiarc 
               ProductId: CD-RW CRX880A   
    ProductRevisionLevel: KX07
          VendorSpecific:  Nov10,2006         

3,066

My previous dumps were made on the same CD / DVD drive and they were accepted

3,067 (edited by matura713 2021-09-22 13:45:29)

@sarami

please, advice me - is it possible somehow to do like 2-pass dump with 'DiscImageCreator' for Multi-Session CDs in order to dump them with Plextor CD-drive(more specifically PX-5224) using information about the Multi-Session from a previous dump made with Plextor DVD-drive? Here is what I mean by 2-pass and why I want to do that in more details:

- the discs I mean are CDS200-protected, I posted details here:

http://forum.redump.org/post/95373/#p95373

So, the whole issue is, in their 1st session, they have so many C2 errors pressed at factory as part of the protection that Plextor DVD-drives just cannot handle them, but those DVD drives can handle the Multi-Session part, as well read properly the 2nd session.

What I mean by 2-pass:

1st pass) make dump without "/c2" with  Plextor DVD-drive to get Multi-Session information:

Creating .scm (LBA) 330753/352351 Lead-out length of 1st session: 6750
LBA[330758, 0x50c06]: [F:ProcessReadCD][L:288]
        Opcode: 0xd8
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-8d = MEDIUM_ERROR - VENDOR UNIQUE ERROR
End of readable sector
Lead-in length of 2nd session: 4500
Creating .scm (LBA) 335403/352351 Pregap length of 1st track of 2nd session: 150

Creating .scm (LBA) 352351/352351
Copying .scm to .img
Descrambling data sector of img: 335253/335253
Descrambling data sector of img: 352350/352350
Exec ""G:\dic\EccEdc.exe" check "G:\dic\px712cds\AUDIOCD.img""
FILE: G:\dic\px712cds\AUDIOCD.img
Checking sectors: 352350/352350
[ERROR] Number of sector(s) where user data doesn't match the expected ECC/EDC:
4497
Total errors: 4497
Total warnings: 0
Creating cue and ccd (Track) 16/16

2nd pass) provide some of the numbers above from PX-712A dump to 'DiscImageCreator' to make it able to dump at least the 1st session properly, but this time using Plextor PX-5224, which can handle those "C2" errors with no problem. the 2nd session - we don't need it at all - it contains executable of the player - what is needed is perfect 1st session. Now, if based on the above numbers from PX-712A dump, PX-5224 can be made to dump both 2 session - that is a bonus, most important is perfect copy or the 1st session. Or since PX-712A can dump the 2nd session as there is  no protection, i.e. no C2 errors there, as part of the 2nd pass combine it to 1st session dumped with PX-5224.

After all based on the available drives capabilities and what is important on those CDs we need to set some acceptable ReDump standards what proper dump for those CDS200 CD means. Any opinions on that are welcomed.

3,068

matura713 wrote:

Total errors: 4497

This error count looks familiar to me. We get a very similar number of C2 errors at start for many PS2 unlicensed discs.
Did you try to dump with /sf?

3,069

matura713 wrote:

So, the whole issue is, in their 1st session, they have so many C2 errors pressed at factory as part of the protection

Yes. I think it's impossible to get the consistent hash. If the disc you want to dump is released as CDDA, I recommend you get it.

3,070 (edited by matura713 2021-09-22 15:54:40)

sarami wrote:

Yes. I think it's impossible to get the consistent hash. If the disc you want to dump is released as CDDA, I recommend you get it.

PX-5224 is capable to bypass the protection - I definitively proved that, if you read all the details in my other thread - exactly, because 1 of my CDS200 discs, I own re-issued release of it without a protection, i.e. release of it as CDDA disc and that is how I know the correct hash of each track. So, that allowed me to prove PX-5224, not only can read CDS200 discs, but read the tracks from them with 100% correct hashes and no any C2 errors. Plextor DVD drives at the same time are terrible to correct such errors.

So, the issue is on CDS200 discs 'DiscImageCreator' says to me "Plextor CD drives are not supported for Multi-Session discs" (or something like that, I don't recall the exact error message), that's why I cannot dump it with PX-5224 and with Plextor DVD drives (at least 708 and 712) it's all thousands of errors.

What makes sense to me is some "combination" of PX-5224 (for all data in the 1st session) and PX-712 for the 2nd session and Multi-Session information.

[EDIT] OK, below are:

* Logs from recent version of DiscImageCreator - it quits with PX-5224, saying "This program doesn't support to dump the multi-session disc by the plextor CD Drive"

* Logs from older version - that shows PX-5224 is capable to read the data properly without any C2 errors (and I confirmed the same with EAC that all track hashes are correct), but it's stuck on the 2nd session.

* And of course the log from my previous post is showing PX-712 making several thousand C2 errors.

So, why not option just to stop DiscImageCreator on 2nd session with  PX-5224 or something like that when CDS200 is in use? Obviously older DiscImageCreator can read the important data on the disc, while newer version of DiscImageCreator refuse to do anything altogether?!

newer DIC version wrote:

DiscImageCreator.exe cd f AudioCD 8 /c2 /d8
AppVersion
        x86, AnsiBuild, 20210701T212154
/c2 val1 was omitted. set [4000]
/c2 val2 was omitted. set [0]
valid extension was omitted. -> set .bin
CurrentDirectory
        G:\dicnew
WorkingPath
         Argument: AudioCD.bin
         FullPath: G:\dicnew\AudioCD.bin
            Drive: G:
        Directory: \dicnew\
         Filename: AudioCD
        Extension: .bin
StartTime: 2021-09-22T17:13:45+0100
Set the drive speed: 1411KB/sec
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) 16/16
[INFO] This disc is Multi-Session. /ms is set.
[ERROR] This program doesn't support to dump the multi-session disc by the plextor CD Drive
EndTime: 2021-09-22T17:15:53+0100

older DIC version, all important data read without a single C2 contrary to PX DVD drives with thousands of errors! wrote:

DiscImageCreator.exe cd f AudioCD 8 /c2 /d8
AppVersion
        x86, AnsiBuild, 20201101T114333
/c2 val1 was omitted. set [4000]
/c2 val2 was omitted. set [0]
valid extension was omitted. -> set .bin
CurrentDirectory
        G:\dicold
WorkingPath
         Argument: AudioCD.bin
         FullPath: G:\dicold\AudioCD.bin
            Drive: G:
        Directory: \dicold\
         Filename: AudioCD
        Extension: .bin
StartTime: 2021-09-22T17:18:17+0100
Set the drive speed: 1411KB/sec
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) 16/16
[INFO] This disc is Multi-Session. /ms is set.
Checking SubRtoW (Track) 16/16
Reading DirectoryRecord    4/   4
Set OpCode: 0xd8, SubCode: 8(Raw)
Checking SubQ ctl (Track) 16/16
Creating .scm (LBA)   6753/352351 End of readable sector
Creating .scm (LBA) 330755/352351 Lead-in length of 2nd session: 330756
Creating .scm (LBA) 330756/352351 Lead-in length of 2nd session: 330757
..........................

So, I guess, what I am asking is why not check 2nd session contains the useless CDS200 data and in such cases cut the process at LBA 330755 (or 330754, I am not sure what is the correct number) and proceed from there?

superg wrote:

Did you try to dump with /sf?

thanks, I did try it, "DiscImageCreator.exe cd f AUDIOCD 8 /sf /c2 /d8" - no difference, except this time DiscImageCreator says it cannot detect the protection and will ignore the "/sf" switch. it proceeds from there with no any difference

3,072 (edited by matura713 2021-09-22 19:52:45)

@sarami

just to let you know that "px_d8" from the links here:

http://wiki.redump.org/index.php?title= … isc._Tools

more specifically this one:

http://www.mediafire.com/file/khnzcxdae … 8.zip/file

works with my Yamaha CDR200t drive, i.e. it returns the exact same data for each LBA read on Plextor and Yamaha CDR200t on the same disc. yet, as I reported, it fails with DiscImageCreator:

http://forum.redump.org/post/94975/#p94975

So, I don't know exactly why it fails, but it seems to me Yamaha D8 is fully compatible with Plextor D8 command, if "px_d8" works with my Yamaha CDR200t.

[EDIT] or maybe it's because Yamaha CDR200t is doing just main plus sub-channel and not main plus sub-channel plus c2?

3,073 (edited by matura713 2021-09-22 23:31:45)

Unfortunately, today I am really out of any luck and I came across another problem - this time with Key2Audio protection. So, here are my steps to confirm something is not right:

1. Rip the disc with ExactAudioCopy using physical Plextor DVD drive
2. Dump the disc with DiscImageCreator using physical Plextor DVD drive
3. load the image from step2 in virtual drive
4. Rip the disc with ExactAudioCopy using the virtual drive with DiscImageCreator image in it from step3

So, with all other discs ExactAudioCopy "TestCRC" Hashes match those from step1 and step4, i.e. ripping from the DiscImageCreator image in virtual drive is absolutely equivalent to ripping from the original physical media.

However, with my Key2Audio protected CD, ExactAudioCopy "TestCRC" Hashes from step1 and step4 are different. It's open question to me if ExactAudioCopy is correct or DiscImageCreator is correct, but it's the very first time I see difference between the the 2 applications and one of them must be wrong...

[EDIT] Decided to try with my Asus BW-16D1HT drive, this time:

* DiscImageCreator completely failed:

[INFO] This disc is Multi-Session. /ms is set.
Checking SubRtoW (Track) 18/18
Set OpCode: 0xbe, SubCode: 1(Raw)
Checking SubQ ctl (Track) 18/18
LBA[000001, 0x00001]: [F:ProcessReadCD][L:318]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-11-05 = MEDIUM_ERROR - L-EC UNCORRECTABLE ERROR
LBA[000001, 0x00001]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-11-05 = MEDIUM_ERROR - L-EC UNCORRECTABLE ERROR
End of readable sector

then it stop accessing the disc, creating for several minutes ".scmtmp" file, then more errors:

LBA[337562, 0x5269a]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337563, 0x5269b]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337564, 0x5269c]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337565, 0x5269d]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337566, 0x5269e]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337567, 0x5269f]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337568, 0x526a0]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337569, 0x526a1]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe
        ScsiStatus: 0x02 = CHECK_CONDITION
        SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
LBA[337570, 0x526a2]: [F:ProcessReadCD][L:288]
        Opcode: 0xbe

and at the end it reported something about "failed to analyze subchannel" - sorry but by accident I deleted the log, but bottom line is no any image was produced. I am even lost, which logs are beneficial to provide.

At the same time Asus BW-16D1HT with ExactAudioCopy produces the same Track hashes as Plextor with ExactAudioCopy. So, on this Key2Audio disc both Asus BW-16D1HT and Plextor PX-712A produce the exact same rips using ExactAudioCopy, i.e. the 2 drives are equivalent there.

[EDIT2] looking in hex-editor the differences, it seems some chunks of data are positioned at different addresses, for example on the attached screenshot what EAC put at 0x1ffffd0, DIC put at 0x2000000...

Post's attachments

k2a.PNG 26.86 kb, 1 downloads since 2021-09-23 

You don't have the permssions to download the attachments of this post.

3,074

matura713 wrote:

* Logs from recent version of DiscImageCreator - it quits with PX-5224, saying "This program doesn't support to dump the multi-session disc by the plextor CD Drive"

See https://github.com/saramibreak/DiscImag … /issues/41

matura713 wrote:

works with my Yamaha CDR200t drive, i.e. it returns the exact same data for each LBA read on Plextor and Yamaha CDR200t on the same disc. yet, as I reported, it fails with DiscImageCreator:

Anyway, I don't have it and it is hard to get than plextor and if I find it, it is expensive for me. I can't support it now.

I own at least three audio CDs where dumping with my BW-16D1HT and the /mr flag is always unable to proceed with dumping the disc (Cache is short), even with 999 retries. Each and every time, the cache result is the same. I have also tried power cycling the drive and trying again. I successfully dumped these audio CDs with my Plextor, so if there is interest I can share those logs.