[openwrt/openwrt] ramips: mt7621: ASUS RT-AX53U add NMBM, nest firmware
LEDE Commits
lede-commits at lists.infradead.org
Sat Apr 1 12:36:00 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/787ecdf66de6798540fb8b756404566341b4733c
commit 787ecdf66de6798540fb8b756404566341b4733c
Author: Felix Baumann <felix.bau at gmx.de>
AuthorDate: Fri Mar 31 06:16:04 2023 +0200
ramips: mt7621: ASUS RT-AX53U add NMBM, nest firmware
Nests kernel and ubi into firmware partition in-order to be compatible
with OEM firmware. This allows restoring oem firmware from a backup of
firmware2. Add jffs2 partition which is present in the oem firmware.
Add support for mediatek NMBM (wear leveling on newer mediatek devices).
Exclude UBI partition from NMBM management.
Continues PR #10685.
Tested-by: Felix Baumann <felix.bau at gmx.de>
Signed-off-by: Felix Baumann <felix.bau at gmx.de>
---
target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts | 33 +++++++++++++++++++-----
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts b/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
index cbd6a3ce07..d740d00c6d 100644
--- a/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
+++ b/target/linux/ramips/dts/mt7621_asus_rt-ax53u.dts
@@ -63,6 +63,11 @@
&nand {
status = "okay";
+ mediatek,nmbm;
+ mediatek,bmt-remap-range =
+ <0x000000 0x7e0000>,
+ <0x35e0000 0x7800000>;
+
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@@ -110,13 +115,22 @@
};
partition at 3e0000 {
- label = "kernel";
- reg = <0x3e0000 0x400000>;
- };
+ label = "firmware";
+ reg = <0x3e0000 0x3200000>;
+
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- partition at 7e0000 {
- label = "ubi";
- reg = <0x7e0000 0x2e00000>;
+ partition at 0 {
+ label = "kernel";
+ reg = <0x0 0x400000>;
+ };
+
+ partition at 400000 {
+ label = "ubi";
+ reg = <0x400000 0x2e00000>;
+ };
};
partition at 35e0000 {
@@ -124,7 +138,12 @@
reg = <0x35e0000 0x3200000>;
};
- /* Last 8M possibly store the bad block table */
+ partition at 67e0000 {
+ label = "jffs2";
+ reg = <0x67e0000 0x1020000>;
+ };
+
+ /* Last 8M are reserved for NMBM management (bad blocks) */
};
};
More information about the lede-commits
mailing list