aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-11-19 07:58:26 +0100
committerRafał Miłecki <rafal@milecki.pl>2016-11-19 07:58:26 +0100
commit5e339a48aa95b4c7702829c09a99ccf3b99aad3e (patch)
treea1d29b6a3b076e01fd10593b8442f6f2091f3cba /target
parent2d61c26f02557b0b3734f694efdb81a2694fdd70 (diff)
downloadupstream-5e339a48aa95b4c7702829c09a99ccf3b99aad3e.tar.gz
upstream-5e339a48aa95b4c7702829c09a99ccf3b99aad3e.tar.bz2
upstream-5e339a48aa95b4c7702829c09a99ccf3b99aad3e.zip
bcm53xx: build image for TP-LINK Archer C9 v1
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target')
-rw-r--r--target/linux/bcm53xx/base-files/lib/upgrade/platform.sh1
-rw-r--r--target/linux/bcm53xx/image/Makefile27
2 files changed, 27 insertions, 1 deletions
diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index 3e4eae5a82..eb6dc823e3 100644
--- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
@@ -31,6 +31,7 @@ platform_expected_image() {
"netgear,r7900") echo "chk U12H315T30_NETGEAR"; return;;
"netgear,r8000") echo "chk U12H315T00_NETGEAR"; return;;
"netgear,r8500") echo "chk U12H334T00_NETGEAR"; return;;
+ "tplink,archer-c9-v1") echo "safeloader"; return;;
esac
}
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index c8e4777a36..853c9b252d 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -22,6 +22,22 @@ define Build/lzma-d16
mv $@.new $@
endef
+# Similar to Build/tplink-safeloader but uses TRX instead of clean kernel
+define Build/bcm53xx-tplink-safeloader
+ $(STAGING_DIR_HOST)/bin/trx \
+ -o $@.trx \
+ -m 33554432 \
+ -f $(IMAGE_KERNEL) -a 1024
+ $(STAGING_DIR_HOST)/bin/tplink-safeloader \
+ -B $(TPLINK_BOARD) \
+ -k $@.trx \
+ -r $@ \
+ -j \
+ -o $@.new
+ mv $@.new $@
+ rm $@.trx
+endef
+
define Build/trx-serial
$(STAGING_DIR_HOST)/bin/trx \
-o $@.new \
@@ -68,7 +84,7 @@ define Build/seama-nand
-i $@.entity
endef
-DEVICE_VARS += PRODUCTID SIGNATURE NETGEAR_BOARD_ID NETGEAR_REGION
+DEVICE_VARS += PRODUCTID SIGNATURE NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD
BRCMFMAC_43602A1 := kmod-brcmfmac brcmfmac-firmware-43602a1-pcie
BRCMFMAC_4366B1 := kmod-brcmfmac brcmfmac-firmware-4366b1-pcie
@@ -229,6 +245,15 @@ define Device/tenda-ac9
endef
TARGET_DEVICES += tenda-ac9
+define Device/tplink-archer-c9-v1
+ DEVICE_TITLE := TP-LINK Archer C9 V1
+ DEVICE_PACKAGES := $(USB3_PACKAGES)
+ IMAGES := bin
+ IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
+ TPLINK_BOARD := ARCHERC9
+endef
+TARGET_DEVICES += tplink-archer-c9-v1
+
TARGET_DEVICES += \
netgear-r6250 netgear-r6300-v2 netgear-r8000 \
smartrg-sr400ac