[bootlin/training-materials updates] master: yocto: Port on STP32mp1 DK1 board (ff6c3dc1)

Maxime Chevallier maxime.chevallier at bootlin.com
Mon Sep 23 14:56:18 CEST 2019


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

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

commit ff6c3dc1365f69647b95b938af1868be4a99241f
Author: Maxime Chevallier <maxime.chevallier at bootlin.com>
Date:   Mon Sep 23 14:55:52 2019 +0200

    yocto: Port on STP32mp1 DK1 board
    
    Signed-off-by: Maxime Chevallier <maxime.chevallier at bootlin.com>


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

ff6c3dc1365f69647b95b938af1868be4a99241f
 .../yocto-advanced-configuration-stm32.tex                 |  8 ++++----
 labs/yocto-first-build-stm32/yocto-first-build-stm32.tex   | 14 ++++++++------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/labs/yocto-advanced-configuration-stm32/yocto-advanced-configuration-stm32.tex b/labs/yocto-advanced-configuration-stm32/yocto-advanced-configuration-stm32.tex
index 47aa936a..de33d498 100644
--- a/labs/yocto-advanced-configuration-stm32/yocto-advanced-configuration-stm32.tex
+++ b/labs/yocto-advanced-configuration-stm32/yocto-advanced-configuration-stm32.tex
@@ -18,9 +18,9 @@ using NFS.
 
 First we need to set the kernel boot arguments U-Boot will pass to the
 Linux kernel at boot time. For that, edit the
-\code{extlinux/extlinux.conf} file in the bootfs partition of the SD
+\code{mmc0_stm32mp157a-dk1_extlinux/extlinux.conf} file in the bootfs partition of the SD
 card and change the \code{APPEND} line for the
-\code{stm32mp157c-dk2-m4-examples-sdcard} configuration:
+\code{stm32mp157a-dk1-sdcard} configuration:
 
 \begin{verbatim}
 APPEND root=/dev/nfs rw console=ttySTM0,115200 nfsroot=192.168.0.1:/nfs ip=192.168.0.100:::::eth0
@@ -88,8 +88,8 @@ First we need to put the rootfs under the NFS root directory so that it is
 accessible by NFS clients. Simply uncompress the archived output image in the
 previously created \code{/nfs} directory:
 \begin{verbatim}
-sudo tar xpf $BUILDDIR/tmp/deploy/images/stm32mp1-disco/\
-  core-image-minimal-stm32mp1-disco.tar.xz -C /nfs
+sudo tar xpf $BUILDDIR/tmp/deploy/images/stm32mp1/\
+  core-image-minimal-stm32mp1.tar.xz -C /nfs
 \end{verbatim}
 
 Then boot the board.
diff --git a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
index 2a6c8386..9cb84a2c 100644
--- a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
+++ b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex
@@ -18,7 +18,7 @@ Go to the \code{$HOME/yocto-labs/} directory.
 
 Install the required packages:
 \begin{verbatim}
-sudo apt install bc build-essential chrpath cpio diffstat gawk git python texinfo wget
+sudo apt install bc build-essential chrpath cpio diffstat gawk git python texinfo wget gdisk
 \end{verbatim}
 
 \section{Download Yocto}
@@ -51,7 +51,7 @@ source poky/oe-init-build-env
 \end{verbatim}
 
 You must specify which machine is your target. By default it
-is \code{qemu}. We need to build an image for an \code{stm32mp1-disco}.
+is \code{qemu}. We need to build an image for an \code{stm32mp1}.
 Update the \code{MACHINE} configuration variable accordingly.
 
 Also, if you need to save disk space on your computer you can add \code{INHERIT
@@ -72,23 +72,25 @@ bitbake core-image-minimal
 \end{verbatim}
 
 Once the build finished, you will find the output images under
-\code{$BUILDDIR/tmp/deploy/images/stm32mp1-disco}.
+\code{$BUILDDIR/tmp/deploy/images/stm32mp1}.
 
 \section{Set up the SD card}
 
 In this first lab we will use an SD card to store the bootloader, kernel and
 root filesystem files. To generate the final image, You will find scripts in
-\code{$BUILDDIR/tmp/deploy/images/stm32mp1-disco/scripts}.
+\code{$BUILDDIR/tmp/deploy/images/stm32mp1/scripts}.
 
 Execute it:
 \begin{verbatim}
-./create_sdcard_from_flashlayout.sh ../flashlayout_core-image-minimal/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
+sudo ./create_sdcard_from_flashlayout.sh \
+../flashlayout_core-image-minimal/lashLayout_sdcard_stm32mp157a-dk1-basic.tsv
 \end{verbatim}
 
 Flash the SD card with that image:
 \begin{verbatim}
 umount /dev/mmcblk0*
-sudo dd if=../flashlayout_core-image-minimal/../flashlayout_core-image-minimal_FlashLayout_sdcard_stm32mp157c-dk2-trusted.raw of=/dev/mmcblk0 bs=8M conv=fdatasync status=progress
+sudo dd if=../flashlayout_core-image-minimal_FlashLayout_sdcard_stm32mp157a-dk1-basic.raw  \
+of=/dev/mmcblk0 bs=8M conv=fdatasync status=progress
 \end{verbatim}
 
 \section{Setting up serial communication with the board}




More information about the training-materials-updates mailing list