]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: renesas: Set CONFIG_SYS_TEXT_BASE=0x0 on R-Car Gen3
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 13 Jun 2021 20:41:09 +0000 (22:41 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 8 Aug 2021 10:27:04 +0000 (12:27 +0200)
Since R-Car Gen3 already enables position independent build, also set
CONFIG_SYS_TEXT_BASE=0x0 to finalize the switch. This is possible since
534f0fbd65 ("arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y")
fixed current env_get_char() crash with CONFIG_SYS_TEXT_BASE=0x0 .

This change permits us to start U-Boot from any location in DRAM instead
of specific TEXT_BASE.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
configs/rcar3_salvator-x_defconfig

index ab996dd844ef62538a6a09ceec0e4cea2febd1d2..7bebdf03f9c9a0098ddac2ec2361f5e2ddb76ef9 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_CPU_INIT=y
 CONFIG_ARCH_RMOBILE=y
-CONFIG_SYS_TEXT_BASE=0x50000000
+CONFIG_SYS_TEXT_BASE=0x0
 CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_OFFSET=0xFFFE0000
 CONFIG_DM_GPIO=y