[RFC PATCH v1 20/20] bcm2712: enable linux kernel image header
    Oleksii Moisieiev 
    Oleksii_Moisieiev at epam.com
       
    Wed Feb  5 11:15:48 CET 2025
    
    
  
From: Volodymyr Babchuk <volodymyr_babchuk at epam.com>
This change is needed to make OP-TEE operable on RPI5.
This is somewhat convoluted, but in the essence, OP-TEE image is being
loaded at address 0x80000 and we can't change that. Problem is that
last versions (like 2024/06/05) of RPI5 firmware tries to load
non-kernel images to the same address 0x80000, thus, overwriting
OP-TEE image.
This patch enables Linux kernel image for U-Boot, so firmware will
treat U-Boot as a kernel image, placing it at different address,
namely at 0x200000.
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk at epam.com>
Reviewed-by: Oleksii Moisieiev <oleksii_moisieiev at epam.com>
Tested-by: Oleksii Moisieiev <oleksii_moisieiev at epam.com>
Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev at epam.com>
---
 arch/arm/mach-bcm283x/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
index c7509146be..9cc8f66de1 100644
--- a/arch/arm/mach-bcm283x/Kconfig
+++ b/arch/arm/mach-bcm283x/Kconfig
@@ -46,8 +46,12 @@ config BCM2711_64B
 
 config BCM2712
 	bool "Broadcom BCM2712 SoC support"
+	select LINUX_KERNEL_IMAGE_HEADER
 	depends on ARCH_BCM283X
 
+config LNX_KRNL_IMG_TEXT_OFFSET_BASE
+	default TEXT_BASE
+
 menu "Broadcom BCM283X family"
 	depends on ARCH_BCM283X
 
-- 
2.34.1
    
    
More information about the U-Boot
mailing list