File 0023-configs-rpi_arm64-build-position-in.patch of Package u-boot
From cc9c514ae9595dd34b477bac4742259cdc54c1b6 Mon Sep 17 00:00:00 2001 From: "Ivan T. Ivanov" <iivanov@suse.de> 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 <mail@jens-maus.de> Tested by: Darko Alavanja <darko.alavanja@konsulko.com> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> Signed-off-by: Matthias Brugger <mbrugger@suse.com> --- 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 1107fd11de8..ab0008a3ba6 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