Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
[deleted comment]
I get on here when I'm half functioning, gotta quit that ;p. Here is a better
written answer:
Most of the time firmware images are aligned, meaning they have 'blocks' of
specific sizes, usually 64KB increments. So, unless the size change was enough
to go down to the next lower alignment boundary, it wouldn't make a difference.
Remove more, and it will eventually decrease by (most likely) 64KB, or whatever
the alignment is.
Original comment by jeremy.collake@gmail.com
on 31 Jan 2012 at 10:27
Original comment by jeremy.collake@gmail.com
on 31 Jan 2012 at 10:28
[deleted comment]
[deleted comment]
Ok I deleted 386.0 kB and the blocksize (see binwalk.log) is 128 kilobytes,
so i believe what you say is not functioning here.
The newly created new-filesystem.squashfs is 2,940,928 bytes, the old
rootfs.img is 3,073,024 bytes. So somehow the 131072 (128kB) isn't enough..
(3073024-131072=2941952) At least the bin stays the same size...
Original comment by dswee...@gmail.com
on 1 Feb 2012 at 7:38
[deleted comment]
The build-ng script pads the new firmware image out to match the size of the
original. Any particular reason you want the firmware image to be smaller?
Original comment by heffne...@gmail.com
on 2 Feb 2012 at 3:29
[deleted comment]
[deleted comment]
I went ahead and added a -nopad switch to build-ng.sh that I'm about to commit.
Craig, change or remove however you want of course, since the -ng's are yours ;)
Original comment by jeremy.collake@gmail.com
on 3 Feb 2012 at 4:50
Commit made, hopefully I didn't break anything in my haste ;). It should be
good, Craig's ng script was clean and easy to read. The *optional* parameter
can be supplied as -nopad. You can include just it, or include a directory,
followed by it as the second parameter.
Original comment by jeremy.collake@gmail.com
on 3 Feb 2012 at 4:59
Original comment by jeremy.collake@gmail.com
on 3 Feb 2012 at 5:04
Original issue reported on code.google.com by
dswee...@gmail.com
on 29 Jan 2012 at 11:53Attachments: