aredn/patches/008-add-lhg.patch

84 lines
3.1 KiB
Diff

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
@@ -529,12 +529,31 @@ mikrotik_board_detect() {
*"LHG 5nD")
name="rb-lhg-5nd"
;;
+ *"LHG 2nD")
+ name="rb-lhg-5nd"
+ ;;
+ *"RBLHG 2nD")
+ name="rb-lhg-5nd"
+ ;;
*"LHG 5HPnD")
name="rb-lhg-5hpnd"
;;
*"LHG 5HPnD-XL")
name="rb-lhg-5hpnd-xl"
;;
+ *"LHG-2nD-XL"|\
+ *"LHG 2nD-XL")
+ name="rb-lhg-5hpnd-xl"
+ ;;
+ *"RBLHG 2nD-XL")
+ name="rb-lhg-5hpnd-xl"
+ ;;
+ *"LDF-2nD")
+ name="rb-lhg-5nd"
+ ;;
+ *"RBLDF-2nD")
+ name="rb-lhg-5nd"
+ ;;
*"LDF-5nD")
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
@@ -13,7 +13,10 @@
* - 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)
* - MikroTik RouterBOARD wAP R-2nD
@@ -1254,6 +1257,7 @@ MIPS_MACHINE_NONAME(ATH79_MACH_RB_952, "
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);
MIPS_MACHINE_NONAME(ATH79_MACH_RB_WAPR, "wap-lte", rbwapr_setup);
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
@@ -230,6 +230,7 @@ enum ath79_mach_type {
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 */
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|\