sofent / firmware-mod-kit

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

unable to extract/compress vt2x42 firmware #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.use the firmware attached (or any other that can be found on the net)
2. try to extract using either extraction script.
3. I have also tried compiling squashfs-tools (v.4.0 and 4.2) with lzma support 
with no avail

What is the expected output? What do you see instead?
 ./extract_firmware.sh vt2442-11.4.1-r070201-1.3.2-r1-xp1.img out-dir

 Firmware Mod Kit (extract) v0.73 beta, (c)2010-2011 Jeremy Collake, - Newer NG edition by Craig Heffner
 Checking for updates ...
  You have the latest version of this kit.
 LINUX system detected. Compatibility ok.
 Testing file system of out-dir ...
 WARNING: You must be 'root' when extracting and building some images.
          This is because some images need to create devices in your fs.
          For DD-WRT, do NOT extract or build as root, use standard user.
 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 ...
 Error: filesystem not extracted properly.
  firmware image format not compatible?

./extract-ng.sh vt2442-11.4.1-r070201-1.3.2-r1-xp1.img 
Firmware Mod Kit (build-ng) 0.73 beta, (c)2011 Craig Heffner, Jeremy Collake
http://www.bitsum.com

Scanning firmware...

DECIMAL     HEX         DESCRIPTION
--------------------------------------------------------------------------------
-----------------------
133296      0x14F79A0   (null)

Extracting 524288 bytes of  header image at offset 0
Extracting squashfs file system at offset 524288
Extracting 16 byte footer from offset 3834123
Extracting squashfs files...
[sudo] password for xxxxxx: 
Firmware extraction failed!

What version of the product are you using? On what operating system?
the latest kit (v 0.73) ubuntu 10.4.3

Please provide any additional information below.
Logs from extract-ng

binwalk.log

DECIMAL     HEX         DESCRIPTION
--------------------------------------------------------------------------------
-----------------------
655360      0xA0000     Squashfs filesystem, little endian, version 1.0, size: 
2471383 bytes, 536 inodes, blocksize: 32768 bytes, created: Thu Apr 27 13:05:00 
2006

config.log

FW_SIZE='3932160'
HEADER_TYPE=''
HEADER_SIZE=''
HEADER_IMAGE_SIZE='655360'
HEADER_IMAGE_OFFSET='0'
FOOTER_SIZE='0'
FOOTER_OFFSET='3932160'
FS_TYPE='squashfs'
FS_OFFSET='655360'
ENDIANESS='-le'

from extract.log

 untrx 0.54 beta - (c)2006-2010 Jeremy Collake
 Opening vt2442-11.4.1-r070201-1.3.2-r1-xp1.img
 read 3834139 bytes
 ERROR trx header not found
 splitter3 0.10 beta - (c)2010 Jeremy Collake
 Opening vt2442-11.4.1-r070201-1.3.2-r1-xp1.img
 read 3834139 bytes
 SQUASHFS magic: 0x73717368
 SQUASHFS version: 1.0
 Found segment type 0x8 Kernel length is 80000
 File system length is 328000
 Trailer is 11b bytes
  Writing out-dir/image_parts/vmlinuz
    size 524288 from offset 0 ...
 SQUASHFS magic: 0x73717368
 SQUASHFS version: 1.0
  ! WARNING: Unknown squashfs version.
  Writing out-dir/image_parts/squashfs-lzma-image-x_x
    size 3309568 from offset 524288 ...
  Writing out-dir/image_parts/hwid.txt
    size 283 from offset 3833856 ...
  Done!

Original issue reported on code.google.com by patrick....@gmail.com on 11 Jan 2012 at 8:14

Attachments:

GoogleCodeExporter commented 9 years ago
The user posted additional information here: 
http://bitsum.net/forum/index.php/topic,1176.0.html 

The bottom line is that me, Craig, or someone will need to dig a bit into this 
still. However, the more progress you make on your own, the better ;). If you 
are able to fix the issue, we'll happily commit the patch.

Original comment by jeremy.collake@gmail.com on 2 Feb 2012 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by jeremy.collake@gmail.com on 11 Jun 2013 at 8:19