[source] ar71xx: add userspace support for Mikrotik RB2011iL
LEDE Commits
lede-commits at lists.infradead.org
Mon Apr 3 03:38:20 PDT 2017
pepe2k pushed a commit to source.git, branch master:
https://git.lede-project.org/156d9255f2c621ffe58321d73b737613f70e0503
commit 156d9255f2c621ffe58321d73b737613f70e0503
Author: Ron Angeles <ronangeles at gmail.com>
AuthorDate: Mon Mar 27 18:55:48 2017 -0700
ar71xx: add userspace support for Mikrotik RB2011iL
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 at gmail.com>
---
target/linux/ar71xx/base-files/etc/board.d/01_leds | 1 +
target/linux/ar71xx/base-files/etc/board.d/02_network | 1 +
target/linux/ar71xx/base-files/etc/diag.sh | 1 +
.../ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration | 5 +++--
target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++
target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 ++
6 files changed, 11 insertions(+), 2 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 1a4b02c..1ac3dc4 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -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|\
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 bf7c4dc..b0bf413 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -272,6 +272,7 @@ ar71xx_setup_interfaces()
"0 at eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:wan:1"
;;
db120|\
+ rb-2011il|\
rb-2011l|\
rb-2011uas|\
rb-2011uas-2hnd|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 3cde175..cea95b7 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -284,6 +284,7 @@ get_status_led() {
r602n)
status_led="$board:green:wan"
;;
+ rb-2011il|\
rb-2011l|\
rb-2011uas|\
rb-2011uas-2hnd)
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
index 0558848..a99a4ec 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
@@ -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"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 25f6b01..547e0e4 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -824,6 +824,9 @@ ar71xx_board_detect() {
*"Rocket M XW")
name="rocket-m-xw"
;;
+ *"RouterBOARD 2011iL")
+ name="rb-2011il"
+ ;;
*"RouterBOARD 2011L")
name="rb-2011l"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index fb58209..27b0f8a 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -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|\
More information about the lede-commits
mailing list