On 7/15/25 4:49 PM, Lad, Prabhakar wrote:
Hi Tom,

On Tue, Jul 15, 2025 at 3:31 PM Tom Rini <tr...@konsulko.com> wrote:

On Tue, Jul 15, 2025 at 12:11:03PM +0100, Prabhakar wrote:
From: Lad Prabhakar <prabhakar.mahadev-lad...@bp.renesas.com>

For Renesas R-Car Gen3 platforms with CONFIG_POSITION_INDEPENDENT enabled,
override CONFIG_TEXT_BASE to 0x0 in each defconfig. The top-level Makefile
already compensates for our PIE builds by appending:

     OBJCOPYFLAGS_u-boot-elf.srec += --change-addresses=0x50000000

so that the flash_writer and legacy recovery tools still see an SREC load
address of 0x5000_0000. This change prevents the "Program over size Error"
reported by flash_writer when programming PIE U-Boot on these platforms.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad...@bp.renesas.com>
---
  configs/hihope_rzg2_defconfig    | 2 +-
  configs/r8a77970_eagle_defconfig | 2 +-
  configs/r8a77970_v3msk_defconfig | 2 +-
  configs/r8a77990_ebisu_defconfig | 2 +-
  configs/r8a77995_draak_defconfig | 2 +-
  configs/rzg2_beacon_defconfig    | 2 +-
  configs/silinux_ek874_defconfig  | 2 +-
  7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/configs/hihope_rzg2_defconfig b/configs/hihope_rzg2_defconfig
index f5bb28cb0c7..931183cc34b 100644
--- a/configs/hihope_rzg2_defconfig
+++ b/configs/hihope_rzg2_defconfig
@@ -5,7 +5,7 @@ CONFIG_ARCH_RENESAS=y
  CONFIG_RCAR_GEN3=y
  CONFIG_COUNTER_FREQUENCY=16666666
  CONFIG_ARCH_CPU_INIT=y
-CONFIG_TEXT_BASE=0x50000000
+CONFIG_TEXT_BASE=0x0
  CONFIG_ENV_SIZE=0x20000
  CONFIG_ENV_OFFSET=0xFFFE0000
  CONFIG_DEFAULT_DEVICE_TREE="renesas/r8a774a1-hihope-rzg2m-ex"

With POSITION_INDEPENDENT=y the default is 0x0, so on the next resync
these lines will be removed. Please just remove the lines setting them
to 0x50000000, thanks.

I see thank you. Let's drop this patch.
Send a V2 please.

Reply via email to