[bootlin/training-materials updates] master: labs/sysdev-u-boot-stm32: document workaround for TF-A (e5bd4b5c)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Nov 17 17:29:08 CET 2022


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/e5bd4b5c359e3e4586abf90c16c4bc1033e60850

>---------------------------------------------------------------

commit e5bd4b5c359e3e4586abf90c16c4bc1033e60850
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Nov 17 17:27:29 2022 +0100

    labs/sysdev-u-boot-stm32: document workaround for TF-A
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

e5bd4b5c359e3e4586abf90c16c4bc1033e60850
 labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex b/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
index 78be7134..a54b456c 100644
--- a/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
+++ b/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
@@ -200,6 +200,27 @@ Several configuration parameters have to be passed to the Makefile:
       \code{BL33=../u-boot/u-boot-nodtb.bin}
 \end{itemize}
 
+{\bf Important note}: the version of TF-A that we currently use
+fails to build with gcc versions greater than 11.2, and our toolchain
+is based on gcc 11.3. To compile TF-A binaries, we will need to use
+a different toolchain, until this issue is fixed in upstream TF-A.
+
+So, let's use a ready-made Bootlin toolchain with gcc 10.3, but just
+for building TF-A:
+
+\begin{bashinput}
+$ cd $HOME/x-tools
+$ wget https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--stable-2021.11-1.tar.bz2
+$ tar xf armv7-eabihf--uclibc--stable-2021.11-1.tar.bz2
+$ cd armv7-eabihf--uclibc--stable-2021.11-1
+$ ./relocate-sdk.sh
+$ export PATH=$HOME/x-tools/armv7-eabihf--uclibc--stable-2021.11-1/bin:$PATH
+\end{bashinput}
+
+Then get back to the
+\code{$HOME/__SESSION_NAME__-labs/bootloader/trusted-firmware-a/}
+directory.
+
 We can now generate the \code{bl32}, \code{dtb}, and \code{fip} targets
 with a single command line:
 \begin{bashinput}




More information about the training-materials-updates mailing list