FMK with ZXV10 W812Nv2 firmware

Started by xuyunxiang, November 25, 2014, 08:33:49 PM

Previous topic - Next topic

xuyunxiang

I used FMK 0.99 to successfully extract firmware and rebuild firmware. Although I didn't change any firmware's file, I find that rebuild firmware size is same as old firmware, but rebuild firmware's bit is not same as old firmware.  So, when I update AP's firmware, there is integrity check failed.

attach file is rebuild firmware and old firmware, log of extract and build refer to

===================================================================================
Firmware Mod Kit (extract) 0.99, (c)2011-2013 Craig Heffner, Jeremy Collake

Preparing tools ...
Scanning firmware...

Scan Time:     2014-11-26 09:13:35
Signatures:    193
Target File:   /home/xuyx/fmk/W812NV2_v300100z1_firmware.bin
MD5 Checksum:  8d5c65c1852b68d4f1903cca9c8c829d

DECIMAL      HEX          DESCRIPTION
-------------------------------------------------------------------------------------------------------
256          0x100        uImage header, header size: 64 bytes, header CRC: 0x5FE605A, created: Fri Oct 25 06:41:04 2013, image size: 1087565 bytes, Data Address: 0x80002000, Entry Point: 0x8024F290, data CRC: 0x5A2AAC2A, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "Linux Kernel Image"
320          0x140        LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 3265024 bytes
1179648      0x120000     Squashfs filesystem, little endian, version 4.0, compression: lzma, size: 6281488 bytes,  752 inodes, blocksize: 65536 bytes, created: Fri Oct 25 06:50:17 2013

Extracting 1179648 bytes of  header image at offset 0
Extracting squashfs file system at offset 1179648
Extracting squashfs files...
Firmware extraction successful!
Firmware parts can be found in '/home/xuyx/fmk/fmk/*'

===========================================================================================
Firmware Mod Kit (build) 0.99, (c)2011-2013 Craig Heffner, Jeremy Collake

Preparing tools ...
Building new squashfs file system... (this may take several minutes!)
Squahfs block size is 64 Kb
Parallel mksquashfs: Using 24 processors
Creating 4.0 filesystem on /home/xuyx/fmk/fmk/new-filesystem.squashfs, block size 65536.
[===============================================================/] 826/826 100%
Exportable Squashfs 4.0 filesystem, data block size 65536
   compressed data, compressed metadata, compressed fragments
   duplicates are removed
Filesystem size 6134.29 Kbytes (5.99 Mbytes)
   27.42% of uncompressed filesystem size (22375.12 Kbytes)
Inode table size 5908 bytes (5.77 Kbytes)
   23.78% of uncompressed inode table size (24841 bytes)
Directory table size 6945 bytes (6.78 Kbytes)
   42.42% of uncompressed directory table size (16373 bytes)
Number of duplicate files found 10
Number of inodes 752
Number of files 552
Number of fragments 63
Number of symbolic links  57
Number of device nodes 110
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 33
Number of ids (unique uids + gids) 1
Number of uids 1
   root (0)
Number of gids 1
   root (0)
Remaining free bytes in firmware image: 0
Processing 1 header(s) from /home/xuyx/fmk/fmk/new-firmware.bin...
Processing header at offset 256...checksum(s) updated OK.
CRC(s) updated successfully.

Finished!
New firmware image has been saved to: /home/xuyx/fmk/fmk/new-firmware.bin

Joshuadit

Today ive released a new version of the epk2extract tool. This version 0.9 is able to extract US/North American firmware packages now. Special thanks to tbage and xeros for key extraction.