[bootlin/training-materials updates] master: labs/sysdev-u-boot-stm32: misc improvements (ce33cbcd)

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Jan 31 18:30:17 CET 2023


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

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

commit ce33cbcd75d43a377c2d50b449ff4793e8a04cec
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Tue Jan 31 18:30:17 2023 +0100

    labs/sysdev-u-boot-stm32: misc improvements
    
    - Erasing all the partitions to eliminate leftovers from previous labs
    - Removing "unit compact" in parted, apparently not needed
    - Updated the "print" output (you no longer see an ext4 partition
      before you created it)
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

ce33cbcd75d43a377c2d50b449ff4793e8a04cec
 labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex b/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
index 5eea3b56..2f0ae282 100644
--- a/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
+++ b/labs/sysdev-u-boot-stm32/sysdev-u-boot-stm32.tex
@@ -266,10 +266,10 @@ partitions. If SD partitions are mounted, unmount them:
 
 \bashcmd{$ sudo umount /dev/mmcblk0p*}
 
-We will erase the existing partition table by simply zero-ing the
-first 16 MiB of the SD card:
+We will erase the existing partition table and partition contents
+by simply zero-ing the first 128 MiB of the SD card:
 
-\bashcmd{$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=16}
+\bashcmd{$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=128}
 
 Now, let's use the \code{parted} command to create the partitions that
 we are going to use:
@@ -293,10 +293,9 @@ Then, the 4 partitions are created with:
 You can verify everything looks right with:
 
 \begin{verbatim}
-(parted) unit compact
 (parted) print
-Model: SD SS16G (sd/mmc)
-Disk /dev/mmcblk0: 15.9GB
+Model: SD SA08G (sd/mmc)
+Disk /dev/mmcblk0: 7747MB
 Sector size (logical/physical): 512B/512B
 Partition Table: gpt
 Disk Flags:
@@ -305,7 +304,7 @@ Number  Start   End     Size    File system  Name    Flags
  1      1049kB  2097kB  1049kB               fsbl1
  2      2097kB  3146kB  1049kB               fsbl2
  3      3146kB  5243kB  2097kB               fip
- 4      5243kB  67.1MB  61.9MB  ext4         bootfs
+ 4      5243kB  67.1MB  61.9MB               bootfs
 
 (parted)
 \end{verbatim}




More information about the training-materials-updates mailing list