Giter Site home page Giter Site logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
[deleted comment]

from firmware-mod-kit.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 29, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.