ramips/base-files: Add support for Archer C50
authorHenryk Heisig <hyniu@o2.pl>
Sun, 12 Jun 2016 21:43:51 +0000 (23:43 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 13 Jun 2016 20:51:43 +0000 (22:51 +0200)
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh

index 5fca5d6c8a24997cbf664bde4aa7ddd0b064f4e4..3aac1e45f5ddeb25b0cd8fafc538efcf9e57f5c7 100755 (executable)
@@ -78,6 +78,13 @@ broadway)
        set_usb_led "$board:red:diskmounted"
        set_wifi_led "$board:red:wps_active"
        ;;
+c50)
+       ucidef_set_led_default "power" "power" "tp-link:blue:power" "0"
+       ucidef_set_led_netdev "lan" "lan" "tp-link:blue:lan" "eth0.2"
+       set_usb_led "tp-link:blue:usb"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "tp-link:blue:wlan2g" "phy1radio"
+       ucidef_set_led_wlan "wlan5g" "wlan5g" "tp-link:blue:wlan5g" "phy0radio"
+       ;;
 cf-wr800n)
        ucidef_set_led_netdev "lan" "lan" "$board:white:ethernet" eth0.1
        set_wifi_led "$board:white:wifi"
index 6807eede319d364bed11e1dc76ae8d49447c5b33..be1912a1b013540a9c9a558e7103a5f60143d976 100755 (executable)
@@ -113,6 +113,7 @@ ramips_setup_interfaces()
        atp-52b|\
        awm002-evb|\
        awm003-evb|\
+       c50|\
        dir-645|\
        dir-860l-b1|\
        f5d8235-v1|\
index 7e5688642c149e000caa9c7e6a3e7ce997e0a4bc..0c5abb2861a5bad070afdd6b85eedc82e7dbd41e 100644 (file)
@@ -83,6 +83,9 @@ get_status_led() {
        wrh-300cr)
                status_led="$board:green:wps"
                ;;
+       c50)
+               status_led="tp-link:blue:power"
+               ;;
        cf-wr800n|\
        psg1208)
                status_led="$board:white:wps"
index 567e5066f8dd0dfda0cc507cce14fe79f373b5d7..bd4f33d3d52827b6c6dcabb5e56b503405fd1b30 100755 (executable)
@@ -82,6 +82,9 @@ ramips_board_detect() {
        *"C20i")
                name="c20i"
                ;;
+       *"C50")
+               name="c50"
+               ;;
        *"Carambola")
                name="carambola"
                ;;
index c71fc64917582ba51b8b6bd4cf62379cbc1b727c..0b3d8c74066a54ad8f3a448f89463218213efaca 100755 (executable)
@@ -182,7 +182,8 @@ platform_check_image() {
                }
                return 0
                ;;
-       c20i)
+       c20i|\
+       c50)
                [ "$magic" != "03000000" ] && {
                        echo "Invalid image type."
                        return 1