hyper-xx / firmware-mod-kit

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

Unable to repack Billion 7800VPDX firmware #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download 
http://au.billion.com/downloads/firmware/voip/PCRange7800VDPX_2.24b.afw
2. Unpack firmware using latest fmk
3. Build firmware

What is the expected output? What do you see instead?
Expected: Firmware is packed to roughly the same size
Actual:
ERROR: New firmware image will be larger than original image!
       Building firmware images larger than the original can brick your device!
       Try re-running with the -min option, or remove any unnecessary files from the file system.
       Refusing to create new firmware image.

       Original file size: 12933728
       Current file size:  14434560

       Quitting...

What version of the product are you using? On what operating system?
Firmware Mod Kit (build-ng) 0.83

Please provide any additional information below.

Original issue reported on code.google.com by volta...@voltagex.org on 25 Apr 2013 at 3:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This uses a squashfs-zlib file system (v4). Using the maximum size of block 
(-min) reduces the end image size a bit, but it's still a good megabyte larger 
than the original.

The Zlib compression parameters may be different for the vendor's image, or 
maybe the cause is something else. It's hard to say.

I recommend you find some applications or libraries you don't use and clip them 
out.  I, of course, can't say whether the rebuilt image will be compatible for 
sure regardless. 

I don't think you'll see any additional investigation here, unless you want to 
pay for it ;p. It's too specialized a case.

Original comment by jeremy.collake@gmail.com on 26 Apr 2013 at 5:33