[openwrt/openwrt] uboot-mediatek: fix mt7622 rfb1 build

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 18 18:59:48 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ce659cba146eb3709fc2362c1540d03574e96c2c

commit ce659cba146eb3709fc2362c1540d03574e96c2c
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Tue Jul 8 20:33:11 2025 +0800

    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 at outlook.com>
---
 ...-mediatek-add-back-mt7622-LK-image-header.patch | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

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 at 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 at 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




More information about the lede-commits mailing list