[bootlin/training-materials updates] master: UBI slides improvements (b16453dd)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Sep 9 23:33:23 CEST 2020


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

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

commit b16453ddad48c89030422f0e94e5cb9f54910b39
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Sep 9 23:33:23 2020 +0200

    UBI slides improvements
    
    - Fix ubirename usage
    - Add examples
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

b16453ddad48c89030422f0e94e5cb9f54910b39
 .../sysdev-flash-filesystems.tex                   | 26 ++++++++++++++++------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 8d70a274..fb16b889 100644
--- a/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/slides/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -784,15 +784,27 @@ vol_flags=autoresize
     \begin{itemize}
     \item {\small \code{ubimkvol /dev/ubi<UBI-device-id> -N <name> -s <size>}}\\
 	Create a new volume. Use \code{-m} in place of \code{-s <size>}
-	if you want to assign all the remaining space to this volume.
+	if you want to assign all the remaining space to this volume.\\
+        Example: \code{ubimkvol /dev/ubi0 -N varlog -s 16MiB}
     \item {\small \code{ubirmvol /dev/ubi<UBI-device-id> -N <name>}}\\
-	Delete a UBI volume
-    \item {\small \code{ubiupdatevol /dev/ubi<UBI-device-id>_<UBI-vol-id> [-s <size>] <vol-image-file>}}\\
-	Update volume contents
+	Delete a UBI volume\\
+        Example: \code{ubirmvol /dev/ubi0 -N varlog}
+    \item {\small \code{ubiupdatevol /dev/ubi<UBI-device-id>_<UBI-vol-id> [-s <size>] <img-file>}}\\
+	Update volume contents\\
+        Example: \code{ubiupdatevol /dev/ubi0_1 rootfs.img}
+    \end{itemize}
+\end{frame}
+
+\begin{frame}
+  \frametitle{Linux: UBI target tools (3)}
+  UBI volume management (continued):
+    \begin{itemize}
     \item {\small \code{ubirsvol /dev/ubi<UBI-device-id> -N <name> -s <size>}}\\
-	Resize a UBI volume
-    \item {\small \code{ubirename /dev/ubi<UBI-device-id>_<UBI-vol-id> <old-name> <new-name>}}\\
-	Rename a UBI volume
+	Resize a UBI volume\\
+        Example: \code{ubirsvol /dev/ubi0 -N varlog -s 32MiB}
+    \item {\small \code{ubirename /dev/ubi<UBI-device-id> <old-name> <new-name>}}\\
+	Rename a UBI volume\\
+        Example: \code{ubirename /dev/ubi0 varlog var}
     \end{itemize}
 \end{frame}
 




More information about the training-materials-updates mailing list