[bootlin/training-materials updates] master: Boot time labs: use the fdtargsaddr and fdtargslen variables (0ac0ad9e)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:39 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/0ac0ad9e1601f13c05d220e858aa1af2d03c3cec
>---------------------------------------------------------------
commit 0ac0ad9e1601f13c05d220e858aa1af2d03c3cec
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Thu Jun 24 17:20:46 2021 +0200
Boot time labs: use the fdtargsaddr and fdtargslen variables
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
0ac0ad9e1601f13c05d220e858aa1af2d03c3cec
labs/boot-time-bootloader/boot-time-bootloader.tex | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/labs/boot-time-bootloader/boot-time-bootloader.tex b/labs/boot-time-bootloader/boot-time-bootloader.tex
index 0554f44d..74d7d332 100644
--- a/labs/boot-time-bootloader/boot-time-bootloader.tex
+++ b/labs/boot-time-bootloader/boot-time-bootloader.tex
@@ -183,11 +183,12 @@ WARN: FDT size > CMD_SPL_WRITE_SIZE
\end{verbatim}
The last thing to do is to store such information in an \code{args} file
-in the FAT partition on the MMC, using the starting RAM address provided
-above and its size (\code{0x8ffeb3ff - 0x8ffd5000}):
+in the FAT partition on the MMC. Through the \code{fdtargsaddr} and
+\code{fdtargsaddr} environment variables, we know where to copy the
+data from and their size:
\begin{verbatim}
-fatwrite mmc 0:1 0x8ffd5000 args 0x163ff
+fatwrite mmc 0:1 ${fdtargsaddr} args ${fdtargslen}
\end{verbatim}
You're ready to go and reboot your board with the SD card inside.
More information about the training-materials-updates
mailing list