[bootlin/training-materials updates] master: Boot time labs: simplify kernel / u-boot compile instructions (f165d819)
Michael Opdenacker
michael.opdenacker at bootlin.com
Tue Apr 6 23:00:42 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/f165d819489262c02112ab95b98d0272b1ad8185
>---------------------------------------------------------------
commit f165d819489262c02112ab95b98d0272b1ad8185
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Tue Apr 6 22:59:50 2021 +0200
Boot time labs: simplify kernel / u-boot compile instructions
- By temporarily using the Ubuntu cross-toolchain
as the Buildroot one is not ready yet.
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
f165d819489262c02112ab95b98d0272b1ad8185
.../boot-time-build-bootloader.tex | 21 ++-------------------
.../boot-time-build-kernel-and-start-system.tex | 6 +-----
2 files changed, 3 insertions(+), 24 deletions(-)
diff --git a/labs/boot-time-build-bootloader/boot-time-build-bootloader.tex b/labs/boot-time-build-bootloader/boot-time-build-bootloader.tex
index 82b85485..1c8f0b10 100644
--- a/labs/boot-time-build-bootloader/boot-time-build-bootloader.tex
+++ b/labs/boot-time-build-bootloader/boot-time-build-bootloader.tex
@@ -15,31 +15,14 @@ git checkout v2021.01
\section{Compiling environment}
-If the previous Buildroot lab is already over, we can use the
-toolchain it built to compile our bootloader and kernel:
-
-\begin{verbatim}
-export PATH=$HOME/boot-time-labs/rootfs/buildroot/output/host/bin:$PATH
-export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf-
-\end{verbatim}
-
-Otherwise, let's take a cross-compiling toolchain provided by Ubuntu:
+As the previous Buildroot lab is probably not over yet, we will
+use the cross-compiling toolchain provided by Ubuntu:
\begin{verbatim}
sudo apt install gcc-arm-linux-gnueabihf
export CROSS_COMPILE=arm-linux-gnueabihf-
\end{verbatim}
-You will need the same settings when you compile the kernel too, and
-when you recompiling U-Boot and the kernel to optimize them. Let's make
-such settings permanent by adding the below lines at the end of your
-\code{~/.bashrc} file:
-
-\begin{verbatim}
-export PATH=$HOME/boot-time-labs/rootfs/buildroot/output/host/bin:$PATH
-export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf-
-\end{verbatim}
-
\section{Configuring U-Boot}
Let's use a ready-made U-Boot configuration for our hardware.
diff --git a/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex b/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
index 14c072f4..d333d321 100644
--- a/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
+++ b/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
@@ -49,15 +49,11 @@ You need the same \code{PATH} and \code{CROSS_COMPILE} environment
variables as when you compiled U-Boot, plus the \code{ARCH} one that
corresponds to the target architecture.
-So, add the below line at the end of your \code{~/.bashrc} file:
-
\begin{verbatim}
+export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
\end{verbatim}
-Now source this file (\code{source ~/.bashrc}) in the current terminal,
-or start a new terminal to get all needed variables.
-
\section{Adding support for the 4.3" LCD cape}
To support using the 4.3" LCD cape, all we need to do is declare and
More information about the training-materials-updates
mailing list