ar71xx: add support for Mikrotik RouterBOARD 2011UiAS-2HnD r2
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 12 Apr 2019 09:08:43 +0000 (11:08 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Tue, 23 Apr 2019 11:22:31 +0000 (13:22 +0200)
This board got a new hardware revision, without any change in functionality.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 41dd8c52ea0c869d23ae6823fb50a6f924f3b211..882849f0dc670a0c8e17d60e3d3c8b2fc8768681 100755 (executable)
@@ -673,7 +673,8 @@ rb-2011l|\
 rb-2011uas|\
 rb-2011uas-2hnd|\
 rb-2011uias|\
-rb-2011uias-2hnd)
+rb-2011uias-2hnd|\
+rb-2011uias-2hnd-r2)
        ucidef_set_led_switch "eth6" "ETH6" "rb:green:eth6" "switch1" "0x20"
        ucidef_set_led_switch "eth7" "ETH7" "rb:green:eth7" "switch1" "0x10"
        ucidef_set_led_switch "eth8" "ETH8" "rb:green:eth8" "switch1" "0x08"
index 68874e0c2e8df680b2aee1b52859cab24e4589cc..b06ec4b5f61d5c4230dfa0b81b5784bd5950d030 100755 (executable)
@@ -335,12 +335,14 @@ ar71xx_setup_interfaces()
        rb-2011uas|\
        rb-2011uas-2hnd|\
        rb-2011uias|\
-       rb-2011uias-2hnd)
+       rb-2011uias-2hnd|\
+       rb-2011uias-2hnd-r2)
                case "$board" in
                rb-2011ils|\
                rb-2011uas*|\
                rb-2011uias|\
-               rb-2011uias-2hnd)
+               rb-2011uias-2hnd|\
+               rb-2011uias-2hnd-r2)
                        ucidef_add_switch "switch0" \
                                "0@eth0" "2:lan" "3:lan" "4:lan" "5:lan" "1:wan" "6:sfp"
                ;;
index 990683a55b45a0169b54483fbccd5da8b6a3c2da..2ef16fe4f9ff4177454c1abafcbaed6b6be46bb6 100755 (executable)
@@ -1024,6 +1024,9 @@ ar71xx_board_detect() {
        *"RouterBOARD 2011UiAS-2HnD")
                name="rb-2011uias-2hnd"
                ;;
+       *"RouterBOARD 2011UiAS-2HnD r2")
+               name="rb-2011uias-2hnd-r2"
+               ;;
        *"RouterBOARD 411/A/AH")
                name="rb-411"
                ;;
index 81735017e5a0a7137f6add816e65222f533d2c64..d0690dbaf43b04771a38a4dc52025dcfb68e99c5 100755 (executable)
@@ -568,6 +568,7 @@ platform_check_image() {
        rb-2011uas-2hnd|\
        rb-2011uias|\
        rb-2011uias-2hnd|\
+       rb-2011uias-2hnd-r2|\
        rb-sxt2n|\
        rb-sxt5n)
                nand_do_platform_check routerboard $1
@@ -891,6 +892,7 @@ platform_do_upgrade() {
        rb-2011uas-2hnd|\
        rb-2011uias|\
        rb-2011uias-2hnd|\
+       rb-2011uias-2hnd-r2|\
        rb-sxt2n|\
        rb-sxt5n|\
        wi2a-ac200i|\