[FE training-materials-updates] Flash slides: add color for the mtd dev name in dmesg

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Nov 5 18:47:34 CET 2015


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=0559cebfa19a076a4a7e7dabac60c50ef5f75b57

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

commit 0559cebfa19a076a4a7e7dabac60c50ef5f75b57
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Nov 5 18:47:34 2015 +0100

    Flash slides: add color for the mtd dev name in dmesg
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


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

0559cebfa19a076a4a7e7dabac60c50ef5f75b57
 slides/sysdev-flash-filesystems/kernel-mtd-log.svg | 117 +++++++++++++++++++++
 .../sysdev-flash-filesystems.tex                   |  11 +-
 2 files changed, 118 insertions(+), 10 deletions(-)

diff --git a/slides/sysdev-flash-filesystems/kernel-mtd-log.svg b/slides/sysdev-flash-filesystems/kernel-mtd-log.svg
new file mode 100644
index 0000000..990a0a7
--- /dev/null
+++ b/slides/sysdev-flash-filesystems/kernel-mtd-log.svg
@@ -0,0 +1,117 @@
+<?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.91 r13725"
+   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="423.06489"
+     inkscape:cy="-94.755549"
+     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="0"
+     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;font-size:20.22472px;line-height:125%;font-family:Sans;-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"
+       sodipodi:linespacing="125%"><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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';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:'Courier 10 Pitch';-inkscape-font-specification:'Courier 10 Pitch';text-align:start;writing-mode:lr-tb;text-anchor:start"
+         id="tspan3691" /></text>
+  </g>
+</svg>
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index d90a0e3..59e8148 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -234,16 +234,7 @@ setenv mtdparts mtdparts=omap2-nand.0:512k(X-Loader)ro,1536k(U-Boot)ro,512k(Env)
       \code{nand info} or \code{flinfo}
     \item \code{mtdid}: mtd identifier (should match Linux MTD device
       name). It is displayed when booting the Linux kernel:
-\tiny
-\begin{verbatim}
-NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)
-Creating 5 MTD partitions on "omap2-nand.0":
-0x000000000000-0x000000080000 : "X-Loader"
-0x000000080000-0x000000200000 : "U-Boot"
-0x000000200000-0x000000280000 : "Environment"
-0x000000280000-0x000000580000 : "Kernel"
-0x000000580000-0x000020000000 : "File System"
-\end{verbatim}
+    \includegraphics[width=0.85\textwidth]{slides/sysdev-flash-filesystems/kernel-mtd-log.pdf}\\
     \end{itemize}
   \item \code{mtdparts} defines partitions for the different devices\\
   \code{setenv mtdparts <mtdid>:<partition>[,partition]}\\




More information about the training-materials-updates mailing list