From 35fcdcd64a29c1b9979886a8f7993c2cf00d2b5f Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Wed, 29 Mar 2017 11:11:45 -0400 Subject: [PATCH] Add partial support for tpe-r1100 --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 1 + target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/image/generic.mk | 8 ++++++++ 5 files changed, 14 insertions(+) diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index f622929f7c..1c2f9d8523 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -662,6 +662,7 @@ tl-wr1043nd-v4) tl-wr2543n) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" ;; +tpe-r1100|\ tube2h) ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0" ucidef_set_rssimon "wlan0" "200000" "1" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 10f84bf717..b089d4b2ce 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -112,6 +112,7 @@ ar71xx_setup_interfaces() tl-wa901nd-v4|\ tl-wr703n|\ tl-wr802n-v1|\ + tpe-r1100|\ tube2h|\ unifiac-lite|\ wndap360|\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index b035535a42..a34e136d56 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -1088,6 +1088,9 @@ ar71xx_board_detect() { *"TL-MR13U v1") name="tl-mr13u" ;; + *"Think Penguin Mini Router") + name="tpe-r1100" + ;; *"Tube2H") name="tube2h" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 4f479ce858..0d72807b94 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -553,6 +553,7 @@ platform_check_image() { return 0 ;; + tpe-r1100|\ tube2h) alfa_check_image "$1" && return 0 return 1 diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 16eccb8669..84784ae96d 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -116,8 +116,16 @@ define Device/gl-ar150 CONSOLE = ttyATH0,115200 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro endef + TARGET_DEVICES += gl-ar150 +define Device/tpe-r1100 + $(Device/gl-ar150) + DEVICE_TITLE := Think Penguin Mini Router +endef + +TARGET_DEVICES += tpe-r1100 + define Device/gl-ar300 DEVICE_TITLE := GL AR300 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -- 2.25.1