From 81698a557864d843722a31708320ae994666e595 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Mon, 7 Aug 2017 20:22:37 -0400 Subject: [PATCH] Add basic support for the GL-USB150 microuter --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 1 + target/linux/ar71xx/base-files/etc/board.d/02_network | 3 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 5 ++++- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/image/generic.mk | 10 +++++++--- 5 files changed, 16 insertions(+), 4 deletions(-) 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 1c2f9d8523..99f0ec1ad7 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -276,6 +276,7 @@ dlan-pro-1200-ac) ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0" ;; gl-ar150|\ +gl-usb150|\ gl-ar300|\ gl-ar300m|\ gl-mifi) 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 b089d4b2ce..7911da228e 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -124,6 +124,9 @@ ar71xx_setup_interfaces() alfa-ap96|\ alfa-nx|\ gl-ar150|\ + gl-usb150) + ucidef_set_interface_lan "eth0" + ;; gl-ar300m|\ gl-domino|\ gl-inet|\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index a34e136d56..be3c98a5e6 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -620,6 +620,9 @@ ar71xx_board_detect() { *"GL AR150") name="gl-ar150" ;; + *"GL USB150") + name="gl-usb150" + ;; *"GL AR300") name="gl-ar300" ;; @@ -1088,7 +1091,7 @@ ar71xx_board_detect() { *"TL-MR13U v1") name="tl-mr13u" ;; - *"Think Penguin Mini Router") + *"TPE-R1100 Think Penguin Mini Router") name="tpe-r1100" ;; *"Tube2H") diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 0d72807b94..b2b88aba6d 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -237,6 +237,7 @@ platform_check_image() { ew-dorin-router|\ ew-dorin|\ gl-ar150|\ + gl-usb150|\ gl-ar300m|\ gl-ar300|\ gl-domino|\ diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index 84784ae96d..fbcefe4690 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -117,14 +117,18 @@ define Device/gl-ar150 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro endef -TARGET_DEVICES += gl-ar150 +define Device/gl-usb150 +$(Device/gl-ar150) + DEVICE_TITLE := GL USB150 + DEVICE_PACKAGES += kmod-usb-serial kmod-usb-serial-pl2303 kmod-usb-net +endef define Device/tpe-r1100 $(Device/gl-ar150) - DEVICE_TITLE := Think Penguin Mini Router + DEVICE_TITLE := TPE-R1100 Think Penguin Mini Router endef -TARGET_DEVICES += tpe-r1100 +TARGET_DEVICES += gl-ar150 gl-usb150 tpe-r1100 define Device/gl-ar300 DEVICE_TITLE := GL AR300 -- 2.25.1