[bootlin/training-materials updates] master: sysdev: slides: flash-filesystems: remove details about MTD partioning (8844ea04)

Luca Ceresoli luca.ceresoli at bootlin.com
Sat Feb 4 00:35:05 CET 2023


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

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

commit 8844ea0416cbb8cddbd758c091c0c02aa6ae7a9c
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Fri Feb 3 19:09:53 2023 +0100

    sysdev: slides: flash-filesystems: remove details about MTD partioning
    
    Remove the gory details of the Linux and U-Boot variables syntax and the
    detailed kernel log. As a consequence it become quite natural to move
    mentioning the 'mtdparts' variables to the first slides and move on the
    seconds slide the info on how partitions are seen on Linux.
    
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


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

8844ea0416cbb8cddbd758c091c0c02aa6ae7a9c
 slides/sysdev-flash-filesystems/kernel-mtd-log.svg | 116 ---------------------
 .../sysdev-flash-filesystems.tex                   |  38 +++----
 2 files changed, 14 insertions(+), 140 deletions(-)

diff --git a/slides/sysdev-flash-filesystems/kernel-mtd-log.svg b/slides/sysdev-flash-filesystems/kernel-mtd-log.svg
deleted file mode 100644
index d8e07d17..00000000
--- a/slides/sysdev-flash-filesystems/kernel-mtd-log.svg
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="1030.6548"
-   height="225.99998"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.92.3 (2405546, 2018-03-11)"
-   sodipodi:docname="kernel-mtd-log.svg">
-  <defs
-     id="defs4" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="0.35"
-     inkscape:cx="-86.93511"
-     inkscape:cy="-94.755553"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     fit-margin-top="0.5"
-     fit-margin-left="0.5"
-     fit-margin-right="0.5"
-     fit-margin-bottom="0.5"
-     inkscape:window-width="1364"
-     inkscape:window-height="682"
-     inkscape:window-x="67"
-     inkscape:window-y="27"
-     inkscape:window-maximized="0" />
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title></dc:title>
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(-45.071428,-443.41643)">
-    <rect
-       style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.45052838;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-       id="rect3909"
-       width="1028.2042"
-       height="223.54945"
-       x="46.296692"
-       y="444.64169"
-       ry="10.931514" />
-    <text
-       xml:space="preserve"
-       style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
-       x="67.313004"
-       y="491.52545"
-       id="text2985"><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="491.52545"
-         id="tspan3027"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start">NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="516.80634"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3679">Creating 5 MTD partitions on "<tspan
-   style="fill:#ff0000;fill-opacity:1"
-   id="tspan4493">omap2-nand.0</tspan>":</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="542.08728"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3681">0x000000000000-0x000000080000 : "X-Loader"</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="567.36816"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3683">0x000000080000-0x000000200000 : "U-Boot"</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="592.64905"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3685">0x000000200000-0x000000280000 : "Environment"</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="617.92993"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3687">0x000000280000-0x000000580000 : "Kernel"</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="643.21088"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3689">0x000000580000-0x000020000000 : "File System"</tspan><tspan
-         sodipodi:role="line"
-         x="67.313004"
-         y="668.49176"
-         style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.22472px;line-height:125%;font-family:'Inconsolata';-inkscape-font-specification:'Inconsolata';text-align:start;writing-mode:lr-tb;text-anchor:start"
-         id="tspan3691"> </tspan></text>
-  </g>
-</svg>
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 6a1a1b7a..bcaa359d 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -90,35 +90,25 @@
     \item Specified in the board Device Tree (default partitions, not always relevant)
     \item Specified through the kernel command line
     \end{itemize}
-  \item Each partition becomes a separate MTD device
-    \begin{itemize}
-    \item Different from block device labeling (\code{sda3},
-      \code{mmcblk0p2})
-    \item \code{/dev/mtd1} is the second enumerated partition on the
-      system (either from a single flash chip or from a different one).
-    \item Note that the master MTD device (the device those partitions
-      belong to) is not exposed in \code{/dev}
-    \end{itemize}
+  \item MTD partitions are defined through the \code{mtdparts} variable in
+    the kernel command line
+  \item U-Boot understands the Linux syntax via the \code{mtdparts} and
+    \code{mtdids} variables
   \end{itemize}
 \end{frame}
 
-\begin{frame}[fragile]
-  \frametitle{Defining MTD partitions}
-  \scriptsize
+\begin{frame}
+  \frametitle{MTD partitions on Linux}
   \begin{itemize}
-  \item MTD partitions must start and end at erase block boundaries
-  \item MTD partitions are defined through the kernel command line. Example:\\
-        \code{mtdparts=omap2-nand.0:512k(XLoader)ro,1536k(UBoot)ro,512k(Env),4m(Kernel),-(Root)}\\
-	(\code{omap2-nand.0} is the NAND device name for Linux, check the boot log)
-  \item U-Boot understands the Linux syntax:
-  \begin{verbatim}
-# Association between flash device U-Boot name (nand info) and Linux name
-setenv mtdids nand0=omap2-nand.0
-# Partition definitions
-setenv mtdparts mtdparts=omap2-nand.0:512k(XLoader)ro,1536k(UBoot)ro...
-  \end{verbatim}
+  \item Each partition becomes a separate MTD device
+  \item Different from block device labeling (\code{sda3},
+    \code{mmcblk0p2})
+  \item \code{/dev/mtd0} is the fisrt enumerated partition on the system
+  \item \code{/dev/mtd1} is the second enumerated partition on the system
+    (either from a single flash chip or from a different one).
+  \item Note that the master MTD device (the device those partitions
+    belong to) is not exposed in \code{/dev}
   \end{itemize}
-  \includegraphics[height=0.35\textheight]{slides/sysdev-flash-filesystems/kernel-mtd-log.pdf}
 \end{frame}
 
 \begin{frame}[fragile]




More information about the training-materials-updates mailing list