[bootlin/training-materials updates] master: Embedded-linux: build kernel using a patch (8760b9cf)
Michael Opdenacker
michael.opdenacker at bootlin.com
Thu Jan 19 17:59:55 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/8760b9cf2d4a11e8ce78257fcb284d508f1aedae
>---------------------------------------------------------------
commit 8760b9cf2d4a11e8ce78257fcb284d508f1aedae
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Thu Jan 19 17:59:55 2023 +0100
Embedded-linux: build kernel using a patch
That's much less time consuming than cloning a local tree,
and easier to set up.
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
8760b9cf2d4a11e8ce78257fcb284d508f1aedae
labs/sysdev-buildroot/sysdev-buildroot.tex | 13 +++++++------
.../sysdev-system-integration/sysdev-system-integration.tex | 5 ++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/labs/sysdev-buildroot/sysdev-buildroot.tex b/labs/sysdev-buildroot/sysdev-buildroot.tex
index 67cab58b..80913255 100644
--- a/labs/sysdev-buildroot/sysdev-buildroot.tex
+++ b/labs/sysdev-buildroot/sysdev-buildroot.tex
@@ -60,18 +60,20 @@ are:
\section{Board specific configuration}
-As we will want Buildroot to build a kernel with a custom configuration
-and a custom filesystem, let's add our own subdirectory under
+As we will want Buildroot to build a kernel with a custom configuration,
+and our custom patch, so let's add our own subdirectory under
\code{board}:
\begin{bashinput}
mkdir -p board/bootlin/training
\end{bashinput}
-Then, copy your kernel configuration:
+Then, copy your kernel configuration and kernel patch:
\begin{bashinput}
cp ../../kernel/linux/.config board/bootlin/training/linux.config
+cp ../../kernel/linux/0001-Custom-DTS-for-Bootlin-lab.patch \
+ board/bootlin/training/
\end{bashinput}
We will configure Buildroot to use this kernel configuration.
@@ -144,9 +146,8 @@ button whenever you need more details about a given option:
\item \code{Kernel}
\begin{itemize}
\item Enable \code{Linux Kernel}
- \item Set \code{Kernel version} to \code{Custom Git repository}
- \item Set \code{URL of custom repository} to \code{file://$(HOME)/__SESSION_NAME__-labs/kernel/linux}
- \item Set \code{Custom repository version} to \code{bootlin-labs}
+ \item Set \code{Kernel version} to \code{Latest version (5.15)}
+ \item Set \code{Custom kernel patches} to \code{board/bootlin/training/0001-Custom-DTS-for-Bootlin-lab.patch}
\item Set \code{Kernel configuration} to \code{Using a custom (def)config file})
\item Set \code{Configuration file path} to \code{board/bootlin/training/linux.config}
\item Select \code{Build a Device Tree Blob (DTB)}
diff --git a/labs/sysdev-system-integration/sysdev-system-integration.tex b/labs/sysdev-system-integration/sysdev-system-integration.tex
index e5567dfe..a166c705 100644
--- a/labs/sysdev-system-integration/sysdev-system-integration.tex
+++ b/labs/sysdev-system-integration/sysdev-system-integration.tex
@@ -64,9 +64,8 @@ Configure Buildroot as follows:
\item \code{Kernel}
\begin{itemize}
\item Enable \code{Linux Kernel}
- \item Set \code{Kernel version} to \code{Custom Git repository}
- \item Set \code{URL of custom repository} to \code{file://$(HOME)/__SESSION_NAME__-labs/kernel/linux}
- \item Set \code{Custom repository version} to \code{bootlin-labs}
+ \item Set \code{Kernel version} to \code{Latest version (5.15)}
+ \item Set \code{Custom kernel patches} to \code{board/bootlin/training/0001-Custom-DTS-for-Bootlin-lab.patch}
\item Set \code{Kernel configuration} to \code{Using a custom (def)config file})
\item Set \code{Configuration file path} to \code{board/bootlin/training/linux.config}
\item Select \code{Build a Device Tree Blob (DTB)}
More information about the training-materials-updates
mailing list