[openwrt/openwrt] mediatek: filogic: switch to fitblk for Xiaomi Redmi AX6000
LEDE Commits
lede-commits at lists.infradead.org
Thu Mar 7 23:29:03 PST 2024
981213 pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8d355b870a9d88a052a49005ba2c811bc6810197
commit 8d355b870a9d88a052a49005ba2c811bc6810197
Author: Furong Xu <xfr at outlook.com>
AuthorDate: Thu Mar 7 10:56:18 2024 +0800
mediatek: filogic: switch to fitblk for Xiaomi Redmi AX6000
Use the new fitblk driver.
Run-tested: filogic/mt7986a-xiaomi-redmi-router-ax6000-ubootmod
Signed-off-by: Furong Xu <xfr at outlook.com>
---
.../dts/mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts | 13 ++++++++++++-
.../mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi | 2 +-
.../mediatek/filogic/base-files/lib/upgrade/platform.sh | 6 +++---
3 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts
index 152bbd20f8..a296c768f0 100644
--- a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts
+++ b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000-ubootmod.dts
@@ -8,9 +8,20 @@
compatible = "xiaomi,redmi-router-ax6000-ubootmod", "mediatek,mt7986a";
};
+&chosen {
+ rootdisk = <&ubi_rootdisk>;
+};
+
&partitions {
partition at 580000 {
- label = "ubi";
+ compatible = "linux,ubi";
reg = <0x580000 0x7a80000>;
+ label = "ubi";
+
+ volumes {
+ ubi_rootdisk: ubi-volume-fit {
+ volname = "fit";
+ };
+ };
};
};
diff --git a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
index 4d58fbd2cf..723c4f3296 100644
--- a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
+++ b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
@@ -17,7 +17,7 @@
led-upgrade = &led_status_rgb;
};
- chosen {
+ chosen: chosen {
stdout-path = "serial0:115200n8";
};
diff --git a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
index 526de08161..abb692fb41 100755
--- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
@@ -82,7 +82,8 @@ platform_do_upgrade() {
;;
bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\
- bananapi,bpi-r4)
+ bananapi,bpi-r4|\
+ xiaomi,redmi-router-ax6000-ubootmod)
[ -e /dev/fit0 ] && fitblk /dev/fit0
[ -e /dev/fitrw ] && fitblk /dev/fitrw
bootdev="$(fitblk_get_bootdev)"
@@ -132,8 +133,7 @@ platform_do_upgrade() {
tplink,tl-xdr6086|\
tplink,tl-xdr6088|\
xiaomi,mi-router-ax3000t-ubootmod|\
- xiaomi,mi-router-wr30u-ubootmod|\
- xiaomi,redmi-router-ax6000-ubootmod)
+ xiaomi,mi-router-wr30u-ubootmod)
CI_KERNPART="fit"
nand_do_upgrade "$1"
;;
More information about the lede-commits
mailing list