[bootlin/training-materials updates] master: Embedded Linux: misc improvements (83184e0e)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Feb 24 14:38:24 CET 2021


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

>---------------------------------------------------------------

commit 83184e0e723d419968fcf8ab9831ed842267c945
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Feb 24 14:38:24 2021 +0100

    Embedded Linux: misc improvements
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

83184e0e723d419968fcf8ab9831ed842267c945
 .../initramfs-boot-sequence.dia                    | 102 +++++++++++++--------
 .../sysdev-embedded-linux.tex                      |  14 +--
 .../sysdev-flash-filesystems.tex                   |   6 +-
 .../sysdev-root-filesystem-principles.tex          |   4 +-
 4 files changed, 74 insertions(+), 52 deletions(-)

diff --git a/slides/boot-sequence-initramfs/initramfs-boot-sequence.dia b/slides/boot-sequence-initramfs/initramfs-boot-sequence.dia
index 2c26d055..67907c93 100644
--- a/slides/boot-sequence-initramfs/initramfs-boot-sequence.dia
+++ b/slides/boot-sequence-initramfs/initramfs-boot-sequence.dia
@@ -2,10 +2,10 @@
 <dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
   <dia:diagramdata>
     <dia:attribute name="background">
-      <dia:color val="#ffffff"/>
+      <dia:color val="#ffffffff"/>
     </dia:attribute>
     <dia:attribute name="pagebreak">
-      <dia:color val="#000099"/>
+      <dia:color val="#000099ff"/>
     </dia:attribute>
     <dia:attribute name="paper">
       <dia:composite type="paper">
@@ -37,6 +37,9 @@
     </dia:attribute>
     <dia:attribute name="grid">
       <dia:composite type="grid">
+        <dia:attribute name="dynamic">
+          <dia:boolean val="true"/>
+        </dia:attribute>
         <dia:attribute name="width_x">
           <dia:real val="1"/>
         </dia:attribute>
@@ -53,7 +56,7 @@
       </dia:composite>
     </dia:attribute>
     <dia:attribute name="color">
-      <dia:color val="#d8e5e5"/>
+      <dia:color val="#d8e5e5ff"/>
     </dia:attribute>
     <dia:attribute name="guides">
       <dia:composite type="guides">
@@ -61,8 +64,27 @@
         <dia:attribute name="vguides"/>
       </dia:composite>
     </dia:attribute>
+    <dia:attribute name="display">
+      <dia:composite type="display">
+        <dia:attribute name="antialiased">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+        <dia:attribute name="snap-to-grid">
+          <dia:boolean val="false"/>
+        </dia:attribute>
+        <dia:attribute name="snap-to-object">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+        <dia:attribute name="show-grid">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+        <dia:attribute name="show-connection-points">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+      </dia:composite>
+    </dia:attribute>
   </dia:diagramdata>
-  <dia:layer name="Arrière-plan" visible="true" active="true">
+  <dia:layer name="Arrière-plan" visible="true" connectable="true" active="true">
     <dia:object type="Standard - Box" version="0" id="O0">
       <dia:attribute name="obj_pos">
         <dia:point val="17,11.05"/>
@@ -83,10 +105,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#868686"/>
+        <dia:color val="#868686ff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#e5e5e5"/>
+        <dia:color val="#e5e5e5ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -115,10 +137,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#d9cb2f"/>
+        <dia:color val="#d9cb2fff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#fff8a8"/>
+        <dia:color val="#fff8a8ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -147,10 +169,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#d9cb2f"/>
+        <dia:color val="#d9cb2fff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#fff8a8"/>
+        <dia:color val="#fff8a8ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -179,10 +201,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#d9cb2f"/>
+        <dia:color val="#d9cb2fff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#fff8a8"/>
+        <dia:color val="#fff8a8ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -196,12 +218,12 @@
         <dia:point val="28.85,18.9"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="26.965,18.1125;30.735,19.1"/>
+        <dia:rectangle val="21.8912,17.892;35.8397,19.2236"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#initramfs#</dia:string>
+            <dia:string>#Intermediate root filesystem (initramfs)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="Latin Modern Sans" style="0" name="Courier"/>
@@ -213,7 +235,7 @@
             <dia:point val="28.85,18.9"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -229,7 +251,7 @@
         <dia:point val="28.95,12.8"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="28.0012,12.0125;29.8987,13"/>
+        <dia:rectangle val="28.0912,11.8399;29.8087,13.0515"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -246,7 +268,7 @@
             <dia:point val="28.95,12.8"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -262,7 +284,7 @@
         <dia:point val="29,14.1996"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="18.3313,13.4699;39.6909,19.1865"/>
+        <dia:rectangle val="20.2375,13.3203;37.7625,19.1976"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -284,7 +306,7 @@ Mounts the root filesystem and switches to it
             <dia:point val="29,14.1996"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -300,7 +322,7 @@ Mounts the root filesystem and switches to it
         <dia:point val="28.96,6.2275"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="27.4099,5.44;30.5101,6.4275"/>
+        <dia:rectangle val="27.7,5.26738;30.22,6.47896"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -317,7 +339,7 @@ Mounts the root filesystem and switches to it
             <dia:point val="28.96,6.2275"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -333,7 +355,7 @@ Mounts the root filesystem and switches to it
         <dia:point val="29.215,1.1675"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="26.5862,0.38;31.8438,1.3675"/>
+        <dia:rectangle val="27.08,0.207383;31.35,1.41896"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -350,7 +372,7 @@ Mounts the root filesystem and switches to it
             <dia:point val="29.215,1.1675"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -366,7 +388,7 @@ Mounts the root filesystem and switches to it
         <dia:point val="28.9962,2.4475"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="19.8692,1.74;38.1232,3.58"/>
+        <dia:rectangle val="21.2125,1.56815;36.7799,3.63546"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -384,7 +406,7 @@ Loads DTB + kernel to RAM, starts the kernel#</dia:string>
             <dia:point val="28.9962,2.4475"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -400,7 +422,7 @@ Loads DTB + kernel to RAM, starts the kernel#</dia:string>
         <dia:point val="28.8513,7.4875"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="19.0541,6.78;38.6485,9.5725"/>
+        <dia:rectangle val="20.9363,6.60815;36.7663,9.62796"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -419,7 +441,7 @@ Starts the /init executable if found#</dia:string>
             <dia:point val="28.8513,7.4875"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -435,7 +457,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="29,4.1"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="28.6382,4.05;29.3618,5.2118"/>
+        <dia:rectangle val="28.6382,4.05;29.3618,5.15"/>
       </dia:attribute>
       <dia:attribute name="conn_endpoints">
         <dia:point val="29,4.1"/>
@@ -463,7 +485,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="29,10.1"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="28.6382,10.05;29.3618,11.8118"/>
+        <dia:rectangle val="28.6382,10.05;29.3618,11.75"/>
       </dia:attribute>
       <dia:attribute name="conn_endpoints">
         <dia:point val="29,10.1"/>
@@ -506,10 +528,10 @@ Starts the /init executable if found#</dia:string>
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#868686"/>
+        <dia:color val="#868686ff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#e5e5e5"/>
+        <dia:color val="#e5e5e5ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -538,10 +560,10 @@ Starts the /init executable if found#</dia:string>
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#d9cb2f"/>
+        <dia:color val="#d9cb2fff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#fff8a8"/>
+        <dia:color val="#fff8a8ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -555,7 +577,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="29.05,24.7496"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="25.784,23.9621;32.316,24.9496"/>
+        <dia:rectangle val="26.335,23.7725;31.765,25.0112"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -572,7 +594,7 @@ Starts the /init executable if found#</dia:string>
             <dia:point val="29.05,24.7496"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -588,7 +610,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="29,22.175"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="26.895,21.3875;31.105,22.375"/>
+        <dia:rectangle val="27.1462,21.2149;30.8537,22.4265"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -605,7 +627,7 @@ Starts the /init executable if found#</dia:string>
             <dia:point val="29,22.175"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -621,7 +643,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="28.9362,23.2725"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="24.4821,22.565;33.3903,23.4525"/>
+        <dia:rectangle val="25.2912,22.3932;32.5812,23.508"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -638,7 +660,7 @@ Starts the /init executable if found#</dia:string>
             <dia:point val="28.9362,23.2725"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -654,7 +676,7 @@ Starts the /init executable if found#</dia:string>
         <dia:point val="29,19.3"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="28.6711,19.2486;29.3944,21.1868"/>
+        <dia:rectangle val="28.668,19.2486;29.3913,21.1264"/>
       </dia:attribute>
       <dia:attribute name="conn_endpoints">
         <dia:point val="29,19.3"/>
diff --git a/slides/sysdev-embedded-linux/sysdev-embedded-linux.tex b/slides/sysdev-embedded-linux/sysdev-embedded-linux.tex
index 718f1bfa..a2f23ab7 100644
--- a/slides/sysdev-embedded-linux/sysdev-embedded-linux.tex
+++ b/slides/sysdev-embedded-linux/sysdev-embedded-linux.tex
@@ -382,9 +382,8 @@ met:
   \begin{itemize}
   \item Very small memory footprint ssh server for embedded systems
   \item Satisfies most needs. Both client and server!
-  \item Size: 110 KB, statically compiled with uClibc on x86.\\
-    (OpenSSH client and server: approx 1200 KB, dynamically compiled
-    with glibc on x86)
+  \item Size: 204 KB, dynamically compiled with musl on ARM\\
+        (Buildroot 2020.11 with Bootlin musl toolchain)
   \item Useful to:
     \begin{itemize}
     \item Get a remote console on the target device
@@ -562,7 +561,7 @@ met:
         handling, etc.
       \item Allows to use any existing X11 application or library
       \end{itemize}
-    \item Actively developed and maintained.
+    \item Still maintained, but now legacy.
     \item X11 license
     \item \url{https://www.x.org}
     \end{itemize}
@@ -600,15 +599,15 @@ met:
   \begin{columns}[T]
     \column{0.8\textwidth}
     \begin{itemize}
-    \item Intended to be a simpler replacement for X
+    \item A simpler replacement for X
     \item {\em Wayland is a protocol for a compositor to talk to
     its clients as well as a C library implementation of that protocol.}
     \item Weston: a minimal and fast reference implementation
           of a Wayland compositor, and is suitable for many embedded
           and mobile use cases.
     \item Most graphical toolkits (Gtk, Qt, EFL...) support Wayland now.
-    \item More and more desktop distributions support it: Fedora,
-          Debian, but Ubuntu not yet.
+    \item Most desktop distributions support it: Fedora, Debian, Ubuntu
+          (from 21.04 on)
     \item \url{https://en.wikipedia.org/wiki/Wayland_(display_server_protocol)}
     \end{itemize}
     \column{0.2\textwidth}
@@ -695,6 +694,7 @@ met:
     \item Wayland
     \end{itemize}
   \item Multiplatform: Linux, MacOS, Windows.
+  \item \url{https://www.qt.io/}
   \end{itemize}
 \end{frame}
 
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 0ae72e92..bf6132df 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -164,10 +164,9 @@
 
 \begin{frame}[fragile]
   \frametitle{Linux: definition of MTD partitions}
-  \small
+  \footnotesize
   The Device Tree is the standard place to define {\em default} MTD partitions
-  and MTD device properties (such as ECC) for platforms with Device Tree support.\\
-  Example from \kfile{arch/arm/boot/dts/omap3-overo-base.dtsi}:
+  and MTD device properties (such as ECC) for platforms with Device Tree support.
 \begin{minted}[fontsize=\scriptsize]{perl}
         nand at 0,0 {
                 linux,mtd-name= "micron,mt29c4g96maz";
@@ -188,6 +187,7 @@
                 };
                 [...]
 \end{minted}
+  Example from \kfile{arch/arm/boot/dts/omap3-overo-base.dtsi}
 \end{frame}
 
 \begin{frame}
diff --git a/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex b/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
index 7f303eb3..2403a69a 100644
--- a/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
+++ b/slides/sysdev-root-filesystem-principles/sysdev-root-filesystem-principles.tex
@@ -132,8 +132,8 @@ Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)
   \item Partitions of flash storage
     \begin{itemize}
     \item \code{root=/dev/mtdblockX}, where \code{X} is the partition number
-    \item \code{/dev/mtdblock3} is the fourth partition of a NAND
-      flash chip (if only one NAND flash chip is present)
+    \item \code{/dev/mtdblock3} is the fourth flash partition in the system
+	  (there could be multiple flash chips)
     \end{itemize}
   \end{itemize}
 \end{frame}




More information about the training-materials-updates mailing list