Page 314 of 354

Re: DiscImageCreator

Posted: Wed Nov 17, 2021 10:30 pm
by sarami
Jackal wrote:scanning the .img instead of the .bin files, resulting in an incorrect error count for multisession discs.
https://www.mediafire.com/file/eq80y20l … st.7z/file
- changed: do not check 11400 sectors of lead-in and lead-out

Re: DiscImageCreator

Posted: Fri Nov 19, 2021 2:20 pm
by user7
Old and new DIC builds, I'm getting an error with a particular disc in good-enough condition. It's a later Xbox (OG) kiosk disc.

https://drive.google.com/file/d/1t5gf0r … sp=sharing

---

Also the feature to calculate enough free space is broken. I tried dumping a PS3 disc with 119GB free on my hard drive and I got an error. Neat feature though.

Re: DiscImageCreator

Posted: Fri Nov 19, 2021 9:35 pm
by scsi_wuzzy
user7 wrote:Old and new DIC builds, I'm getting an error with a particular disc in good-enough condition. It's a later Xbox (OG) kiosk disc.
I can't recall if this was the same error that my drives threw, but I've had a couple of Xbox discs, in great condition by all appearances, that wouldn't read. I suspect there was some manufacturing error that might have resulted in some discs having a short life. I know that at least one of the discs worked when it was new, but it no longer does. I also noticed that, when I scanned the disc in my flatbed scanner, the scan had lots of tiny little black spots, as if maybe the reflective layer has oxidized in some spots?

Re: DiscImageCreator

Posted: Sat Nov 20, 2021 12:54 am
by user7
scsi_wuzzy wrote:
user7 wrote:Old and new DIC builds, I'm getting an error with a particular disc in good-enough condition. It's a later Xbox (OG) kiosk disc.
I can't recall if this was the same error that my drives threw, but I've had a couple of Xbox discs, in great condition by all appearances, that wouldn't read. I suspect there was some manufacturing error that might have resulted in some discs having a short life. I know that at least one of the discs worked when it was new, but it no longer does. I also noticed that, when I scanned the disc in my flatbed scanner, the scan had lots of tiny little black spots, as if maybe the reflective layer has oxidized in some spots?
I've seen instances of chemical failure before on Xbox discs - not seeing any indicators here. I might send this to a friend to test on his 0800.

Re: DiscImageCreator

Posted: Sat Nov 20, 2021 8:01 am
by sarami
user7 wrote:Also the feature to calculate enough free space is broken. I tried dumping a PS3 disc with 119GB free on my hard drive and I got an error.
'bd' command supposes BDXL-R QL.
user7 wrote:Old and new DIC builds, I'm getting an error with a particular disc in good-enough condition. It's a later Xbox (OG) kiosk disc.

Code: Select all

LBA[1913094, 0x1d3106]: [F:ReadXBOXDirectoryRecord][L:1192]
    Opcode: 0xa8
    ScsiStatus: 0x02 = CHECK_CONDITION
    SenseData Key-Asc-Ascq: 03-02-00 = MEDIUM_ERROR - NO SEEK COMPLETE
Kreon does not support this disc?

Re: DiscImageCreator

Posted: Sat Nov 20, 2021 10:28 am
by user7
sarami wrote:
user7 wrote:Also the feature to calculate enough free space is broken. I tried dumping a PS3 disc with 119GB free on my hard drive and I got an error.
'bd' command supposes BDXL-R QL.
Is there an alternative command or I can't dump PS3 discs anymore?

Re: DiscImageCreator

Posted: Sun Nov 21, 2021 11:07 am
by ssjkakaroto
I think the issue is this part of the code:

Code: Select all

    if ((*pExecType == cd && ui64Avail.QuadPart > 3000000000) ||
        (*pExecType == swap && ui64Avail.QuadPart > 3000000000) ||
        (*pExecType == data && ui64Avail.QuadPart > 3000000000) ||
        (*pExecType == audio && ui64Avail.QuadPart > 3000000000) ||
        (*pExecType == gd && ui64Avail.QuadPart > 4000000000) ||
        (*pExecType == dvd && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == xbox && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == xboxswap && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == xgd2swap && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == xgd3swap && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == sacd && ui64Avail.QuadPart > 9000000000) ||
        (*pExecType == bd && ui64Avail.QuadPart > 130000000000)
        ) {
        OutputString("\t => There is enough disk space for dumping\n");
All values are hardcoded instead of being calculated per disk.

Re: DiscImageCreator

Posted: Thu Nov 25, 2021 7:31 pm
by Yurgen
I get the following errors when attempting to build from source with GNU Make 4.2.1 on ARM, default settings.  Am I missing deps?  Or some environment variable?

Code: Select all

g++ -c -o calcHash.o calcHash.cpp -include _linux/defineForLinux.h -std=c++11 -O2 -Wall -Wextra -Wno-unknown-pragmas -Waggregate-return -Wcast-align -Wcast-qual -Wconditionally-supported -Wdisabled-optimization -Wdouble-promotion -Wfloat-equal -Wformat=2 -Wformat-signedness -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmultichar -Wnoexcept -Woverlength-strings -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=2 -Wstrict-null-sentinel -Wswitch-default -Wswitch-enum -Wtrampolines -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Wunused-macros -I. -I_external -I_linux
In file included from <command-line>:
./_linux/defineForLinux.h:26:9: error: ‘_W64’ does not name a type
 typedef _W64 int INT_PTR, * PINT_PTR;
         ^~~~
./_linux/defineForLinux.h:27:9: error: ‘_W64’ does not name a type
 typedef _W64 unsigned int UINT_PTR, * PUINT_PTR;
         ^~~~
./_linux/defineForLinux.h:29:9: error: ‘_W64’ does not name a type
 typedef _W64 long LONG_PTR, * PLONG_PTR;
         ^~~~
./_linux/defineForLinux.h:30:9: error: ‘_W64’ does not name a type
 typedef _W64 unsigned long ULONG_PTR, * PULONG_PTR;
         ^~~~
./_linux/defineForLinux.h:40:9: error: ‘ULONG_PTR’ does not name a type; did you mean ‘ULONG_MAX’?
 typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
         ^~~~~~~~~
         ULONG_MAX
make: *** [makefile:67: calcHash.o] Error 1
G++ version:

Code: Select all

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1) 

Re: DiscImageCreator

Posted: Fri Nov 26, 2021 6:45 am
by sarami
Yurgen wrote:I get the following errors when attempting to build from source with GNU Make 4.2.1 on ARM, default settings.  Am I missing deps?  Or some environment variable?
removed _W64
https://github.com/saramibreak/DiscImageCreator

Re: DiscImageCreator

Posted: Fri Nov 26, 2021 7:46 am
by Yurgen
Thanks for thew quick reply.   I now get another compilation error when the makefile reaches sha1.cpp.  Looks like more type errors:

Code: Select all

g++ -c -o _external/sha1.o _external/sha1.cpp -include _linux/defineForLinux.h -std=c++11 -O2 -Wall -Wextra -Wno-unknown-pragmas -Waggregate-return -Wcast-align -Wcast-qual -Wconditionally-supported -Wdisabled-optimization -Wdouble-promotion -Wfloat-equal -Wformat=2 -Wformat-signedness -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmultichar -Wnoexcept -Woverlength-strings -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=2 -Wstrict-null-sentinel -Wswitch-default -Wswitch-enum -Wtrampolines -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Wunused-macros -I. -I_external -I_linux
g++ -c -o _linux/defineForLinux.o _linux/defineForLinux.cpp -include _linux/defineForLinux.h -std=c++11 -O2 -Wall -Wextra -Wno-unknown-pragmas -Waggregate-return -Wcast-align -Wcast-qual -Wconditionally-supported -Wdisabled-optimization -Wdouble-promotion -Wfloat-equal -Wformat=2 -Wformat-signedness -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmultichar -Wnoexcept -Woverlength-strings -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=2 -Wstrict-null-sentinel -Wswitch-default -Wswitch-enum -Wtrampolines -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Wunused-macros -I. -I_external -I_linux
_linux/defineForLinux.cpp: In function ‘void _splitpath(const char*, char*, char*, char*, char*)’:
_linux/defineForLinux.cpp:36:28: warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual]
  char* CopyOfPath = (char*)Path;
                            ^~~~
_linux/defineForLinux.cpp: At global scope:
_linux/defineForLinux.cpp:409:7: error: ambiguating new declaration of ‘off_t SetFilePointerEx(int, LARGE_INTEGER, void*, int)’
 off_t SetFilePointerEx(int fd, LARGE_INTEGER pos, void* a, int origin)
       ^~~~~~~~~~~~~~~~
In file included from <command-line>:
./_linux/defineForLinux.h:2445:9: note: old declaration ‘off64_t SetFilePointerEx(int, LARGE_INTEGER, void*, int)’
 off64_t SetFilePointerEx(int fd, LARGE_INTEGER pos, void* a, int origin);
         ^~~~~~~~~~~~~~~~
_linux/defineForLinux.cpp: In function ‘int GetDiskFreeSpaceEx(LPCSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER)’:
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘__fsblkcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
   "          Block Size: %lu\n"
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "       Flagment Size: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "       All Block Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "      Free Block Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   " Available Block Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "          I Node Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "     Free I Node Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "Available I Node Num: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "      File System ID: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   "          Mount Flag: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   " Max Filename Length: %lu\n"
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_linux/defineForLinux.cpp:459:5:
   , buf.f_blocks, buf.f_bfree, buf.f_bavail
     ~~~~~~~~~~~~
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘__fsblkcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘__fsblkcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘__fsfilcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘__fsfilcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
_linux/defineForLinux.cpp:447:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘__fsfilcnt64_t’ {aka ‘long long unsigned int’} [-Wformat=]
make: *** [makefile:67: _linux/defineForLinux.o] Error 1