summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiji Yang2025-07-08 12:33:11 +0000
committerDaniel Golle2025-07-19 01:59:15 +0000
commitce659cba146eb3709fc2362c1540d03574e96c2c (patch)
tree53ea247e4d280e74492baae747457e2058af00af
parent41a9c9de66a7a010bb4850753bb7f824bf17decc (diff)
downloadopenwrt-ce659cba146eb3709fc2362c1540d03574e96c2c.tar.gz
uboot-mediatek: fix mt7622 rfb1 build
Add back the default LK image header to generate u-boot-mtk.bin. This is the default behavior before u-boot v2022.01. If "u-boot-mtk.bin" doesn't boot, please try "u-boot.bin" and report it. Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
-rw-r--r--package/boot/uboot-mediatek/patches/408-arm-mediatek-add-back-mt7622-LK-image-header.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/408-arm-mediatek-add-back-mt7622-LK-image-header.patch b/package/boot/uboot-mediatek/patches/408-arm-mediatek-add-back-mt7622-LK-image-header.patch
new file mode 100644
index 0000000000..c8eefe7979
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/408-arm-mediatek-add-back-mt7622-LK-image-header.patch
@@ -0,0 +1,24 @@
+From 1845b514511398cc0ba219a47958f078a2f7f67d Mon Sep 17 00:00:00 2001
+From: Shiji Yang <yangshiji66@outlook.com>
+Date: Tue, 8 Jul 2025 19:50:53 +0800
+Subject: [PATCH] arm: mediatek: add back mt7622 LK image header
+
+The LK image header was lost since commit df3ab898f644
+("arm: mediatek: merge board Kconfigs into mach-mediatek").
+
+Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
+---
+ arch/arm/mach-mediatek/Kconfig | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/mach-mediatek/Kconfig
++++ b/arch/arm/mach-mediatek/Kconfig
+@@ -158,7 +158,7 @@ config MTK_BROM_HEADER_INFO
+ string
+ default "media=nor" if TARGET_MT8518 || TARGET_MT8512 || TARGET_MT7629
+ default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8183
+- default "lk=1" if TARGET_MT7623
++ default "lk=1" if TARGET_MT7622 || TARGET_MT7623
+
+ config MTK_TZ_MOVABLE
+ select ARCH_MISC_INIT