sofent / firmware-mod-kit

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

Firmware Image Generated Different from Original when nothing changed for its extracted contents #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./extract_firmware.sh tl-wr842ndv2-webflash-r23838.bin wkdir
2. ./build_firmware.sh wkdir
3.

What is the expected output? What do you see instead?
It is expected the generated firmware (wkdir/new-firmware.bin) is the same as 
the original bin file.

Instead the size are the same. However, when doing the "cmp -l" test,
they proved to different from each other.

What version of the product are you using? On what operating system?
OS: Fedora16
Firmware Modification Kit Ver: 0.82
Firmware tested :  TPLink  tl-wr842ndv2-webflash-r23838.bin

Please provide any additional information below.

config.log - generated during extract

[root@localhost logs]# more config.log
FW_SIZE='8126492'
HEADER_TYPE='trx'
HEADER_SIZE='28'
HEADER_IMAGE_SIZE='983068'
HEADER_IMAGE_OFFSET='0'
FOOTER_SIZE='224'
FOOTER_OFFSET='8126268'
FS_TYPE='squashfs'
FS_OFFSET='983068'
FS_COMPRESSION='gzip'
FS_BLOCKSIZE='131072'
ENDIANESS='-be'
MKFS="./src/squashfs-3.0-lzma-damn-small-variant/mksquashfs-lzma"

Original issue reported on code.google.com by fct1...@gmail.com on 14 Dec 2014 at 1:55