[bootlin/training-materials updates] master: Kernel compiling lab: add initial bootargs (a14e8bf1)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Jul 29 15:02:20 CEST 2020


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

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

commit a14e8bf1d1735c7e1451d4a120433a1e88a2ae00
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Jul 29 15:02:20 2020 +0200

    Kernel compiling lab: add initial bootargs
    
    - Needed in the QEMU case otherwise we have a mem=1024 setting
      that is incompatible with the amount of RAM in our QEMU emulated
      machine (-m 128M)
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

a14e8bf1d1735c7e1451d4a120433a1e88a2ae00
 .../sysdev-kernel-cross-compiling-stm32.tex                      | 6 ++++++
 .../sysdev-kernel-cross-compiling.tex                            | 9 ++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/labs/sysdev-kernel-cross-compiling-stm32/sysdev-kernel-cross-compiling-stm32.tex b/labs/sysdev-kernel-cross-compiling-stm32/sysdev-kernel-cross-compiling-stm32.tex
index f0d23cde..e528c1fe 100644
--- a/labs/sysdev-kernel-cross-compiling-stm32/sysdev-kernel-cross-compiling-stm32.tex
+++ b/labs/sysdev-kernel-cross-compiling-stm32/sysdev-kernel-cross-compiling-stm32.tex
@@ -85,6 +85,12 @@ home directory.
 
 \section{Load and boot the kernel using U-Boot}
 
+As we are going to boot the Linux kernel from U-Boot,
+we need to set the \code{bootargs} environment corresponding
+to the Linux kernel command line:
+
+\code{setenv bootargs console=ttyS0}
+
 We will use TFTP to load the kernel image on the Discovery kit:
 
 \begin{itemize}
diff --git a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
index 6e67accb..985ab1a7 100644
--- a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
+++ b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
@@ -42,7 +42,6 @@ Also, don't forget to either:
 
 By running \code{make help}, find the proper Makefile target to
 configure the kernel
-
 \ifdefstring{\labboard}{qemu}
 {for the ARM Vexpress boards (\code{vexpress_defconfig})}
 {for the Xplained board (hint: the default
@@ -82,6 +81,14 @@ home directory.
 
 \section{Load and boot the kernel using U-Boot}
 
+As we are going to boot the Linux kernel from U-Boot,
+we need to set the \code{bootargs} environment corresponding
+to the Linux kernel command line:
+
+\ifdefstring{\labboard}{qemu}
+{\code{setenv bootargs console=ttyAMA0}}
+{\code{setenv bootargs console=ttyS0}}
+
 We will use TFTP to load the kernel image on the ARM board:
 
 \begin{itemize}




More information about the training-materials-updates mailing list