[bootlin/training-materials updates] master: Boot-time lab: simplify kernel configuration (5b6c23dd)
Michael Opdenacker
michael.opdenacker at bootlin.com
Fri Apr 29 15:04:50 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/5b6c23ddb5c6385a03535a907c95d6da303c7c52
>---------------------------------------------------------------
commit 5b6c23ddb5c6385a03535a907c95d6da303c7c52
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Fri Apr 15 17:28:43 2022 +0200
Boot-time lab: simplify kernel configuration
Also disable the bootdelay
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
5b6c23ddb5c6385a03535a907c95d6da303c7c52
.../boot-time-build-kernel-and-start-system.tex | 36 ++++++++++++++--------
1 file changed, 24 insertions(+), 12 deletions(-)
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 39c82ec8..d5e8e60d 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
@@ -27,18 +27,18 @@ First, let's get the list of branches on our \code{stable} remote tree:
git branch -a
\end{verbatim}
-As we will do our labs with the Linux 5.11 stable branch, the remote branch
-we are interested in is \code{remotes/stable/linux-5.11.y}.
+As we will do our labs with the Linux 5.15 LTS stable branch, the remote branch
+we are interested in is \code{remotes/stable/linux-5.15.y}.
First, open the \code{Makefile} file just to check the Linux kernel
version that you currently have.
-Now, let's check out the \code{5.11.y} branch:
+Now, let's check out the \code{5.15.y} branch:
\begin{verbatim}
-git checkout stable/linux-5.11.y
+git checkout stable/linux-5.15.y
\end{verbatim}
-Open \code{Makefile} again and make sure you now have a 5.11.<n> version.
+Open \code{Makefile} again and make sure you now have a 5.15.<n> version.
\section{Compiling environment}
@@ -102,15 +102,9 @@ For USB support:
\item \kconfigval{CONFIG_USB}{y}
\item \kconfigval{CONFIG_USB_MUSB_HDRC}{y}
\item \kconfigval{CONFIG_USB_MUSB_DSPS}{y}
-\item \kconfigval{CONFIG_MUSB_PIO_ONLY}{y}
-\item \kconfigval{CONFIG_USB_GADGET}{y}\\
- You may wonder why we need this while we're not using USB gadget
- at all. At least in the 5.1 kernel, this setting was required to get some
- of the USB host functionality we needed.
+\item Disable \kconfig{CONFIG_USB_GADGET}
\item \kconfigval{CONFIG_NOP_USB_XCEIV}{y}
\item \kconfigval{CONFIG_AM335X_PHY_USB}{y}
-\item \kconfigval{CONFIG_USB_GPIO_VBUS}{y}
-\item \kconfigval{CONFIG_USB_GADGET_VBUS_DRAW}{500}
\item \kconfigval{CONFIG_USB_CONFIGFS_F_UVC}{y}
\end{itemize}
@@ -202,6 +196,24 @@ saveenv
This saves the environment in a \code{uboot.env} file in the FAT32
partition of the SD card.
+\section{Remove the unnecessary boot delay}
+
+By default, U-Boot leaves you 2 seconds to type a key in the console,
+to reach its command line shell, before attempting to start the
+default boot command, as specified in the \code{bootcmd} environment
+variable.
+
+This is a pure waste of time, as if you type keys early enough, you
+can get to a shell anyway. So, let’s remove this unnecessary delay
+which is too easy to eliminate and which we don’t want to count in
+the original boot time. We don’t want to unnecessarily slow down
+all our tests either.
+
+\begin{verbatim}
+setenv bootdelay 0
+saveenv
+\end{verbatim}
+
\section{Testing time!}
First, connect the USB webcam provided by your instructor, and point it
More information about the training-materials-updates
mailing list