Skip to content

Commit

Permalink
Flash slides and labs: mtdparts command just needed for information
Browse files Browse the repository at this point in the history
- 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@bootlin.com>
  • Loading branch information
Michael Opdenacker committed Sep 24, 2020
1 parent 728ad85 commit 0676f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ \section{Loading kernel and DTB images from UBI and booting it}
%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}
Expand Down
6 changes: 3 additions & 3 deletions slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ \section{Flash storage and filesystems}
\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}
Expand Down Expand Up @@ -900,7 +900,7 @@ \section{Flash storage and filesystems}
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}
Expand Down

0 comments on commit 0676f37

Please sign in to comment.