[openwrt/openwrt] ramips: mt7621: switch trx parser to parser_trx from mtdsplit
LEDE Commits
lede-commits at lists.infradead.org
Wed Jun 5 12:15:37 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d529ac5da8c9ddae33ff751de9ebc922d3a1dde8
commit d529ac5da8c9ddae33ff751de9ebc922d3a1dde8
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Wed Mar 27 18:54:47 2024 +0900
ramips: mt7621: switch trx parser to parser_trx from mtdsplit
Switch trx parser to parser_trx of Linux Kernel from mtdsplit_trx to
split firmware partition using model-specific trx magic number on
some Buffalo devices.
This change is tested on Buffalo WSR-2533DHPL.
Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
---
target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts | 2 +-
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts | 2 +-
target/linux/ramips/mt7621/config-6.6 | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
index 7b1cc64b50..4346e4b9d2 100644
--- a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
+++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
@@ -155,7 +155,7 @@
};
partition at 50000 {
- compatible = "openwrt,trx";
+ compatible = "brcm,trx";
label = "firmware";
reg = <0x50000 0xf90000>;
};
diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
index fa90fba3d5..fe6fc6aab5 100644
--- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
+++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
@@ -159,7 +159,7 @@
};
partition at 50000 {
- compatible = "openwrt,trx";
+ compatible = "brcm,trx";
label = "firmware";
reg = <0x50000 0x7c0000>;
};
diff --git a/target/linux/ramips/mt7621/config-6.6 b/target/linux/ramips/mt7621/config-6.6
index a77d868624..e77ea238e7 100644
--- a/target/linux/ramips/mt7621/config-6.6
+++ b/target/linux/ramips/mt7621/config-6.6
@@ -161,6 +161,7 @@ CONFIG_MTD_NAND_ECC_SW_HAMMING=y
CONFIG_MTD_NAND_MT7621=y
CONFIG_MTD_NAND_MTK_BMT=y
# CONFIG_MTD_PARSER_TPLINK_SAFELOADER is not set
+CONFIG_MTD_PARSER_TRX=y
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_RAW_NAND=y
CONFIG_MTD_ROUTERBOOT_PARTS=y
@@ -171,7 +172,6 @@ CONFIG_MTD_SPLIT_FIT_FW=y
CONFIG_MTD_SPLIT_MINOR_FW=y
CONFIG_MTD_SPLIT_SEAMA_FW=y
CONFIG_MTD_SPLIT_TPLINK_FW=y
-CONFIG_MTD_SPLIT_TRX_FW=y
CONFIG_MTD_SPLIT_UIMAGE_FW=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_BEB_LIMIT=20
More information about the lede-commits
mailing list