[bootlin/training-materials updates] master: labs/buildroot-basic: switch to extlinux.conf (16179761)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat May 29 17:00:36 CEST 2021


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

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

commit 16179761c68324ae342451d6d7b9e876e72b89b3
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Tue May 25 17:59:01 2021 +0200

    labs/buildroot-basic: switch to extlinux.conf
    
    The uenvcmd stuff was no longer working with the new U-Boot version,
    so switched to the more standard extlinux.conf mechanism.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

16179761c68324ae342451d6d7b9e876e72b89b3
 labs/buildroot-basic/buildroot-basic.tex | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/labs/buildroot-basic/buildroot-basic.tex b/labs/buildroot-basic/buildroot-basic.tex
index 6ea3ced4..5d98b781 100644
--- a/labs/buildroot-basic/buildroot-basic.tex
+++ b/labs/buildroot-basic/buildroot-basic.tex
@@ -343,21 +343,23 @@ on the SD card:
   partition of the SD card, using:\\
   \code{sudo tar -C /media/$USER/rootfs/ -xf output/images/rootfs.tar}.
 
-\item Create a file named \code{uEnv.txt} in the \code{boot}
-  partition. This file should contain the following lines:
+\item Create a file named \code{extlinux/extlinux.conf} in the
+  \code{boot} partition. This file should contain the following lines:
 
 {\small
 \begin{verbatim}
-bootdir=
-bootpart=0:1
-devtype=mmc
-args_mmc=setenv bootargs console=${console} ${optargs} root=/dev/mmcblk0p2 rw rootfstype=${mmcrootfstype}
-uenvcmd=run loadimage;run loadramdisk;run findfdt;run loadfdt;run mmcloados
+label buildroot
+  kernel /zImage
+  devicetree /am335x-boneblack-wireless.dtb
+  append console=ttyO0,115200 root=/dev/mmcblk0p2 rootwait
 \end{verbatim}
 }
 
-  These lines teach the U-Boot bootloader how to load the Linux kernel
-  image and the Device Tree, before booting the kernel.
+These lines teach the U-Boot bootloader how to load the Linux kernel
+image and the Device Tree, before booting the kernel. It uses a
+standard U-Boot mechanism called {\em distro boot command}, see
+\url{https://source.denx.de/u-boot/u-boot/-/raw/master/doc/README.distro}
+for more details.
 
 \end{itemize}
 




More information about the training-materials-updates mailing list