ar71xx: Add userspace support for Mikrotik rb-2011iLS
authorSimon Paterson <simon.paterson.nz@gmail.com>
Sun, 29 Apr 2018 23:05:42 +0000 (11:05 +1200)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Apr 2018 07:01:12 +0000 (09:01 +0200)
Kernel support already present.
Patch adds userspace for the 'iLS' suffix model of the RB2011 family.
Enables correct initial switch settings, sysupgrade, etc.

https://mikrotik.com/product/RB2011iLS-IN

Signed-off-by: Simon Paterson <simon.paterson.nz@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 cf24e465a3ae03b9418d2fad603593da98a43410..906c4b715f279a3da3a95d5e36d579d360dfd0fc 100755 (executable)
@@ -616,6 +616,7 @@ rb-962uigs-5hact2hnt)
        ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"
        ;;
 rb-2011il|\
+rb-2011ils|\
 rb-2011l|\
 rb-2011uas|\
 rb-2011uas-2hnd|\
index dfe97e8133cc801c00045ad36646dcf26c40236c..cbbcf53946056ee89998a39cb3e683df72101b5e 100755 (executable)
@@ -315,12 +315,14 @@ ar71xx_setup_interfaces()
        ;;
        db120|\
        rb-2011il|\
+       rb-2011ils|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uas-2hnd|\
        rb-2011uias|\
        rb-2011uias-2hnd)
                case "$board" in
+               rb-2011ils|\
                rb-2011uas*|\
                rb-2011uias|\
                rb-2011uias-2hnd)
index 797c30f8a5f04ece86796d9df68da6127de1b0aa..19dd4c2a13ea5c6f865fcad069aa4be439741afb 100644 (file)
@@ -335,6 +335,7 @@ get_status_led() {
                status_led="$board:green:wan"
                ;;
        rb-2011il|\
+       rb-2011ils|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uas-2hnd)
index 29fdde40a0b9f780757f51dd25f372d65cfb335c..0388fb6dc93ebe0f88da8fc357ab022b0974bfbb 100644 (file)
@@ -86,6 +86,7 @@ rb-450)
 
 db120|\
 rb-2011il|\
+rb-2011ils|\
 rb-2011l|\
 rb-2011uas-2hnd)
        migrate_switch_name "eth0" "switch0"
index 7249cb61513dfa5ccf97275cde2f00d639d8d937..95314a2881fe4a96bd7084fe8c51770ebc861b66 100755 (executable)
@@ -944,6 +944,9 @@ ar71xx_board_detect() {
        *"RouterBOARD 2011iL")
                name="rb-2011il"
                ;;
+       *"RouterBOARD 2011iLS")
+               name="rb-2011ils"
+               ;;
        *"RouterBOARD 2011L")
                name="rb-2011l"
                ;;
index 376984a14a122e1f7c567fd5b9c49bb130eabe59..702d97a8ed70ca8c2bfc5e798e1bd44ab2550809 100755 (executable)
@@ -550,6 +550,7 @@ platform_check_image() {
        rb-951ui-2hnd|\
        rb-2011l|\
        rb-2011il|\
+       rb-2011ils|\
        rb-2011uas|\
        rb-2011uas-2hnd|\
        rb-2011uias|\
@@ -843,6 +844,7 @@ platform_do_upgrade() {
        rb-951g-2hnd|\
        rb-951ui-2hnd|\
        rb-2011il|\
+       rb-2011ils|\
        rb-2011l|\
        rb-2011uas|\
        rb-2011uas-2hnd|\