[bootlin/training-materials updates] master: Embedded Linux: keep only NAND specific commands (813910bc)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Sep 29 12:01:44 CEST 2021


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

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

commit 813910bc39cbff57bc9fc51b91815a681abaecfd
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Sep 29 12:01:44 2021 +0200

    Embedded Linux: keep only NAND specific commands
    
    - To avoid unnecessary details. Never had to use the NOR commands!
    - Don't hesitate to revert if you disagree. No offense taken!
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

813910bc39cbff57bc9fc51b91815a681abaecfd
 .../sysdev-bootloaders-u-boot.tex                  |  35 +++++----------------
 .../sysdev-flash-filesystems.tex                   |   4 +--
 .../ubi-creation-workflow.dia                      | Bin 2114 -> 2110 bytes
 3 files changed, 8 insertions(+), 31 deletions(-)

diff --git a/slides/sysdev-bootloaders-u-boot/sysdev-bootloaders-u-boot.tex b/slides/sysdev-bootloaders-u-boot/sysdev-bootloaders-u-boot.tex
index df18ed9d..0e51bc29 100644
--- a/slides/sysdev-bootloaders-u-boot/sysdev-bootloaders-u-boot.tex
+++ b/slides/sysdev-bootloaders-u-boot/sysdev-bootloaders-u-boot.tex
@@ -165,20 +165,15 @@ Hit any key to stop autoboot:  0
 \end{frame}
 
 \begin{frame}[fragile]
-  \frametitle{Information commands (1)}
-
-\begin{block}{Flash information (NOR and SPI flash)}
+  \frametitle{Information commands}
+\begin{block}{Version details}
 {\tiny
 \begin{verbatim}
-=> flinfo
-DataFlash:AT45DB021
-Nb pages: 1024
-Page Size: 264
-Size= 270336 bytes
-Logical address: 0xC0000000
-Area 0: C0000000 to C0001FFF (RO) Bootstrap
-Area 1: C0002000 to C0003FFF Environment
-Area 2: C0004000 to C0041FFF (RO) U-Boot
+=> version
+U-Boot 2020.04 (May 26 2020 - 16:05:43 +0200)
+
+arm-linux-gcc (crosstool-NG 1.24.0.105_5659366) 9.2.0
+GNU ld (crosstool-NG 1.24.0.105_5659366) 2.34
 \end{verbatim}}
 \end{block}
 
@@ -198,20 +193,6 @@ Device 0: nand0, sector size 128 KiB
 \end{block}
 \end{frame}
 
-\begin{frame}[fragile]
-  \frametitle{Information commands (2)}
-\begin{block}{Version details}
-{\small
-\begin{verbatim}
-=> version
-U-Boot 2020.04 (May 26 2020 - 16:05:43 +0200)
-
-arm-linux-gcc (crosstool-NG 1.24.0.105_5659366) 9.2.0
-GNU ld (crosstool-NG 1.24.0.105_5659366) 2.34
-\end{verbatim}}
-\end{block}
-\end{frame}
-
 \begin{frame}
   \frametitle{Important commands (1)}
   \begin{itemize}
@@ -251,8 +232,6 @@ GNU ld (crosstool-NG 1.24.0.105_5659366) 2.34
   \item \code{mmc}, to initialize and control the MMC subsystem, used
     for SD and microSD cards
   \item \code{nand}, to erase, read and write contents to NAND flash
-  \item \code{erase}, \code{protect}, \code{cp}, to erase, modify
-    protection and write to NOR flash
   \item \code{md}, displays memory contents. Can be useful to check the
     contents loaded in memory, or to look at hardware registers.
   \item \code{mm}, modifies memory contents. Can be useful to modify
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index e5ea874f..b359fa93 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -269,8 +269,7 @@ setenv mtdparts mtdparts=omap2-nand.0:512k(XLoader)ro,1536k(UBoot)ro,512k(Env),4
   \vspace{0.5cm}
   That's required because the Linux name is used in partition definitions.
   \begin{itemize}
-  \item \code{devid}: {\bf U-Boot} device identifier (from
-    \code{nand info} or \code{flinfo})
+  \item \code{devid}: {\bf U-Boot} device identifier (from \code{nand info})
   \item \code{mtdid}: {\bf Linux} mtd identifier. Displayed
     when booting the Linux kernel:
     \includegraphics[width=0.85\textwidth]{slides/sysdev-flash-filesystems/kernel-mtd-log.pdf}\\
@@ -468,7 +467,6 @@ Device 0 bad blocks:
     \item \code{mtdinfo} to get detailed information about an MTD device
     \item \code{flash_erase} to partially or completely erase a given
       MTD device
-    \item \code{flashcp} to write to NOR flash
     \item \code{nandwrite} to write to NAND flash
     \item Flash filesystem image creation tools: \code{mkfs.jffs2},
       \code{mkfs.ubifs}, \code{ubinize}, etc.
diff --git a/slides/sysdev-flash-filesystems/ubi-creation-workflow.dia b/slides/sysdev-flash-filesystems/ubi-creation-workflow.dia
index c766d997..e1dc8b77 100644
Binary files a/slides/sysdev-flash-filesystems/ubi-creation-workflow.dia and b/slides/sysdev-flash-filesystems/ubi-creation-workflow.dia differ




More information about the training-materials-updates mailing list