From 12d479d01849c164020e17c3ae921f974b96372d Mon Sep 17 00:00:00 2001 From: "Ivan T. Ivanov" Date: Tue, 23 Jan 2024 10:07:59 +0200 Subject: [PATCH] configs: rpi_arm64: build position independent code Latest RPi5 EEPROM firmware versions after "DATE: 2023/10/30", has changed kernel load address from 0x80000 to 0x200000 which break boot process. Switch to position independent code to be able to boot the same binary on top of different EEPROM firmware versions. Tested on: Raspberry Pi 5 Model B Rev 1.0 Raspberry Pi 4 Model B Rev 1.1 Raspberry Pi 3 Model B Plus Rev 1.3 Raspberry Pi Zero 2 W Rev 1.0 Raspberry Pi 2 Model B Rev 1.2 Raspberry Pi Compute Module 4 Rev 1.0 Raspberry Pi Compute Module 3 Rev 1.0 Tested-by: Jens Maus Tested-by: Darko Alavanja Signed-off-by: Ivan T. Ivanov Signed-off-by: Matthias Brugger --- configs/rpi_arm64_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/rpi_arm64_defconfig b/configs/rpi_arm64_defconfig index 11ede9435d..e4c4aef9a4 100644 --- a/configs/rpi_arm64_defconfig +++ b/configs/rpi_arm64_defconfig @@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_BCM283X=y -CONFIG_TEXT_BASE=0x00080000 +CONFIG_POSITION_INDEPENDENT=y CONFIG_TARGET_RPI_ARM64=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x7fffe30 -- 2.39.5