[FE training-materials-updates] labs/buildroot-advanced: add "Going further" step

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 17 13:46:38 CEST 2017


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=58f47ec7de654dac32db47b0f2100fb9c3fd76aa

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

commit 58f47ec7de654dac32db47b0f2100fb9c3fd76aa
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Tue Oct 17 13:45:46 2017 +0200

    labs/buildroot-advanced: add "Going further" step
    
    For participants ahead of schedule, add a going further step in which
    we use genimage to produce a complete, ready to flash, SD card image.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

58f47ec7de654dac32db47b0f2100fb9c3fd76aa
 labs/buildroot-advanced/buildroot-advanced.tex | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/labs/buildroot-advanced/buildroot-advanced.tex b/labs/buildroot-advanced/buildroot-advanced.tex
index 3957b6d..21a9e51 100644
--- a/labs/buildroot-advanced/buildroot-advanced.tex
+++ b/labs/buildroot-advanced/buildroot-advanced.tex
@@ -234,3 +234,27 @@ Your \code{BR2_EXTERNAL} tree should look like this:
 Now, do a full rebuild using your \code{BR2_EXTERNAL} tree, and check
 that your system builds and runs fine!
 
+\section{Going further}
+
+If you have some time left, let's improve our setup to use {\em
+  genimage}. This way, we will be able to generate a complete SD card
+image, which we can flash on a SD card, without having to manually
+create partitions. Follow those steps:
+
+\begin{itemize}
+
+\item Change the Buildroot configuration to generate an {\em ext4}
+  filesystem image
+
+\item Take example on \code{board/beaglebone/genimage.cfg} to create
+  your own \code{board/felabs/beagleboneblack/genimage.cfg}. Keep only
+  the single Device Tree we need for our project.
+
+\item Adjust the Buildroot configuration to use the
+  \code{support/scripts/genimage.sh} script as a {\em post-image}
+  script, and pass \code{-c board/felabs/beagleboneblack/genimage.cfg}
+  as {\em post-image} script arguments. Make sure to enable
+  \code{BR2_PACKAGE_HOST_DOSFSTOOLS}, \code{BR2_PACKAGE_HOST_GENIMAGE}
+  and \code{BR2_PACKAGE_HOST_MTOOLS}.
+
+\end{itemize}




More information about the training-materials-updates mailing list