[bootlin/training-materials updates] master: Kernel labs: use kernel version 5.10.27 (74d40e5f)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:38 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/74d40e5ffea03bec050a6e47537621f89d123ff2
>---------------------------------------------------------------
commit 74d40e5ffea03bec050a6e47537621f89d123ff2
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Mon May 31 10:41:09 2021 +0200
Kernel labs: use kernel version 5.10.27
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
74d40e5ffea03bec050a6e47537621f89d123ff2
labs/kernel-i2c-device-model/kernel-i2c-device-model.tex | 7 +++----
labs/kernel-module-simple/kernel-module-simple.tex | 4 ++--
labs/kernel-serial-iomem/kernel-serial-iomem.tex | 2 +-
.../kernel-sources-exploring.tex | 16 ++++++++++++----
4 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
index cb5ea2bb..c2ed8484 100644
--- a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
+++ b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
@@ -17,11 +17,10 @@ device/driver match.
\section{Setup}
Go to the \code{~/linux-kernel-labs/src/linux} directory. Check out the
-\code{5.11.y} branch.
+\code{5.10.bootlin} branch.
-Now create a new \code{nunchuk} branch starting from the
-\code{5.11.y} branch, for your upcoming work on the Nunchuk
-driver.
+Now create a new \code{nunchuk} branch starting from this branch,
+for your upcoming work on the Nunchuk driver.
During this lab, we will start to implement a driver for a
Nunchuk I2C device, but at this stage we won't need to connect
diff --git a/labs/kernel-module-simple/kernel-module-simple.tex b/labs/kernel-module-simple/kernel-module-simple.tex
index 16c0efb9..f2830fb0 100644
--- a/labs/kernel-module-simple/kernel-module-simple.tex
+++ b/labs/kernel-module-simple/kernel-module-simple.tex
@@ -104,7 +104,7 @@ As we are going to make changes to the kernel sources, first create a
special branch for such changes:
\begin{verbatim}
-git checkout 5.11.y
+git checkout 5.10.bootlin
git checkout -b hello
\end{verbatim}
@@ -149,7 +149,7 @@ from the commits between your branch and another branch, usually the
one you started from:
\begin{verbatim}
-git format-patch 5.11.y
+git format-patch 5.10.bootlin
\end{verbatim}
Have a look at the generated file. You can see that its name reused
diff --git a/labs/kernel-serial-iomem/kernel-serial-iomem.tex b/labs/kernel-serial-iomem/kernel-serial-iomem.tex
index 158dc8be..291810bd 100644
--- a/labs/kernel-serial-iomem/kernel-serial-iomem.tex
+++ b/labs/kernel-serial-iomem/kernel-serial-iomem.tex
@@ -22,7 +22,7 @@ is independent from the nunchuk changes, it's best to create a separate
branch!
\begin{verbatim}
-git checkout 5.11.y
+git checkout 5.10.bootlin
git checkout -b uart
\end{verbatim}
diff --git a/labs/kernel-sources-exploring/kernel-sources-exploring.tex b/labs/kernel-sources-exploring/kernel-sources-exploring.tex
index dbfcd003..f491fec9 100644
--- a/labs/kernel-sources-exploring/kernel-sources-exploring.tex
+++ b/labs/kernel-sources-exploring/kernel-sources-exploring.tex
@@ -26,18 +26,26 @@ cd ~/linux-kernel-labs/src/linux
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.10 stable branch, the remote branch
+we are interested in is \code{remotes/stable/linux-5.10.y}.
First, open the \code{Makefile} file just to check the Linux kernel
version that you currently have.
Now, let's create a local branch starting from that remote branch:
\begin{verbatim}
-git checkout -b 5.11.y stable/linux-5.11.y
+git checkout -b 5.10.y stable/linux-5.10.y
\end{verbatim}
-Open \code{Makefile} again and make sure you now have a 5.11.y version.
+Open \code{Makefile} again and make sure you now have a 5.10.y version.
+
+Actually, there is currently a regression in the mainline stable kernel,
+impacting our use of the USB gadget driver we use for networking with
+the host. As a consequence, we will create a branch starting from a particular
+stable release tag before this regression:
+\begin{verbatim}
+git checkout -b 5.10.bootlin v5.10.27
+\end{verbatim}
\section{Exploring the sources manually}
More information about the training-materials-updates
mailing list