[bootlin/training-materials updates] master: Boot time labs: use the fdtargsaddr and fdtargslen variables (7075289d)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Jun 24 17:20:46 CEST 2021

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


commit 7075289d94508b9e2641af388e5d2f65cf1a5d31
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>


 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
 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:
-fatwrite mmc 0:1 0x8ffd5000 args 0x163ff
+fatwrite mmc 0:1 ${fdtargsaddr} args ${fdtargslen}
 You're ready to go and reboot your board with the SD card inside.

More information about the training-materials-updates mailing list