Comments (3)
The DIR600 DD-WRT image has both a TRX header and a uImage header, which I
think confuses the extract_firmware.sh script. Looking at the extract.log file,
you should see something like:
untrx 0.54 beta - (c)2006-2010 Jeremy Collake
Opening dir600b-revb-ddwrt-webflash.bin
read 3661852 bytes
Writing test/image_parts/segment1
size 3661824 from offset 28 ...
Done!
In other words, the untrx tool saw a TRX header and assumed the file system
immediately followed the TRX header at offset 28, when in fact the file system
is located at offset 868380.
A temporary fix is to comment out the untrx call in the extract_firmware.sh
script, forcing the splitter3 tool to be invoked instead, which will properly
locate and extract the SquashFS file system.
In the extract_firmware.sh file, comment out lines 111, 112, and 122. The file
should then look like:
110 echo " Extracting firmware"
111 #"src/untrx" "$1" "$2/image_parts" >> extract.log 2>&1
112 #if [ $? != 0 ]; then
113 echo "! untrx failed, trying splitter3";
114 "src/splitter3" "$1" "$2/image_parts" >> extract.log
2>&1
115 if [ $? != 0 ]; then
116 echo " Not recognized by splitter3";
117 # exit 1
118 else
119 touch "$2/.linux_raw_type3"
120 touch "$2/.squashfs3_lzma_fs"
121 fi
122 #fi
Re-run extract_firmware.sh and it should work.
Original comment by [email protected]
on 8 Aug 2011 at 2:31
from firmware-mod-kit.
The firmware is properly extracted with the extract-ng.sh script (requires
binwalk).
Original comment by [email protected]
on 30 Aug 2011 at 12:15
- Changed state: Fixed
from firmware-mod-kit.
This issue still exists with me on the ng script.
A temporary workaround was to modify line 62 to this:
$BINWALK -f "$BINLOG" -d -x invalid -y squashfs "$IMG"
Original comment by [email protected]
on 16 Nov 2011 at 1:34
from firmware-mod-kit.
Related Issues (20)
- Extracting 0 bytes of header image at offset 0 HOT 1
- Failure building image.
- Can this firmeware be extracted? HOT 2
- jffs2 big endian problem
- new binwalk HOT 1
- CramFS extraction failed due to missing cleaning up
- Can't unpack Zyxel NWA-3100 firmware HOT 1
- Wrong build
- uncramfs-lzma stops after successfully decoding the first block
- Extracted firmware and then tried to rebuild it and it became larger, probably because it didnt use lzma for recompress. HOT 1
- Image fault when builidng Tomato for RT-AC68U HOT 3
- Cannot extract firmware
- Issue in extracting squashfs filesystem
- Firmware Image Generated Different from Original when nothing changed for its extracted contents
- Failed to create new file system
- Can not extract Huawei HG655b-B025 firmware
- after edit ddwrt-gui's asp file,install error
- Does FMK work on dd-wrt firmware for buffalo wzr-600dhp
- CRC update failed - Netis WR2419 firmware
- FMK won't extract zip compressed cramfs images?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firmware-mod-kit.