[bootlin/training-materials updates] master: kernel: porting: Light rewording, mention the ARM 64-bit arch (61bf5504)

Miquel Raynal miquel.raynal at bootlin.com
Fri Jun 25 14:39:48 CEST 2021

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


commit 61bf5504b35faa14ebea0a79fae4583e57316a1f
Author: Miquel Raynal <miquel.raynal at bootlin.com>
Date:   Fri Jun 25 14:38:54 2021 +0200

    kernel: porting: Light rewording, mention the ARM 64-bit arch
    Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>


 .../kernel-porting-content.tex                     | 27 +++++++++++-----------
 .../kernel-porting-title/kernel-porting-title.tex  |  2 +-
 2 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/slides/kernel-porting-content/kernel-porting-content.tex b/slides/kernel-porting-content/kernel-porting-content.tex
index 708b8f48..fbf41019 100644
--- a/slides/kernel-porting-content/kernel-porting-content.tex
+++ b/slides/kernel-porting-content/kernel-porting-content.tex
@@ -14,7 +14,7 @@
     \item For example, some architectures use the Device Tree, some do
-  \item This presentation is focused on the \code{arm} (32 bit) architecture only
+  \item This presentation is mainly focused on the ARM (32-bit) architecture
@@ -23,9 +23,10 @@
   \item In the source tree, each architecture has its own directory
-    \item \kdir{arch/arm} for the ARM architecture
+    \item \kdir{arch/arm} for the ARM 32-bit architecture
+    \item \kdir{arch/arm64} for the ARM 64-bit architecture
-  \item This directory contains generic ARM code
+  \item The \kdir{arch/arm} directory contains generic ARM code
     \item \kreldir{arch/arm}{boot}, \kreldir{arch/arm}{common},
       \kreldir{arch/arm}{configs}, \kreldir{arch/arm}{kernel},
@@ -35,20 +36,18 @@
   \item And many directories for different SoC families
-    \item \code{mach-*} directories: \kreldir{arch/arm}{mach-pxa} for PXA CPUs,
-      \kreldir{arch/arm}{mach-imx} for Freescale iMX CPUs, etc.
+    \item \code{mach-*} directories: \kreldir{arch/arm}{mach-pxa} for PXA SoCs,
+      \kreldir{arch/arm}{mach-imx} for Freescale iMX SoCs, etc. They
+      essentially contain:
-      \item Before the ARM cleanup, these directories contained
-        support for the SoC family (GPIO, clocks, pinmux, power
-        management, interrupt controller, etc.) and for the various
-        boards.
-      \item Nowadays, they contain a lot less code, essentially a
-        small SoC description file, power management and SMP code.
+      \item a small SoC description file
+      \item power management code
+      \item SMP code
-  \item Some CPU types share some code, in directories named
+  \item Some SoC families share some code, in directories named
-  \item Device Tree source files in \kdir{arch/arm/boot/dts}.
+  \item Device Tree source files are in \kdir{arch/arm/boot/dts}
@@ -108,6 +107,8 @@
   \item Modify \kfile{arch/arm/boot/dts/Makefile} to make sure your
     Device Tree gets built as a {\em DTB} during the kernel build.
+  \item Tweak an existing configuration that matches your SoC and save
+    it as \code{<board-name>_defconfig} in \kdir{arch/arm/configs}
   \item If needed, develop the missing device drivers for the devices
     that are on your board outside the SoC.
diff --git a/slides/kernel-porting-title/kernel-porting-title.tex b/slides/kernel-porting-title/kernel-porting-title.tex
index 43fc1266..5918178d 100644
--- a/slides/kernel-porting-title/kernel-porting-title.tex
+++ b/slides/kernel-porting-title/kernel-porting-title.tex
@@ -1 +1 @@
-\section{Porting the Linux Kernel to an ARM Board}
+\section{Porting the Linux kernel to an ARM board}

More information about the training-materials-updates mailing list