[bootlin/training-materials updates] master: Boot time labs: replace ttyO0 by ttyS0 (72013ebc)

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Jun 22 13:54:08 CEST 2021


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

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

commit 72013ebc4c475822b171de50b2322b475a0281c2
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Tue Jun 22 13:53:25 2021 +0200

    Boot time labs: replace ttyO0 by ttyS0
    
    You get a warning in the kernel log otherwise
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

72013ebc4c475822b171de50b2322b475a0281c2
 labs/boot-time-bootloader/boot-time-bootloader.tex                      | 2 +-
 .../boot-time-build-kernel-and-start-system.tex                         | 2 +-
 .../boot-time-filesystem-optimizations.tex                              | 2 +-
 labs/boot-time-init-scripts/boot-time-init-scripts.tex                  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/labs/boot-time-bootloader/boot-time-bootloader.tex b/labs/boot-time-bootloader/boot-time-bootloader.tex
index a9abe80b..0554f44d 100644
--- a/labs/boot-time-bootloader/boot-time-bootloader.tex
+++ b/labs/boot-time-bootloader/boot-time-bootloader.tex
@@ -154,7 +154,7 @@ the kernel and DTB. At least this works with U-Boot for our board.
 \begin{verbatim}
 load mmc 0:1 ${loadaddr} uImage
 load mmc 0:1 ${fdtaddr} dtb
-setenv bootargs console=ttyO0,115200n8 rdinit=/playvideo
+setenv bootargs console=ttyS0,115200n8 rdinit=/playvideo
 spl export fdt ${loadaddr} - ${fdtaddr}
 \end{verbatim}
 
diff --git a/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex b/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
index 521aa101..6f782567 100644
--- a/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
+++ b/labs/boot-time-build-kernel-and-start-system/boot-time-build-kernel-and-start-system.tex
@@ -179,7 +179,7 @@ setenv bootcmd 'fatload mmc 0:1 81000000 zImage; fatload mmc 0:1 82000000 dtb; b
 {\footnotesize
 The last thing to do is to define the kernel command line:
 \begin{verbatim}
-setenv bootargs console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootwait ro
+setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait ro
 \end{verbatim}
 }
 
diff --git a/labs/boot-time-filesystem-optimizations/boot-time-filesystem-optimizations.tex b/labs/boot-time-filesystem-optimizations/boot-time-filesystem-optimizations.tex
index 307e3833..517b3526 100644
--- a/labs/boot-time-filesystem-optimizations/boot-time-filesystem-optimizations.tex
+++ b/labs/boot-time-filesystem-optimizations/boot-time-filesystem-optimizations.tex
@@ -103,7 +103,7 @@ tar xvf ../buildroot/output/images/rootfs.tar
    \end{itemize}
 \item Go to the U-Boot command line on your board, and modify the
 kernel parameters:\\
-   \code{setenv bootargs console=ttyO0,115200n8 rdinit=/playvideo}\\
+   \code{setenv bootargs console=ttyS0,115200n8 rdinit=/playvideo}\\
    \code{root=} and \code{rootwait} are ignored when there is an
    Initramfs and \code{init} is replaced by \code{rdinit=}.
    Don't forget to run \code{saveenv}.
diff --git a/labs/boot-time-init-scripts/boot-time-init-scripts.tex b/labs/boot-time-init-scripts/boot-time-init-scripts.tex
index 006dc1b9..11df36a0 100644
--- a/labs/boot-time-init-scripts/boot-time-init-scripts.tex
+++ b/labs/boot-time-init-scripts/boot-time-init-scripts.tex
@@ -164,7 +164,7 @@ Update and reflash your SD card. Reboot the board, but before booting,
 stop in U-Boot to update the {\em init} program:
 
 \begin{verbatim}
-setenv bootargs console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootwait rw init=/playvideo
+setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait rw init=/playvideo
 saveenv
 boot
 \end{verbatim}




More information about the training-materials-updates mailing list