aredn: add support for Mikrotik LDF-5nD

This commit is contained in:
Joe Ayers 2018-12-07 19:46:13 -08:00 committed by Joe AE6XE
parent 9d60516176
commit 7486a179c7
5 changed files with 97 additions and 1 deletions

View File

@ -96,6 +96,7 @@ Mikrotik Basebox RB912UAG-5HPnD/2HPnD | mikrotik-nand-large | 64Mb | stable
Mikrotik hAP ac lite 952Ui-5ac2nD | mikrotik-rb-nor-flash-16M-ac | 64Mb | stable
Mikrotik RBLHG-5nD | mikrotik-rb-nor-flash-16M | 64Mb | stable
Mikrotik RBLHG-5HPnD-XL | mikrotik-rb-nor-flash-16M | 64Mb | stable
Mikrotik LDF-5nD | mikrotik-rb-nor-flash-16M | 64Mb | stable
Latest Mikrotik installation options are found at: https://www.arednmesh.org/content/installation-instructions-mikrotik-devices

View File

@ -27,7 +27,7 @@ case "$BOARD_TYPE" in
rb-912uag-5hpnd)
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:led1')
;;
rb-lhg-5nd|rb-lhg-5hpnd-xl)
rb-lhg-5nd|rb-lhg-5hpnd-xl|rb-ldf-5nd)
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:rssi0')
;;
*)

View File

@ -1099,6 +1099,15 @@ sub hardware_info
'usechains' => 1,
'rfband' => '5800ubntus',
},
'MikroTik RouterBOARD LDF-5nD' => {
'name' => 'MikroTik RouterBOARD LDF-5nD',
'comment' => '',
'supported' => '1',
'maxpower' => '25',
'pwroffset' => '0',
'usechains' => 1,
'rfband' => '5800ubntus',
},
'MikroTik RouterBOARD LHG 5nD' => {
'name' => 'MikroTik RouterBOARD LHG 5nD',
'comment' => 'MikroTik RouterBOARD LHG 5nD Testing',

View File

@ -0,0 +1,85 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -666,7 +666,8 @@ rb-2011uias-2hnd)
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
;;
rb-lhg-5nd|\
-rb-lhg-5hpnd-xl)
+rb-lhg-5hpnd-xl|\
+rb-ldf-5nd)
ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -113,6 +113,7 @@ ar71xx_setup_interfaces()
rb-921gs-5hpacd-r2|\
rb-lhg-5nd|\
rb-lhg-5hpnd-xl|\
+ rb-ldf-5nd|\
rb-mapl-2nd|\
rb-sxt2n|\
rb-sxt5n|\
Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh
+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh
@@ -377,6 +377,7 @@ get_status_led() {
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
rb-lhg-5hpnd-xl|\
+ rb-ldf-5nd|\
rb-map-2nd|\
rb-mapl-2nd|\
rb-wap-2nd)
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1107,6 +1107,9 @@ ar71xx_board_detect() {
*"RouterBOARD LHG 5HPnD-XL")
name="rb-lhg-5hpnd-xl"
;;
+ *"RouterBOARD LDF-5nD")
+ name="rb-ldf-5nd"
+ ;;
*"RouterBOARD mAP 2nD")
name="rb-map-2nd"
;;
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -719,6 +719,7 @@ platform_check_image() {
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
rb-lhg-5hpnd-xl|\
+ rb-ldf-5nd|\
rb-map-2nd|\
rb-mapl-2nd|\
rb-wap-2nd|\
@@ -746,6 +747,7 @@ platform_pre_upgrade() {
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
rb-lhg-5hpnd-xl|\
+ rb-ldf-5nd|\
rb-map-2nd|\
rb-mapl-2nd|\
rb-wap-2nd|\
Index: openwrt/target/linux/ar71xx/image/mikrotik.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/mikrotik.mk
+++ openwrt/target/linux/ar71xx/image/mikrotik.mk
@@ -40,7 +40,7 @@ define Device/rb-nor-flash-16M
LOADER_TYPE := elf
KERNEL_INSTALL := 1
KERNEL := kernel-bin | lzma | loader-kernel
- SUPPORTED_DEVICES := rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-911-2hn rb-911-5hn rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-lhg-5hpnd-xl rb-map-2nd rb-mapl-2nd rb-wap-2nd
+ SUPPORTED_DEVICES := rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-911-2hn rb-911-5hn rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-lhg-5hpnd-xl rb-ldf-5nd rb-map-2nd rb-mapl-2nd rb-wap-2nd
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 -e | pad-to $$$$(BLOCKSIZE) | \
append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
endef

View File

@ -5,6 +5,7 @@
002-firmware-check-fix.patch
003-add-winbond-w25q128jv.patch
004-add-lhg-5hpnd-xl.patch
004-add-ldf-5nd.patch
700-cpe-diags.patch
701-extended-spectrum.patch
702-enable-country-hx.patch