[bootlin/training-materials updates] master: Flash slides and labs: mtdparts command just needed for information (0676f37d)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Sep 24 15:59:07 CEST 2020


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

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

commit 0676f37d14e740263effaa05f061f36c09429674
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Sep 24 15:59:07 2020 +0200

    Flash slides and labs: mtdparts command just needed for information
    
    - You no longer need to run the "mtdparts" command
      in the boot sequence, to process the definitions in the "mtdids" and "mtdparts"
      environment variables
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

0676f37d14e740263effaa05f061f36c09429674
 labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex   | 4 ++--
 slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 0d8cf78b..67bf68c9 100644
--- a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -211,9 +211,9 @@ data using the web server.
 %setenv mtdids nand0=atmel_nand
 %setenv mtdparts mtdparts=atmel_nand:256k(bootstrap)ro,768k(u-boot)ro,256k(u-boot-env2)ro,256k(u-boot-env1)ro,-(UBI)
 %setenv bootargs_base console=ttyS0,115200 rootfstype=ubifs root=ubi0:root ip=192.168.0.100:::::eth0 ubi.mtd=4 ro
-%setenv bootcmd 'mtdparts; ubi part UBI; ubi readvol 0x21000000 kernel;
+%setenv bootcmd 'ubi part UBI; ubi readvol 0x21000000 kernel;
 %ubi readvol 0x22000000 dtb; setenv bootargs ${bootargs_base} ${mtdparts}; bootz 0x21000000 - 0x22000000'
-%setenv flash 'mtdparts; nand erase.part UBI; tftp 0x21000000 ubi.img; nand write.trimffs 0x21000000 UBI ${filesize}'
+%setenv flash 'nand erase.part UBI; tftp 0x21000000 ubi.img; nand write.trimffs 0x21000000 UBI ${filesize}'
 
 \section{Going further}
 
diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 08f7a186..2ff07ecb 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -284,8 +284,8 @@ setenv mtdparts mtdparts=omap2-nand.0:512k(XLoader)ro,1536k(UBoot)ro,512k(Env),4
     \item \code{setenv mtdparts mtdparts=<mtdid>:<partition>[,partition]}
     \item \code{partition} format: \code{<size>[@offset](<name>)[ro]}
   \end{itemize}
-  Use the \code{mtdparts} command to process the \code{mtdids} and
-  \code{mtdparts} settings and activate partitions in U-Boot.
+  You can use the \code{mtdparts} command to check that your partitions
+  definitions are understood correctly by U-Boot.
 \end{frame}
 
 \begin{frame}
@@ -900,7 +900,7 @@ Device 0 bad blocks:
      definitions, loading kernel and DTB images from UBI partitions,
      and adding \code{mtdparts} to the kernel command
      line. Example:\\
-     \code{setenv bootcmd 'mtdparts; ubi part UBI; ubi readvol
+     \code{setenv bootcmd 'ubi part UBI; ubi readvol
 0x81000000 kernel; ubi readvol 0x82000000 dtb; setenv bootargs
 ${bootargs_base} ${mtdparts}; bootz 0x81000000 - 0x82000000'}
   \end{itemize}




More information about the training-materials-updates mailing list