2019-06-22 21:17:44 -06:00
|
|
|
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
|
2020-05-27 18:04:12 -06:00
|
|
|
@@ -529,12 +529,31 @@ mikrotik_board_detect() {
|
2020-01-22 18:37:27 -07:00
|
|
|
*"LHG 5nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
name="rb-lhg-5nd"
|
|
|
|
;;
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"LHG 2nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5nd"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"RBLHG 2nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5nd"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
*"LHG 5HPnD")
|
2019-06-22 21:17:44 -06:00
|
|
|
name="rb-lhg-5hpnd"
|
|
|
|
;;
|
2020-01-22 18:37:27 -07:00
|
|
|
*"LHG 5HPnD-XL")
|
2019-06-22 21:17:44 -06:00
|
|
|
name="rb-lhg-5hpnd-xl"
|
|
|
|
;;
|
2020-05-27 18:04:12 -06:00
|
|
|
+ *"LHG-2nD-XL"|\
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"LHG 2nD-XL")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5hpnd-xl"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"RBLHG 2nD-XL")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5hpnd-xl"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"LDF-2nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5nd"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
+ *"RBLDF-2nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
+ name="rb-lhg-5nd"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
*"LDF-5nD")
|
2019-06-22 21:17:44 -06:00
|
|
|
name="rb-ldf-5nd"
|
|
|
|
;;
|
|
|
|
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
|
|
|
|
===================================================================
|
|
|
|
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
|
|
|
|
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
|
2020-01-22 18:37:27 -07:00
|
|
|
@@ -13,7 +13,10 @@
|
2019-06-22 21:17:44 -06:00
|
|
|
* - MikroTik RouterBOARD 750UP r2
|
|
|
|
* - MikroTik RouterBOARD 750P-PBr2
|
|
|
|
* - MikroTik RouterBOARD 750 r2
|
|
|
|
+ * - MikroTik RouterBOARD LHG 2nD
|
|
|
|
* - MikroTik RouterBOARD LHG 5nD
|
|
|
|
+ * - MikroTik RouterBOARD LDF 2nD
|
|
|
|
+ * - MikroTik RouterBOARD LDF 2nD-XL
|
|
|
|
* - MikroTik RouterBOARD wAP2nD
|
|
|
|
* - MikroTik RouterBOARD wAP G-5HacT2HnDwAP (wAP AC)
|
2020-01-22 18:37:27 -07:00
|
|
|
* - MikroTik RouterBOARD wAP R-2nD
|
|
|
|
@@ -1254,6 +1257,7 @@ MIPS_MACHINE_NONAME(ATH79_MACH_RB_952, "
|
2019-06-22 21:17:44 -06:00
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_962, "962", rb962_setup);
|
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_750UPR2, "750-hb", rb750upr2_setup);
|
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_LHG5, "lhg", rblhg_setup);
|
|
|
|
+MIPS_MACHINE_NONAME(ATH79_MACH_RB_LHG2, "lhg-hb", rblhg_setup);
|
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_WAP, "wap-hb", rbwap_setup);
|
2020-01-22 18:37:27 -07:00
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_WAPR, "wap-lte", rbwapr_setup);
|
2019-06-22 21:17:44 -06:00
|
|
|
MIPS_MACHINE_NONAME(ATH79_MACH_RB_CAP, "cap-hb", rbcap_setup);
|
|
|
|
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
|
|
|
|
===================================================================
|
|
|
|
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
|
|
|
|
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
|
2020-01-22 18:37:27 -07:00
|
|
|
@@ -230,6 +230,7 @@ enum ath79_mach_type {
|
2019-06-22 21:17:44 -06:00
|
|
|
ATH79_MACH_RB_962, /* MikroTik RouterBOARD 962UiGS-5HacT2HnT */
|
|
|
|
ATH79_MACH_RB_CAP, /* Mikrotik RouterBOARD cAP2nD */
|
|
|
|
ATH79_MACH_RB_LHG5, /* Mikrotik RouterBOARD LHG5 */
|
|
|
|
+ ATH79_MACH_RB_LHG2, /* Mikrotik RouterBOARD LHG2 */
|
|
|
|
ATH79_MACH_RB_MAP, /* Mikrotik RouterBOARD mAP2nD */
|
|
|
|
ATH79_MACH_RB_MAPL, /* Mikrotik RouterBOARD mAP L-2nD */
|
|
|
|
ATH79_MACH_RB_WAP, /* Mikrotik RouterBOARD wAP2nD */
|
2020-08-19 16:02:22 -06:00
|
|
|
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
|
|
|
|
@@ -760,6 +760,7 @@ platform_pre_upgrade() {
|
|
|
|
rb-952ui-5ac2nd|\
|
|
|
|
rb-962uigs-5hact2hnt|\
|
|
|
|
rb-lhg-5nd|\
|
|
|
|
+ rb-lhg-5hpnd|\
|
|
|
|
rb-lhg-5hpnd-xl|\
|
|
|
|
rb-ldf-5nd|\
|
|
|
|
rb-map-2nd|\
|