Comments (11)
The extract-ng.sh script properly extracts this firmware. build-ng.sh builds
the new firmware, but the resulting firmware size is larger than the original
firmware image.
Other than the file size, the new firmware looks OK, but I don't have this
router so it is untested - tread with caution.
Original comment by [email protected]
on 5 Sep 2011 at 12:56
- Changed state: Accepted
from firmware-mod-kit.
It used to be the case that DD-WRT uses a variant of squashfs-lzma that tries
various compression parameters to determine the most optimal. I would imagine
this is still the case. IIRC, I limited the search for the most optimal
parameters so it didn't take all day. This may be the cause of what should be a
slight difference in file size.
Original comment by [email protected]
on 5 Sep 2011 at 12:58
from firmware-mod-kit.
One more thing: make sure you get the latest repo updates, some bug fixes for
extract-ng.sh and build-ng.sh were checked in today.
Original comment by [email protected]
on 5 Sep 2011 at 12:58
from firmware-mod-kit.
Just confirmed that the mksquashfs-lzma from the dd-wrt svn repo builds a
smaller squashfs image than the current version in FMK (in fact, even smaller
than the squashfs image in the dd-wrt firmware). Will update the damn-small
varient in FMK after further testing.
Original comment by [email protected]
on 5 Sep 2011 at 1:40
- Changed state: Started
from firmware-mod-kit.
[deleted comment]
from firmware-mod-kit.
Sounds good. If no output is shown during its very long compression process, I
will add some status indicator to it. I could even throw in a keypress, 'hit a
key to just use the best we found so far'.
Original comment by [email protected]
on 5 Sep 2011 at 1:47
from firmware-mod-kit.
The extra size is only an issue as the new scripts expect the size to not
change and the CRC's and size values in the firmware headers won't be properly
updated if the size of the image changes.
Of course, this can be - and probably should be - changed, but I also like to
keep the sizes the same in order to ensure we aren't going to accidentally
overwrite something critical in flash. Without knowing the MTD layout for each
and every router, this can be kind of important. :P
Original comment by [email protected]
on 5 Sep 2011 at 1:50
from firmware-mod-kit.
Indeed it is, you are very right. Related, one of the most common issues users
have had is going over the size threshold for their device. Whether we should
warn if the new size is larger than the original, I don't know. We could infer
from the original firmware image size the likely MTD layout and firmware size
limit, then check against it. However, all that is more trouble than I want to
go to, so its one of those 'put off until forever' ideas ;p.
Original comment by [email protected]
on 5 Sep 2011 at 1:59
from firmware-mod-kit.
New squashfs code checked in, resulting firmware image is now the same size as
the original firmware image.
Right now, the build-ng script will throw an error and quit if the resulting
firmware image gets larger than the original.
Original comment by [email protected]
on 5 Sep 2011 at 4:24
- Changed state: Fixed
from firmware-mod-kit.
many thanks to all of above comments.
btw, the extract-ng.sh needs binwalk to work properly. this tools can be found
at http://code.google.com/p/binwalk/.
Original comment by [email protected]
on 5 Sep 2011 at 12:47
from firmware-mod-kit.
Yes, the latest FMK check in includes and builds the binwalk 0.3.9 source.
Original comment by [email protected]
on 5 Sep 2011 at 2:31
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.