summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2021-08-14 09:49:01 +0300
committerTom Rini <trini@konsulko.com>2021-09-11 03:10:20 +0300
commit7d67334dfe9ce6a9f5ef3e9b95dd87ef482002b0 (patch)
tree5746715b69127eaa996d13a79b02c4487744e59e /tools
parent7ca1af635ac7a323f2715e6478173f3c8eb8c413 (diff)
downloadu-boot-7d67334dfe9ce6a9f5ef3e9b95dd87ef482002b0.tar.xz
tools: k3_fit_atf: Fix DM binary FIT load addresses
The DM binary runs on the MCU R5F Core0 after R5 SPL on J721E and J7200 SoCs. The binary is built alongside the TFA, OPTEE and A72 SPL binaries and included in the tispl.bin FIT image. The R5 SPL loads the DM binary at 0xA0000000 address, based on the value used in the FIT image build script. The DM binary though is an ELF image and not a regular binary file, and so is processed further to load the actual program segments using the U-Boot's standard ELF loader library. The DM binary does leverage a certain portion of DDR for its program segments, and typically reserves 16 MB of DDR at 0xA0000000 with the 1st MB used for IPC between Linux and the remote processor, and remaining memory for firmware segments. This can cause an incomplete loading of the program segments if the DM binary is larger than 1 MB, due to overlap of the initial loaded binary and the actual program segments. Fix this by using the address 0x89000000, which matches the current "addr_mcur5f0_0load" env variable used by R5 SPL before the DM firmware inclusion into the tispl.bin. Fixes: df5363a67f35 ("tools: k3_fit_atf: add DM binary to the FIT image") Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/k3_fit_atf.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/k3_fit_atf.sh b/tools/k3_fit_atf.sh
index 3a476ced98..7bc07ad074 100755
--- a/tools/k3_fit_atf.sh
+++ b/tools/k3_fit_atf.sh
@@ -67,8 +67,8 @@ cat << __HEADER_EOF
arch = "arm32";
compression = "none";
os = "DM";
- load = <0xa0000000>;
- entry = <0xa0000000>;
+ load = <0x89000000>;
+ entry = <0x89000000>;
};
spl {
description = "SPL (64-bit)";