ar71xx: add userspace support for Mikrotik RB2011iL
authorRon Angeles <ronangeles@gmail.com>
Tue, 28 Mar 2017 01:55:48 +0000 (18:55 -0700)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 3 Apr 2017 10:29:07 +0000 (12:29 +0200)
Kernel/hardware support for this board has been implemented since
Chaos Calmer. This set of patches is to get the board identified in
userland. This will allow support for things like sysupgrade,
configuring initial LED state, configuring initial switch state, etc.

Signed-off-by: Ron Angeles <ronangeles@gmail.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/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 1a4b02c535c90558921e19a275ce7122c18b0909..1ac3dc4a760acf53e73d37546e8a8ea7d1c4a31f 100755 (executable)
@@ -256,6 +256,7 @@ rb-952ui-5ac2nd)
 rb-962uigs-5hact2hnt)
        ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
        ;;
+rb-2011il|\
 rb-2011l|\
 rb-2011uas|\
 rb-2011uias|\
index bf7c4dcd3c8dd4cf88ddd69a8bce62ee19269137..b0bf413ca178a939f2f09f9bb11f5961e75b2552 100755 (executable)
@@ -272,6 +272,7 @@ ar71xx_setup_interfaces()
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:wan:1"
        ;;
        db120|\
+       rb-2011il|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uas-2hnd|\
index 3cde175664839ab25ec6c5f7891b83b92636a1a0..cea95b7f4e6c3004e615f712f1120534d01ef79e 100644 (file)
@@ -284,6 +284,7 @@ get_status_led() {
        r602n)
                status_led="$board:green:wan"
                ;;
+       rb-2011il|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uas-2hnd)
index 0558848d04c7cde52231dca1a25f6c4d8b68a96f..a99a4ec0b457c8f0a5a1f6f284f235253fa4fc42 100644 (file)
@@ -86,8 +86,9 @@ rb-450)
        migrate_switch_name "eth1" "switch0"
        ;;
 
-db120 |\
-rb-2011l | \
+db120|\
+rb-2011il|\
+rb-2011l|\
 rb-2011uas-2hnd)
        migrate_switch_name "eth0" "switch0"
        migrate_switch_name "eth1" "switch1"
index 25f6b01c184c23981eae42ee326c95dd9acadc00..547e0e408e239d218128d9ce312f3b97f7cb94b7 100755 (executable)
@@ -824,6 +824,9 @@ ar71xx_board_detect() {
        *"Rocket M XW")
                name="rocket-m-xw"
                ;;
+       *"RouterBOARD 2011iL")
+               name="rb-2011il"
+               ;;
        *"RouterBOARD 2011L")
                name="rb-2011l"
                ;;
index fb582091cebcd17062f877e9267639f5e7b9a208..27b0f8afecceec2d63e38fb30e9d6cd75c6274ac 100755 (executable)
@@ -508,6 +508,7 @@ platform_check_image() {
        rb-951g-2hnd|\
        rb-951ui-2hnd|\
        rb-2011l|\
+       rb-2011il|\
        rb-2011uas|\
        rb-2011uias|\
        rb-2011uas-2hnd|\
@@ -682,6 +683,7 @@ platform_pre_upgrade() {
        rb-912uag-5hpnd|\
        rb-951g-2hnd|\
        rb-951ui-2hnd|\
+       rb-2011il|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uias|\