[bootlin/training-materials updates] master: Tinysystem lab: fix for QEMU (f915f21a)

Michael Opdenacker michael.opdenacker at bootlin.com
Mon Aug 3 10:19:42 CEST 2020


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

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

commit f915f21ab917abdc0d150542af1d4fb729f5a9d3
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Mon Aug 3 10:19:42 2020 +0200

    Tinysystem lab: fix for QEMU
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

f915f21ab917abdc0d150542af1d4fb729f5a9d3
 labs/sysdev-tinysystem/sysdev-tinysystem.tex | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/labs/sysdev-tinysystem/sysdev-tinysystem.tex b/labs/sysdev-tinysystem/sysdev-tinysystem.tex
index 31f4332c..25649f23 100644
--- a/labs/sysdev-tinysystem/sysdev-tinysystem.tex
+++ b/labs/sysdev-tinysystem/sysdev-tinysystem.tex
@@ -223,15 +223,14 @@ suspend jobs.
 So, to get rid of the warning message, we need \code{init} to run
 \code{/bin/sh} in a real terminal device:
 
-\if\defstring{\labboard}{discovery}{
-\begin{verbatim}
-ttySTM0::askfirst:/bin/sh
-\end{verbatim}
-\else
-\begin{verbatim}
-ttyS0::askfirst:/bin/sh
-\end{verbatim}
-\fi
+\ifdefstring{\labboard}{discovery}{
+\code{ttySTM0::askfirst:/bin/sh}
+}{
+\ifdefstring{\labboard}{qemu}{
+\code{ttyAM0::askfirst:/bin/sh}
+}{
+\code{ttyS0::askfirst:/bin/sh}
+}}
 
 Reboot the system and the message will be gone!
 




More information about the training-materials-updates mailing list