mirror of https://github.com/aredn/aredn.git
aredn: Add definitions for Mikrotik LHG-5HPnD-XL
This commit is contained in:
parent
854afdb32d
commit
355e34080f
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ openwrt-clean: stamp-clean-openwrt-cleaned .stamp-openwrt-cleaned
|
||||||
git clean -dff && git fetch && git reset --hard HEAD && \
|
git clean -dff && git fetch && git reset --hard HEAD && \
|
||||||
rm -rf .config feeds.conf build_dir/target-* logs/
|
rm -rf .config feeds.conf build_dir/target-* logs/
|
||||||
rm -rf $(TOP_DIR)/results
|
rm -rf $(TOP_DIR)/results
|
||||||
rm -f $(TOP_DIR)/.pc
|
rm -rf $(TOP_DIR)/.pc
|
||||||
rm -f .stamp-unpatched
|
rm -f .stamp-unpatched
|
||||||
ln -sf $(TOP_DIR)/patches $(OPENWRT_DIR)/
|
ln -sf $(TOP_DIR)/patches $(OPENWRT_DIR)/
|
||||||
ln -sf $(TOP_DIR)/files $(OPENWRT_DIR)/
|
ln -sf $(TOP_DIR)/files $(OPENWRT_DIR)/
|
||||||
|
|
|
@ -80,6 +80,7 @@ TPLink CPE510 v2.0 | cpe510-v2 | 64Mb | stable
|
||||||
Mikrotik Basebox RB912UAG-5HPnD/2HPnD | mikrotik-nand-large | 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 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-5nD | mikrotik-rb-nor-flash-16M | 64Mb | stable
|
||||||
|
Mikrotik RBLHG-5HPnD-XL | mikrotik-rb-nor-flash-16M | 64Mb | stable
|
||||||
|
|
||||||
## Submitting Bug Reports
|
## Submitting Bug Reports
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ case "$BOARD_TYPE" in
|
||||||
rb-912uag-5hpnd)
|
rb-912uag-5hpnd)
|
||||||
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:led1')
|
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:led1')
|
||||||
;;
|
;;
|
||||||
rb-lhg-5nd)
|
rb-lhg-5nd|rb-lhg-5hpnd-xl)
|
||||||
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:rssi0')
|
LINK1LED=$(readlink -f '/sys/class/leds/rb:green:rssi0')
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -1088,6 +1088,15 @@ sub hardware_info
|
||||||
'usechains' => 1,
|
'usechains' => 1,
|
||||||
'rfband' => '5800ubntus',
|
'rfband' => '5800ubntus',
|
||||||
},
|
},
|
||||||
|
'MikroTik RouterBOARD LHG 5HPnD-XL' => {
|
||||||
|
'name' => 'MikroTik RouterBOARD LHG 5HPnD-XL',
|
||||||
|
'comment' => 'MikroTik RouterBOARD LHG 5HPnD-XL Testing',
|
||||||
|
'supported' => '-1',
|
||||||
|
'maxpower' => '28',
|
||||||
|
'pwroffset' => '0',
|
||||||
|
'usechains' => 1,
|
||||||
|
'rfband' => '5800ubntus',
|
||||||
|
},
|
||||||
'0xc2a2' => {
|
'0xc2a2' => {
|
||||||
'name' => 'Bullet 2 HP',
|
'name' => 'Bullet 2 HP',
|
||||||
'comment' => 'Not enough Ram or flash',
|
'comment' => 'Not enough Ram or flash',
|
||||||
|
|
|
@ -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
|
||||||
|
@@ -660,7 +660,8 @@ rb-2011uias-2hnd)
|
||||||
|
ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
|
||||||
|
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
|
||||||
|
;;
|
||||||
|
-rb-lhg-5nd)
|
||||||
|
+rb-lhg-5nd|\
|
||||||
|
+rb-lhg-5hpnd-xl)
|
||||||
|
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
|
||||||
|
@@ -114,6 +114,7 @@ ar71xx_setup_interfaces()
|
||||||
|
rb-912uag-5hpnd|\
|
||||||
|
rb-921gs-5hpacd-r2|\
|
||||||
|
rb-lhg-5nd|\
|
||||||
|
+ rb-lhg-5hpnd-xl|\
|
||||||
|
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
|
||||||
|
@@ -380,6 +380,7 @@ get_status_led() {
|
||||||
|
rb-952ui-5ac2nd|\
|
||||||
|
rb-962uigs-5hact2hnt|\
|
||||||
|
rb-lhg-5nd|\
|
||||||
|
+ rb-lhg-5hpnd-xl|\
|
||||||
|
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
|
||||||
|
@@ -1096,6 +1096,9 @@ ar71xx_board_detect() {
|
||||||
|
*"RouterBOARD LHG 5nD")
|
||||||
|
name="rb-lhg-5nd"
|
||||||
|
;;
|
||||||
|
+ *"RouterBOARD LHG 5HPnD-XL")
|
||||||
|
+ name="rb-lhg-5hpnd-xl"
|
||||||
|
+ ;;
|
||||||
|
*"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
|
||||||
|
@@ -716,6 +716,7 @@ platform_check_image() {
|
||||||
|
rb-952ui-5ac2nd|\
|
||||||
|
rb-962uigs-5hact2hnt|\
|
||||||
|
rb-lhg-5nd|\
|
||||||
|
+ rb-lhg-5hpnd-xl|\
|
||||||
|
rb-map-2nd|\
|
||||||
|
rb-mapl-2nd|\
|
||||||
|
rb-wap-2nd|\
|
||||||
|
@@ -742,6 +743,7 @@ platform_pre_upgrade() {
|
||||||
|
rb-952ui-5ac2nd|\
|
||||||
|
rb-962uigs-5hact2hnt|\
|
||||||
|
rb-lhg-5nd|\
|
||||||
|
+ rb-lhg-5hpnd-xl|\
|
||||||
|
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-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-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
|
|
@ -2,6 +2,7 @@
|
||||||
001-add_support_for_TP-Link_CPE510_v2.patch
|
001-add_support_for_TP-Link_CPE510_v2.patch
|
||||||
002-firmware-check-fix.patch
|
002-firmware-check-fix.patch
|
||||||
003-add-winbond-w25q128jv.patch
|
003-add-winbond-w25q128jv.patch
|
||||||
|
004-add-lhg-5hpnd-xl.patch
|
||||||
700-cpe-diags.patch
|
700-cpe-diags.patch
|
||||||
701-extended-spectrum.patch
|
701-extended-spectrum.patch
|
||||||
702-enable-country-hx.patch
|
702-enable-country-hx.patch
|
||||||
|
|
Loading…
Reference in New Issue