Skip to content

Commit a31aba6

Browse files
committed
labs/sysdev-u-boot-beagleplay: use absolute paths for ATF and DM make parameters
In the version of U-Boot used in this lab, the ATF and DM make parameters are interpreted as relative to the build directory, and not the current directory. This causes the build to produce broken images that contain neither TF-A nor the DM firmware. Fix this build command by passing ATF and DM as absolute paths instead of relative ones. Signed-off-by: Romain Gantois <[email protected]>
1 parent 72251b4 commit a31aba6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

labs/sysdev-u-boot-beagleplay/sysdev-u-boot-beagleplay.tex

+6-6
Original file line numberDiff line numberDiff line change
@@ -345,18 +345,18 @@ \section{Configure U-boot for the A53 Processor}
345345
to the makefile:
346346
347347
\begin{itemize}
348-
\item The path to the Trusted Firmware (TF-A):
349-
\code{ATF=../arm-trusted-firmware/build/k3/lite/release/bl31.bin}
350-
\item The path to the Device Management Firmware (DM) which is included
348+
\item The absolute path to the Trusted Firmware (TF-A):
349+
\code{ATF=$(realpath ../arm-trusted-firmware/build/k3/lite/release/bl31.bin)}
350+
\item The absolute path to the Device Management Firmware (DM) which is included
351351
by the \code{ti-linux-firmware} package we downloaded before:
352-
\code{DM=../ti-linux-firmware/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f}
352+
\code{DM=$(realpath ../ti-linux-firmware/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f)}
353353
\item As usual, do not forget to specify the output directory:
354354
\code{O=../build_uboot/a53}
355355
\end{itemize}
356356
357357
\begin{bashinput}
358-
$ make ATF=../arm-trusted-firmware/build/k3/lite/release/bl31.bin \
359-
DM=../ti-linux-firmware/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f \
358+
$ make ATF=$(realpath ../arm-trusted-firmware/build/k3/lite/release/bl31.bin) \
359+
DM=$(realpath ../ti-linux-firmware/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f) \
360360
O=../build_uboot/a53
361361
\end{bashinput}
362362
\end{enumerate}

0 commit comments

Comments
 (0)