chensiqia / firmware-mod-kit

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

How can I ignore this message? "image will be larger than original image!" #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please help...

I changed a landingpage in this bin image.. so now I will build it back and I 
get this error. 

juliand@juliand:~/firmware_mod_kit/firmware-mod-kit-read-only$ ./build-ng.sh 
-nopad working_directory/ 
Firmware Mod Kit (build-ng) 0.78 beta, (c)2012 Craig Heffner, Jeremy Collake
http://www.bitsum.com

Building new squashfs file system...
[sudo] password for juliand: 
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on 
/home/juliand/firmware_mod_kit/firmware-mod-kit-read-only/fmk/new-filesystem.squ
ashfs, block size 131072.
[===============================================================================
==========================================================================|] 
854/854 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
    compressed data, compressed metadata, compressed fragments, compressed xattrs
    duplicates are removed
Filesystem size 3447.18 Kbytes (3.37 Mbytes)
    42.20% of uncompressed filesystem size (8168.71 Kbytes)
Inode table size 10935 bytes (10.68 Kbytes)
    29.79% of uncompressed inode table size (36708 bytes)
Directory table size 11665 bytes (11.39 Kbytes)
    51.20% of uncompressed directory table size (22784 bytes)
Number of duplicate files found 20
Number of inodes 1106
Number of files 827
Number of fragments 29
Number of symbolic links  193
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 86
Number of ids (unique uids + gids) 1
Number of uids 1
    root (0)
Number of gids 1
    root (0)
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: 3932160
       Current file size:  4444112

       Quitting...
juliand@juliand:~/firmware_mod_kit/firmware-mod-kit-read-only$ 

Please help.

Original issue reported on code.google.com by julian...@gmail.com on 28 Mar 2013 at 6:29

GoogleCodeExporter commented 8 years ago
Well, the error is there for a reason. Sure, you can ignore the error and 
proceed anyway, but if you have to ask how to change the behavior of the 
script, I'm not sure it's a good idea to tell you ;p. Nobody wants to see you 
brick your device.

Original comment by jeremy.collake@gmail.com on 28 Mar 2013 at 7:14

GoogleCodeExporter commented 8 years ago

Original comment by jeremy.collake@gmail.com on 28 Mar 2013 at 7:15

GoogleCodeExporter commented 8 years ago

Original comment by jeremy.collake@gmail.com on 28 Mar 2013 at 7:15

GoogleCodeExporter commented 8 years ago
My english is bad, sorry. I want to compile the folder back into a bin.. 
I mean with "ignore this message" .. why is ./build-ng.sh [-nopad] not working 
fine? 

Original comment by julian...@gmail.com on 28 Mar 2013 at 7:22

GoogleCodeExporter commented 8 years ago
Because padding is not the cause of the extra size. Either the files you added 
increases the size, or the arrangement and/or compression of the files was 
inferior to the original build.

Given the size of the original firmware, there is a good chance your device has 
4MB FLASH ROM. That means the effective maximum size of the firmware is 
4MB-[boot loader/other] .. so less than 4MB. If you try to flash a firmware 
larger than that, the device will not accept it, or be bricked.

The scripts are easily modified to remove this restriction, if you are sure 
your device will accept a larger firmware.

The better thing to do would be to remove unnecessary components of the 
firmware in order to reduce its size.

Original comment by jeremy.collake@gmail.com on 28 Mar 2013 at 8:22