[source] ramips: Archer C50v1: support US and EU versions
LEDE Commits
lede-commits at lists.infradead.org
Sat Sep 9 03:24:46 PDT 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/991681cf4946b493048c8ea1cb6227d961b2024d
commit 991681cf4946b493048c8ea1cb6227d961b2024d
Author: Thibaut VARENE <hacks at slashdirt.org>
AuthorDate: Fri Jul 28 13:00:54 2017 +0200
ramips: Archer C50v1: support US and EU versions
For the Archer C50v1, the EU and US versions are differentiated by their
respective HW additional version (0x0 for US, 0x2 for EU).
The stock web interface checks this field before flashing, making it
impossible to flash the current (US) factory image on EU hardware.
However the bootloader does not check this field, making it possible to use
a single sysupgrade image for both hardware.
This patch adds the necessary build bits to generate both EU and US factory
images, and renames the target as "Archer C50v1" since there are as of now
3 different versions of Archer C50 (all with different CPUs).
Signed-off-by: Thibaut VARENE <hacks at slashdirt.org>
---
target/linux/ramips/image/mt7620.mk | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index b0eb337..f201c9d 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -42,15 +42,17 @@ define Device/ArcherC20i
endef
TARGET_DEVICES += ArcherC20i
-define Device/ArcherC50
+define Device/ArcherC50v1
$(Device/Archer)
DTS := ArcherC50
SUPPORTED_DEVICES := c50
TPLINK_BOARD_ID := ArcherC50
- IMAGES += factory.bin
- DEVICE_TITLE := TP-Link ArcherC50
+ IMAGES += factory-us.bin factory-eu.bin
+ IMAGE/factory-us.bin := tplink-v2-image -w 0
+ IMAGE/factory-eu.bin := tplink-v2-image -w 2
+ DEVICE_TITLE := TP-Link ArcherC50v1
endef
-TARGET_DEVICES += ArcherC50
+TARGET_DEVICES += ArcherC50v1
define Device/ArcherMR200
$(Device/Archer)
More information about the lede-commits
mailing list