tools/firmware-utils: add header version 2 support for mktplinkfw
authorJohn Crispin <[email protected]>
Mon, 17 Aug 2015 06:23:43 +0000 (06:23 +0000)
committerJohn Crispin <[email protected]>
Mon, 17 Aug 2015 06:23:43 +0000 (06:23 +0000)
commit1abce09c075faf40afce157d8fdd5066fde7f1b4
treeac67baf947d27fcd594056b0671c856371c97f28
parent1abff983559d173fe0083810b8e4d90646c80051
tools/firmware-utils: add header version 2 support for mktplinkfw

Signed-off-by: Weijie Gao <[email protected]>
This patch adds header version 2 option for mktplinkfw.

The version 2 header is used for AR/QCA firmwares and is not the same as
the header generated by mktplinkfw2.
Instead, it is nearly the same as version 1 header except for the header
version and the RSA signature.

The header version 2 support is used for newer TP-Link routers which have
only a 64kb bootloader part, e.g. TL-WDR6500 v2.

SVN-Revision: 46661
src/mktplinkfw.c