aredn: add definition for Mikrotik LHG 5HPnD

This commit is contained in:
Joe Ayers 2019-04-02 17:28:39 -07:00 committed by Joe AE6XE
parent e0ea513c5e
commit 9470c6b1ad
5 changed files with 87 additions and 1 deletions

View File

@ -93,6 +93,7 @@ TPLink WBS210 v1.0 | wbs210-v1 | 64mb | stable
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 | 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
Mikrotik QRT5 RB911G-5HPnD-QRT | mikrotik-nand-large | 64Mb | stable

View File

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

View File

@ -1165,6 +1165,15 @@ sub hardware_info
'usechains' => 1,
'rfband' => '5800ubntus',
},
'MikroTik RouterBOARD LHG 5HPnD' => {
'name' => 'MikroTik RouterBOARD LHG 5HPnD',
'comment' => '',
'supported' => '1',
'maxpower' => '28',
'pwroffset' => '0',
'usechains' => 1,
'rfband' => '5800ubntus',
},
'MikroTik RouterBOARD LHG 5HPnD-XL' => {
'name' => 'MikroTik RouterBOARD LHG 5HPnD-XL',
'comment' => '',

View File

@ -0,0 +1,75 @@
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
@@ -681,6 +681,7 @@ rb-2011uias-2hnd)
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
;;
rb-lhg-5nd|\
+rb-lhg-5hpnd|\
rb-lhg-5hpnd-xl|\
rb-ldf-5nd)
ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
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-912uag-5hpnd|\
rb-921gs-5hpacd-r2|\
rb-lhg-5nd|\
+ rb-lhg-5hpnd|\
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-mapl-2nd|\
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
@@ -376,6 +376,7 @@ get_status_led() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
+ rb-lhg-5hpnd|\
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-map-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
@@ -1121,6 +1121,9 @@ ar71xx_board_detect() {
*"RouterBOARD LHG 5nD")
name="rb-lhg-5nd"
;;
+ *"RouterBOARD LHG 5HPnD")
+ name="rb-lhg-5hpnd"
+ ;;
*"RouterBOARD LHG 5HPnD-XL")
name="rb-lhg-5hpnd-xl"
;;
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
@@ -720,6 +720,7 @@ platform_check_image() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
+ rb-lhg-5hpnd|\
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-map-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-ldf-5nd 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 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

@ -9,6 +9,7 @@
004-add-lhg-5hpnd-xl.patch
004-add-ldf-5nd.patch
005-add-haplite-new-model.patch
006-add-lhg-5hpnd.patch
700-cpe-diags.patch
701-extended-spectrum.patch
702-enable-country-hx.patch