sturgix / firmware-mod-kit

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

Cannot Extract DD-WRT Images #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install mod packages per the instructions on the web page.
2. Enter the following command at the command prompt: ./extract_firmware.sh 
dd-wrt.v24-15508_NEWD_micro-plus_ssh.bin ./15508_micro/

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

I get the following output: 
Firmware Mod Kit (extract) v0.63 beta, (c)2010 Jeremy Collake
 http://www.bitsum.com
 Checking for updates ...
  You have the latest version of this kit.
 LINUX system detected. Compatibility ok.
 Testing file system of ./15508_micro/ ...
 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
 ERROR: Could not split firmware into component parts (unrecognized)

From the extract.log file:
 untrx 0.54 beta - (c)2006-2010 Jeremy Collake
 Opening dd-wrt.v24-15508_NEWD_micro-plus_ssh.bin
 read 1892352 bytes
  Writing ./15508_micro//image_parts/segment1
    size 2472 from offset 28 ...
  Writing ./15508_micro//image_parts/segment2
    size 675388 from offset 2500 ...
 SQUASHFS magic: 0x74717368
 SQUASHFS version: 3.0
  SQUASHFS v3.0 image detected
  Writing ./15508_micro//image_parts/squashfs_magic
  Writing ./15508_micro//image_parts/squashfs-lzma-image-3_0
    size 1214464 from offset 677888 ...
  Done!
 splitter3 0.10 beta - (c)2010 Jeremy Collake
 Opening dd-wrt.v24-15508_NEWD_micro-plus_ssh.bin
 read 1892352 bytes
 SQUASHFS magic: 0x74717368
 SQUASHFS version: 3.0
 Found segment type 0x4 Kernel length is a5800
 File system length is 128800
 Trailer is 0 bytes
  Writing ./15508_micro//image_parts/vmlinuz
    size 677888 from offset 0 ...
 SQUASHFS magic: 0x74717368
 SQUASHFS version: 3.0
  SQUASHFS v3.0 image detected
  Writing ./15508_micro//image_parts/squashfs_magic
  Writing ./15508_micro//image_parts/squashfs-lzma-image-3_0
    size 1214464 from offset 677888 ...
  Writing ./15508_micro//image_parts/hwid.txt
    size 0 from offset 1892352 ...
 ERROR could not write ./15508_micro//image_parts/hwid.txt

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

Latest version downloaded from here, 0.63
Ubuntu 10.04 x64

Thanks very much for your help!

Original issue reported on code.google.com by ppac...@gmail.com on 11 Nov 2010 at 6:28

GoogleCodeExporter commented 8 years ago
The last batch of commits broke DD-WRT support. I did not regression test as I 
should have. Check out an older version and it will work better. Check dates to 
see the recent commits I made. I will do what I can to correct the issue.

Original comment by jeremy.collake@gmail.com on 11 Nov 2010 at 6:35

GoogleCodeExporter commented 8 years ago
Probably fix in 0.63, but I did NOT test. If it extracts/rebuilds, then it 
should operate the same as before it was broken in v0.62.

Please report if there are problems and I will look closer.

I encourage those who like maintenance on this project to donate to it, to 
offset time and money required to keep it maintained.

Original comment by jeremy.collake@gmail.com on 12 Nov 2010 at 7:14

GoogleCodeExporter commented 8 years ago
Confirmed now extracts and rebuilds DD-WRT images.  Thank you very much for 
taking the time to fix this!  Now, to see what I can break (or brick)...

Original comment by ppac...@gmail.com on 13 Nov 2010 at 6:27