gmacario / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit
1 stars 0 forks source link

DIR-615 firmware failed to extract #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
# ./extract_firmware.sh dd-wrt-dlink-dir615d-factory-webflash.bin dlink-dir615/

What is the expected output? What do you see instead?

 Firmware Mod Kit (extract) v0.64 beta, (c)2010 Jeremy Collake
 http://www.bitsum.com
 Checking for updates ...
  !!! There is a newer version available: 0.63
     You are currently using 0.64
 LINUX system detected. Compatibility ok.
 Testing file system of dlink-dir615/ ...
 Building tools ...
 Build seems successful.
 Preparing working directory ...
 Removing any previous files ...
 Creating directories ...
 Extracting firmware
! untrx failed, trying splitter3
 Attempting squashfs 3.0 lzma ...
 Trying 'damn small' variant - used by DD-WRT v24 ...
 Firmware appears extracted correctly!
 Now make changes and run build_firmware.sh.

What version of the product are you using? On what operating system?
Ubuntu 8.04 Server

Please provide any additional information below.

# cat extract.log 
make: Entering directory `/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src'
make -C ./uncramfs/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/uncramfs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/uncramfs'
make -C ./cramfs-2.x/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/cramfs-2.x'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/cramfs-2.x'
make -C ./squashfs-2.1-r2/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-2.1-r2'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-2.1-r2'
make -C ./squashfs-3.0/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0'
make -C ./squashfs-3.0-lzma-damn-small-variant/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0-lzma-damn-small-v
ariant'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0-lzma-damn-small-v
ariant'
make -C ./wrt_vx_imgtool/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/wrt_vx_imgtool'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/wrt_vx_imgtool'
make: Leaving directory `/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src'
 untrx 0.54 beta - (c)2006-2010 Jeremy Collake
 Opening dd-wrt-dlink-dir615d-factory-webflash.bin
 read 3536811 bytes
 ERROR trx header not found
 splitter3 0.10 beta - (c)2010 Jeremy Collake
 Opening dd-wrt-dlink-dir615d-factory-webflash.bin
 read 3536811 bytes
 SQUASHFS magic: 0x74717368
 SQUASHFS version: 3.0
 Found segment type 0x4 Kernel length is c0060
 File system length is 29efa0
 Trailer is 7ab bytes
  Writing dlink-dir615//image_parts/vmlinuz
    size 786528 from offset 0 ...
 SQUASHFS magic: 0x74717368
 SQUASHFS version: 3.0
  SQUASHFS v3.0 image detected
  Writing dlink-dir615//image_parts/squashfs_magic
  Writing dlink-dir615//image_parts/squashfs-lzma-image-3_0
    size 2748320 from offset 786528 ...
  Writing dlink-dir615//image_parts/hwid.txt
    size 1963 from offset 3534848 ...
  Done!

created 0 files
created 1 directories
created 0 symlinks
created 0 devices
created 0 fifos

Original issue reported on code.google.com by checho.i...@gmail.com on 6 Dec 2010 at 2:55

GoogleCodeExporter commented 8 years ago
The other BIN file on www.dd-wrt.com

# ./extract_firmware.sh dd-wrt-dlink-dir615d-revb-ddwrt-webflash.bin 
dlink-dir615/

 Firmware Mod Kit (extract) v0.64 beta, (c)2010 Jeremy Collake
 http://www.bitsum.com
 Checking for updates ...
  !!! There is a newer version available: 0.63
     You are currently using 0.64
 LINUX system detected. Compatibility ok.
 Testing file system of dlink-dir615/ ...
 Building tools ...
 Build seems successful.
 Preparing working directory ...
 Removing any previous files ...
 Creating directories ...
 Extracting firmware
 Attempting raw linux style firmware package (i.e. TEW-632BRP) ...
 Extracting dd-wrt-dlink-dir615d-revb-ddwrt-webflash.bin to dlink-dir615/ ...
 Error: filesystem not extracted properly.
  firmware image format not compatible?

# cat extract.log 
make: Entering directory `/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src'
make -C ./uncramfs/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/uncramfs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/uncramfs'
make -C ./cramfs-2.x/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/cramfs-2.x'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/cramfs-2.x'
make -C ./squashfs-2.1-r2/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-2.1-r2'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-2.1-r2'
make -C ./squashfs-3.0/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0'
make -C ./squashfs-3.0-lzma-damn-small-variant/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0-lzma-damn-small-v
ariant'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/squashfs-3.0-lzma-damn-small-v
ariant'
make -C ./wrt_vx_imgtool/
make[1]: Entering directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/wrt_vx_imgtool'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src/wrt_vx_imgtool'
make: Leaving directory `/home/wifi/fw-mod-kit/dlink-fw-mod-kit/trunk/src'
 untrx 0.54 beta - (c)2006-2010 Jeremy Collake
 Opening dd-wrt-dlink-dir615d-revb-ddwrt-webflash.bin
 read 3538972 bytes
  Writing dlink-dir615//image_parts/segment1
    size 3538944 from offset 28 ...
  Done!

Original comment by checho.i...@gmail.com on 6 Dec 2010 at 2:58

GoogleCodeExporter commented 8 years ago
The key is here:
" !!! There is a newer version available: 0.63
     You are currently using 0.64"
Please try the latest version. It should work, but if it doesn't then that 
format target firmware format is not supported.

Original comment by jeremy.collake@gmail.com on 7 Dec 2010 at 3:10

GoogleCodeExporter commented 8 years ago
0.64 is newer than 0.63. I did svn checkout today.
How can I help you to support that firmware? 

Original comment by checho.i...@gmail.com on 7 Dec 2010 at 7:28

GoogleCodeExporter commented 8 years ago
Oops, yes there is a discrepancy with the lame version checking hacked in. I am 
not interesting in adding support for this format, I am sorry. Maybe someone 
else is. I will fix the version check at least.

Original comment by jeremy.collake@gmail.com on 7 Dec 2010 at 7:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I recommend trying an older revision (months old, prior to most recent major 
mod), as it may work. Otherwise, support is not available. I am sorry, I do not 
have time to add it. I believe DD-WRT is GPL, so in a perfect would one could 
compile their code. Perhaps you can go that route. Very sorry.

Original comment by jeremy.collake@gmail.com on 7 Dec 2010 at 11:44