源码是从 https://gitee.com/de-eem/openwrt 搬过来的
Go to file
Piotr Dymacz 4b35e174ca firmware-utils: mktplinkfw2: support additional hardware version
As it turned out, some of new MediaTek based TP-Link devices use value
from field at 0x3c offset in version 3 of TP-Link header to specify
"Additional Hardware Version".

Value from this field is validated during regular (GUI) firmware upgrade
on devices like TL-WR840N v4 or TL-WR841N v13. If it's zero (based on
some tests, it seems that firmware will accept anything != 0), errors
like below are printed on console and upgrade fails:

[ rsl_sys_updateFirmware ] 2137:  Firmware Additional HardwareVersion
check failed

[ rdp_updateFirmware ] 345:  perror:4506

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2017-06-29 10:37:36 +02:00
.github github: include pull request template 2017-03-12 17:38:31 +01:00
config kernel: Make KERNEL_PERF_EVENTS selectable 2017-05-26 15:42:25 -07:00
include kernel: update kernel 4.4 to 4.4.74 2017-06-27 07:42:50 +02:00
package uboot-envtools: add Arduino Yun support 2017-06-29 10:37:36 +02:00
scripts scripts/package-metadata.pl: parse and validate field Require-User 2017-06-18 10:39:35 +08:00
target ar71xx: fix switch port mapping for TP-Link TL-WR74xN/D series 2017-06-29 10:37:36 +02:00
toolchain gcc: gcc 6.3.0 fix comparison between pointer and integer 2017-06-24 13:11:19 +02:00
tools firmware-utils: mktplinkfw2: support additional hardware version 2017-06-29 10:37:36 +02:00
.gitattributes add .gitattributes to prevent the git autocrlf option from messing with CRLF/LF in files 2012-05-08 13:30:49 +00:00
.gitignore gitignore: add /overlay 2017-01-15 18:16:29 +01:00
BSDmakefile add missing copyright header 2007-02-26 01:05:09 +00:00
Config.in branding: add LEDE branding 2016-03-24 22:40:13 +01:00
feeds.conf.default Add video feed to feeds.conf.default 2017-01-25 16:04:39 +01:00
LICENSE
Makefile build: prepare config.seed before package compilation 2017-03-18 12:08:04 +01:00
README README: Update project README 2016-05-12 03:29:36 +02:00
rules.mk rules.mk: make PKG_CONFIG_DEPENDS properly track string values 2017-02-27 23:46:53 +01:00

This is the buildsystem for the LEDE Linux distribution.

Please use "make menuconfig" to choose your preferred
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, bzip2, flex, python, perl, make,
find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.

Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

Use "make menuconfig" to configure your image.

Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.


Sunshine!
	Your LEDE Community
	http://www.lede-project.org