[bootlin/training-materials updates] master: labs: remove leftover SAMA5D3 things (f1ecb671)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Sep 22 15:16:26 CEST 2022


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

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

commit f1ecb67198c76275e35cac9630f24caa6388d6be
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu Sep 22 15:16:26 2022 +0200

    labs: remove leftover SAMA5D3 things
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

f1ecb67198c76275e35cac9630f24caa6388d6be
 common/sysdev-kernel-cross-compiling-sama5d3.tex   | 74 ----------------------
 .../sysdev-kernel-cross-compiling.tex              | 10 ---
 2 files changed, 84 deletions(-)

diff --git a/common/sysdev-kernel-cross-compiling-sama5d3.tex b/common/sysdev-kernel-cross-compiling-sama5d3.tex
deleted file mode 100644
index 277e6ce7..00000000
--- a/common/sysdev-kernel-cross-compiling-sama5d3.tex
+++ /dev/null
@@ -1,74 +0,0 @@
-\section{Flashing the kernel and DTB in NAND flash}
-
-In order to let the kernel boot on the board autonomously, we can
-flash the kernel image and DTB in the NAND flash available on the
-Xplained board.
-
-After storing the first stage bootloader, U-boot and its environment
-variables, we will keep special areas in NAND flash for the DTB
-and Linux kernel images:
-
-\begin{center}
-  \includegraphics[width=\textwidth]{labs/sysdev-kernel-cross-compiling/flash-map.pdf}
-\end{center}
-
-So, let's start by erasing the corresponding 128 KiB of NAND flash
-for the DTB:
-
-% Verbatim doesn't seem to work in this \ifdefstring environment
-
-\begin{ubootinput}
-=> nand erase 0x180000 0x20000 %\rmfamily({\em NAND-offset size})%
-\end{ubootinput}
-
-Then, let's erase the 5 MiB of NAND flash for the kernel image:
-
-% Verbatim doesn't seem to work in this \ifdefstring environment
-\ubootcmd{=> nand erase 0x1a0000 0x500000}
-
-Then, copy the DTB and kernel binaries from TFTP into memory, using the
-same addresses as before.
-
-Then, flash the DTB and kernel binaries:
-
-% Verbatim doesn't seem to work in this \ifdefstring environment
-\begin{ubootinput}
-=> nand write 0x22000000 0x180000 0x20000 %\rmfamily({\em RAM-addr NAND-offset size})%
-=> nand write 0x21000000 0x1a0000 0x500000
-\end{ubootinput}
-
-Power your board off and on, to clear RAM contents. We should now be
-able to load the DTB and kernel image from NAND and boot with:
-
-% Verbatim doesn't seem to work in this \ifdefstring environment
-\begin{ubootinput}
-=> nand read 0x22000000 0x180000 0x20000 %\rmfamily({\em RAM-addr offset size})%
-=> nand read 0x21000000 0x1a0000 0x500000
-=> bootz 0x21000000 - 0x22000000
-\end{ubootinput}
-
-Write a U-Boot script that automates the DTB + kernel download
-and flashing procedure.
-
-You are now ready to modify \code{bootcmd} to boot the board
-from flash. But first, save the settings for booting from \code{tftp}:
-
-% Verbatim doesn't seem to work in this \ifdefstring environment
-\begin{ubootinput}
-=> setenv bootcmdtftp ${bootcmd}
-\end{ubootinput}
-
-This will be useful to switch back to \code{tftp} booting mode
-later in the labs.
-
-Finally, using \code{editenv bootcmd},
-adjust \code{bootcmd} so that the Xplained board starts
-using the kernel in flash.
-
-Now, reset the board to check that it boots
-in the same way from NAND flash. Check that this is really your own version of
-the kernel that's running\footnote{Look at the kernel log. You will find
-the kernel version number as well as the date when it was compiled.
-That's very useful to check that you're not loading an older version
-of the kernel instead of the one that you've just compiled.}.
-
diff --git a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
index e01a54de..1f2dfa11 100644
--- a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
+++ b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
@@ -156,18 +156,8 @@ reset. Reset the board, and customize \code{bootcmd}:
 
 Restart the board to make sure that booting the kernel is now automated.
 
-\ifdefstring{\labboard}{xplained}
-{
-\input{sysdev-kernel-cross-compiling-sama5d3.tex}
-}
-{}
-
-
 \ifdefstring{\labboard}{discovery}
 {
 \input{sysdev-kernel-cross-compiling-stm32mp1.tex}
 }
 {}
-
-
-




More information about the training-materials-updates mailing list