1,326

(3,501 replies, posted in General discussion)

pablogm123 wrote:

My current wishlist:

-An option (for the -rall and -rgd modes) so that the C2 pointers are used only for purely informative purporses, without absolutely re-reads, like the old PerfectRip does. I mean the program will read and dump into a .c2/.c2e file the raw C2 pointers provided by the drive, but won't re-read anything marked as bad by the C2 pointers. This way I will know if a rip is good (no further action required) or bad: to resurface and clean the CD until getting 0 C2 errors, to try another drive, to try another read speeds or simply replace the CD if nothing works to get a flawless dump without re-reads. Of course, the log file should report if the dump was flawless or not flawless.

-The suggestion posted above applied to the -ra mode as well. And I would like that you could implement offset correction for the -ra mode: it would apply, as default option, the standard one defined by the AccurateRip database plus the possibilty of override it via the add parameter implemented in the -rall mode.

http://www.mediafire.com/download/u0olo2c51f2qv13/
coded.

By the way, do you know the offset of the C2 error in detail?
In case of perfectrip, it can set "c2 read offset correction bit(s)"

1,327

(3,501 replies, posted in General discussion)

http://www.mediafire.com/download/u0olo2c51f2qv13/

pablogm123 wrote:

C2 support doesn't work OK for the new option to dump Dreamcast discs

probably fixed it. (I can't test.)

pablogm123 wrote:

A minor bug: the dumped subcode contains an extra frame from the pregap of track 3.

fixed it.

pablogm123 wrote:

regarding USB/IEEE-1394 drives

I'll consider it

1,328

(3,501 replies, posted in General discussion)

http://www.mediafire.com/download/u0olo2c51f2qv13/

If a non-Plextor drive is used, BE command and autodetect if the drive uses Main+C2+Sub (NEC based for example) or Main+Sub+C2 (Mediatek bases for example).

coded it.

val2: value to fix a C2 error (default: 65535)

fixed at 32768

1,329

(3,501 replies, posted in General discussion)

http://www.mediafire.com/download/u0olo2c51f2qv13/

The possibility to set different read speeds for the initial read and the readings. For example, initial read at 24x speed and re-reads at 4x speed.

I coded it. c2 option val3.

Rewrite the -ra module so this tool can act as a CDTool replacement to dump as audio (D8 or audio trap disc) any range that the user desires with subcode and C2 error reporting (outputting both as .sub and .c2e files), adding the possibility to correct the offset (with the possibility to override the standard one). This module should support Plextor and non-Plextor drives and could be useful to dump the high density of DC games.
If a Plextor drive is used, D8 command and order is Main+C2+Sub.

improved ripping GD-ROM
  added "-rgd" command for HD area (integrated "-ra", "-dec", "-split")
  c2 error option don't test. (Because my drive(TS-H352C) don't support C2 error report.)

If a non-Plextor drive is used, BE command and autodetect if the drive uses Main+C2+Sub (NEC based for example) or Main+Sub+C2 (Mediatek bases for example).

I don't support it yet.

1,330

(3,501 replies, posted in General discussion)

GetLastError: 8

"storage" is not hard disc but memory.

1,331

(3,501 replies, posted in General discussion)

fix C2 option
http://www.mediafire.com/download/u0olo2c51f2qv13/

                c2: Fix C2 error existing sector (Only CD)
                        val1: value to reread (default: 1024)
                        val2: value to fix a C2 error (default: 65535)

And USB drives (mines are actually ATAPI attached to a ATA/SATA to USB adapter) work properly

umm.. I don't fix about this.

reported all the errors were fixed, but cdmage shows 2 errors in the data track. There's a bug in c2 reporting/fixing somewhere.

Depending on a drive, it's possible that it don't report C2 error exactly.
Therefore, in this tool, multiple read a non C2 error sector (at present 2 times)
If necessary, I can change a reading times.

1,332

(3,501 replies, posted in General discussion)

>pablogm123, Nexy
How much error is there on the disc?
At present, it can fix the "4096" C2 error.
I can increase this values if I can allocate memory.

http://www.mediafire.com/download/u0olo2c51f2qv13/
it can fix 65535 C2 error if it alloc mem.

1,333

(3,501 replies, posted in General discussion)

DIC crashes when there are too many C2 errors.

fixed (probably)
http://www.mediafire.com/download/u0olo2c51f2qv13/

1,334

(3,501 replies, posted in General discussion)

>Sotho Tal Ker
Thanks info.

>pablogm123, Nexy
Do these discs still have a ripping bug?

Daytona USA championship circuit edition
http://redump.org/disc/6695/
http://redump.org/disc/1994/
http://redump.org/disc/29777/
http://redump.org/disc/25711/

1,335

(3,501 replies, posted in General discussion)

fix a bug above.
http://www.mediafire.com/download/u0olo2c51f2qv13/

BTW, what is E32 error?

1,336

(3,501 replies, posted in General discussion)

fix above link. please re-download.

about SecuROM
Thanks info. I want to research for the future.

Thanks info. I got CDparanoia src code.

static int i_read_D8 (cdrom_drive *d, void *p, long begin, long sectors, unsigned char *sense){
  int ret;
  unsigned char cmd[12]={0xd8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

  if(d->fua)
    cmd[1]=0x08;

  cmd[1]|=d->lun<<5;
  cmd[3] = (begin >> 16) & 0xFF;
  cmd[4] = (begin >> 8) & 0xFF;
  cmd[5] = begin & 0xFF;
  cmd[9] = sectors;
  if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
    return(ret);
  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
  return(0);
}

umm..  this code,  bit 3 of byte 1 (fua) is on. My tool is already same implementation.

As described in the MMC spec (http://www.t10.org/ftp/t10/drafts/mmc4/mmc4r02f.pdf),
READ_CD does not allow any FUA bit at all, so if this reading method is chosen then
flushing tricks are needed. However, other MMC commands like READ10 (0x28) and
READ12 (0xA8) support the FUA bit.

I know this pdf, and I know above. My tool call READ12 to reread.

1,337

(3,501 replies, posted in General discussion)

Have you changed anything in the rereading code?

a little bit. Please log.

http://www.mediafire.com/download/u0olo2c51f2qv13/
[fix]
text, log.
creating unsplitted image for audio only disc.

about semaphore timeout
I don't know what to do at present.

about fua
a part of scsi.h (WinDDK\7600.16385.1\inc\ddk)

    //
    // Plextor Read CD-DA
    //

    struct _PLXTR_READ_CDDA {
        UCHAR OperationCode;    // Unknown -- vendor-unique?
        UCHAR Reserved0 : 5;
        UCHAR LogicalUnitNumber :3;
        UCHAR LogicalBlockByte0;
        UCHAR LogicalBlockByte1;
        UCHAR LogicalBlockByte2;
        UCHAR LogicalBlockByte3;
        UCHAR TransferBlockByte0;
        UCHAR TransferBlockByte1;
        UCHAR TransferBlockByte2;
        UCHAR TransferBlockByte3;
        UCHAR SubCode;
        UCHAR Control;
    } PLXTR_READ_CDDA;

This is D8 command for plextor. But This structure can't have a FUA flag.
I don't know where it has a FUA flag.

1,338

(3,501 replies, posted in General discussion)

WIP6
http://www.mediafire.com/download/u0olo2c51f2qv13/
[added]
override offset
store scrambled file (.scm)
coded FUA (I couldn't test. )
[fixed]
error msg (windows api error code)
output hash

about cachex.exe
I logined as admin, but my 755sa rejected flush cmd.

about protected disc (SecuROM, SafeDisc, etc)
I do not know its detailed specifications. Therefore, I can't support them at present.

1,339

(3,501 replies, posted in General discussion)

>F1ReB4LL
I examine that fixes per a byte.
By the way, is there an offset for c2 error byte?
If an offset exists, is it different every drive?

>Nexy
>>Sometimes it will just abort with a drive not ready error.
If possible, please tell me the procedure to let it reappear in detail.
>>The hashing takes ages too, unoptimized routines there? Will you improve them
Please tell me the good open-src library.

>pablogm123
>> override the automatic offset correction
It will add at next wip.
>> drive's cache
Tested my drive. My 755sa don't support fua on 0xd8 cmd. I don't know why that is.
Therefore, even if I coded it, I can't test it that its code is correct.

C:\cachex.exe -i m:

CacheExplorer 0.8 - spath@cdfreaks.com

Drive on M is  PLEXTOR  DVDR   PX-755A   1.08

[+] Buffer size: 2048 kB, read cache is enabled
[+] Supported read commands: BEh 28h(FUA) D8h
C:\cachex.exe -p -c -r 0xd8 -n 20 m:

CacheExplorer 0.8 - spath@cdfreaks.com

Drive on M is  PLEXTOR  DVDR   PX-755A   1.08

[+] Plextor flush command: rejected
[+] Testing cache line size:
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors
 581 kB / 253 sectors

1,340

(3,501 replies, posted in General discussion)

I don't have 4824. The cause don't understand at present.

1,341

(3,501 replies, posted in General discussion)

These bugs happen at other plextor drive? 4824TU only?

1,342

(3,501 replies, posted in General discussion)

WIP5
http://www.mediafire.com/download/u0olo2c51f2qv13/
[fix]
c2 error correction on offset plus disc.
analyze EAN sector.

1,343

(3,501 replies, posted in General discussion)

WIP4
http://www.mediafire.com/download/u0olo2c51f2qv13/
fix
- usage text
- searching that is created file list (relative path OK)
- output dat file
add
- reread retries times (default 750)
examine
- override offset correction
- remove section of ccd file
- EAN sector (PC Engine)

1,344

(3,501 replies, posted in General discussion)

Input File Name
         path: Tenbu-CDDA
        drive:
          dir:
        fname: Tenbu-CDDA
          ext:

I didn't suppose that drive and dir was null string.
Where is file created? In case of windows7, C:\Users\<username>

1,345

(3,501 replies, posted in General discussion)

Thanks all.
WIP3
http://www.mediafire.com/download/u0olo2c51f2qv13/
change: c2 error fix logic.
add: output hash(crc32, md5, sha1) to .dat file

>EAN Sector
Please wait.

1,346

(3,501 replies, posted in General discussion)

wip2 is work in progress yet.

F1ReB4LL wrote:

I still think it's better to read all the sectors "as is", make a list of incorrect ones and reread them after all the sectors were read. That should give better results, since when you read 1 sector many times, it may return cached results and when you reread all bad sectors in a batch after you have dumped the whole disc, you can be sure no caching is involved

Fixing your ways. But as a result, I think that the reading number of times is not so different.

Nexy wrote:

I would prefer that they can be outputted in clrmame format for using in the newdisc menu.

me too. Please wait.

F1ReB4LL wrote:

There should be more logic in determining, if the EAN sector between tracks belongs to the previous or to the next track.

PC Engine Disc is very irregular. I buy it and check it.

1,347

(3,501 replies, posted in General discussion)

>pablogm123
Thanks info.
>F1ReB4LL
Thanks advice.

WIP2
http://www.mediafire.com/download/u0olo2c51f2qv13/
-Support C2 error Flag on D8 command.
-if C2 error bit off & 2 different results, reread.

1,348

(3,501 replies, posted in General discussion)

>pablogm123
Thanks info.

>Nexy
This?
http://redump.org/disc/29777/

These bug happen C2 only?

1,349

(3,501 replies, posted in General discussion)

WIP
http://www.mediafire.com/download/de7fhhiaq4z8vla/
c2: re-read until 80 times (80 is magic number at present.)
this coding is very slow, so impractical..

1,350

(3,501 replies, posted in General discussion)

You could check the bad sectors in cdmage to see if they contain the 0x55 pattern?
If not, then changing those sectors to 0x55 should match up Nexy's dump if it's the same.

Question.
Should bad sector be padding in 0x55 pattern (for SafeDisc)? If app can't read sector, it is padding a sector in 0x00 at the present.