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)
- Checksums don't match after build
- Fails to compile on Arch x64
- can we extract this firmware file
- extract openwrt ERR No supported file system found!
- Autoconf not listed in prerequisites guide
- Tenda N300 firmware binary - no supported filesystem found.
- Python 2 dependencies HOT 1
- unable to build jffs2 filesystem ... HOT 3
- Add support for UBI filesystems? (Linksys WRT32X)
- Unable to build Zlib HOT 1
- extract-firmware.sh DVRF_v03.bin Tools build failed! Check pre-requisites. Quitting... HOT 2
- Release a new version?
- Extraction error also compliance HOT 3
- Unsupported file system 'mpfs'! Quitting...
- "No supported filesystem found" with Trendnet THA-101 firmware HOT 1
- squashfs-4.0-realtek
- add support for hg630v2
- Installation HOT 1
- Firmware version incorrect after modification
- I cannot build on arch linux HOT 1
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.