LDF2 support (#828)

This commit is contained in:
Tim Wilkinson 2023-05-09 00:22:41 -07:00 committed by GitHub
parent eb90661eac
commit 3fa247bc86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 5 deletions

View File

@ -17,7 +17,7 @@ LHG HP5 | RBLHG-5HPnD | 5 | ath79 | mikrotik | mikrotik-lhg-5hpnd | 64MB | stabl
LHG XL HP5 | RBLHG-5HPnD-XL | 5 | ath79 | mikrotik | mikrotik-lhg-5hpnd-xl | 64MB | stable | released
LHG 5 ac | RBLHGG-5acD | 5 | ipq40xx | mikrotik | mikrotik_lhgg-5acd | 256MB | stable | released
LHG XL 5 ac | RBLHGG-5acD-XL | 5 | ipq40xx | mikrotik | mikrotik_lhgg-5acd-xl | 256MB | stable | released
LDF 2 | RBLDF-2nD | 2 | ath79 | mikrotik | - | 64MB | unknown | released
LDF 2 | RBLDF-2nD | 2 | ath79 | mikrotik | mikrotik-ldf-2nd | 64MB | stable | nightly
LDF 5 | RBLDF-5nD | 5 | ath79 | mikrotik | mikrotik-ldf-5nd | 64MB | stable | released
RB911G-2HPnD <br> mANTBox 2 12s | RB911G-2HPnD <br> RB911G-2HPnD-12S | 2 | ath79 | mikrotik | - | 64MB | unknown | released
RB911G-5HPnD | RB911G-5HPnD | 5 | ath79 | mikrotik | - | 64MB | unknown | released

View File

@ -10,6 +10,7 @@ CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-lhg-5hpnd-xl=y
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-sxt-5nd=y
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-sxt-5hpnd=y
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-ldf-5nd=y
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-ldf-2nd=y
#
# Mikrotik use initramfs to install

View File

@ -143,6 +143,9 @@
"MikroTik RouterBOARD LDF-2nD" : {
"maxpower" : "28"
},
"MikroTik RouterBOARD LDF 2nD" : {
"maxpower" : "28"
},
"MikroTik RouterBOARD RBLDF-5nD" : {
"maxpower" : "25"
},

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/image/mikrotik.mk
+++ b/target/linux/ath79/image/mikrotik.mk
@@ -96,6 +96,24 @@
@@ -96,6 +96,33 @@
endef
TARGET_DEVICES += mikrotik_routerboard-lhg-2nd
@ -21,6 +21,15 @@
+ SUPPORTED_DEVICES += rb-sxt-2nd rb-lhg-5nd
+endef
+TARGET_DEVICES += mikrotik_routerboard-sxt-2nd
+
+define Device/mikrotik_routerboard-ldf-2nd
+ $(Device/mikrotik_nor)
+ SOC := qca9533
+ DEVICE_MODEL := RouterBOARD LDF 2nD
+ IMAGE_SIZE := 16256k
+ SUPPORTED_DEVICES += rb-ldf-2nd rb-sxt-2nd rb-lhg-2nd
+endef
+TARGET_DEVICES += mikrotik_routerboard-ldf-2nd
+
define Device/mikrotik_routerboard-lhg-5nd
$(Device/mikrotik_nor)
@ -96,9 +105,20 @@
+ compatible = "mikrotik,routerboard-sxt-2nd", "qca,qca9533";
+ model = "MikroTik RouterBOARD SXT 2nD (SXT Lite2)";
+};
--- /dev/null
+++ b/target/linux/ath79/dts/qca9533_mikrotik_routerboard-ldf-2nd.dts
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "qca9533_mikrotik_routerboard-lhg-2nd.dts"
+
+/ {
+ compatible = "mikrotik,routerboard-ldf-2nd", "qca,qca9533";
+ model = "MikroTik RouterBOARD LDF 2nD";
+};
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
@@ -17,7 +17,11 @@
@@ -17,7 +17,12 @@
mikrotik,routerboard-912uag-2hpnd|\
mikrotik,routerboard-912uag-5hpnd|\
mikrotik,routerboard-lhg-2nd|\
@ -107,10 +127,11 @@
+ mikrotik,routerboard-lhg-5hpnd|\
+ mikrotik,routerboard-lhg-5hpnd-xl|\
+ mikrotik,routerboard-sxt-2nd|\
+ mikrotik,routerboard-ldf-2nd|\
mikrotik,routerboard-mapl-2nd|\
mikrotik,routerboard-sxt-5nd-r2|\
mikrotik,routerboard-sxt-5nd|\
@@ -73,7 +77,11 @@
@@ -73,7 +77,12 @@
mikrotik,routerboard-912uag-2hpnd|\
mikrotik,routerboard-912uag-5hpnd|\
mikrotik,routerboard-lhg-2nd|\
@ -119,12 +140,13 @@
+ mikrotik,routerboard-lhg-5hpnd|\
+ mikrotik,routerboard-lhg-5hpnd-xl|\
+ mikrotik,routerboard-sxt-2nd|\
+ mikrotik,routerboard-ldf-2nd|\
mikrotik,routerboard-map-2nd|\
mikrotik,routerboard-mapl-2nd|\
mikrotik,routerboard-sxt-5nd-r2|\
--- a/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -26,7 +26,11 @@
@@ -26,7 +26,12 @@
mikrotik,routerboard-912uag-2hpnd|\
mikrotik,routerboard-912uag-5hpnd|\
mikrotik,routerboard-lhg-2nd|\
@ -133,6 +155,7 @@
+ mikrotik,routerboard-lhg-5hpnd|\
+ mikrotik,routerboard-lhg-5hpnd-xl|\
+ mikrotik,routerboard-sxt-2nd|\
+ mikrotik,routerboard-ldf-2nd|\
mikrotik,routerboard-sxt-5nd|\
mikrotik,routerboard-ldf-5nd|\
mikrotik,routerboard-sxt-5nd-r2|\