[BL training-materials-updates] Kernel labs: use ttyS0 instead of ttyO0

Michael Opdenacker michael.opdenacker at bootlin.com
Tue May 29 06:24:56 CEST 2018


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

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

commit 8041904007628c320ad2721bb23ae7811685f646
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue May 29 06:24:56 2018 +0200

    Kernel labs: use ttyS0 instead of ttyO0
    
    In 4.16, /dev/ttyS0 is used instead of /dev/ttyO0
    Update the kernel command line and the /etc/inittab
    file in the nfs root
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


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

8041904007628c320ad2721bb23ae7811685f646
 lab-data/linux-kernel/modules/nfsroot.tar.xz       | Bin 2575108 -> 2574680 bytes
 .../kernel-compiling-and-nfs-booting.tex           |   8 +++-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/lab-data/linux-kernel/modules/nfsroot.tar.xz b/lab-data/linux-kernel/modules/nfsroot.tar.xz
index f7dae81..d4ca6ad 100644
Binary files a/lab-data/linux-kernel/modules/nfsroot.tar.xz and b/lab-data/linux-kernel/modules/nfsroot.tar.xz differ
diff --git a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
index ac40a26..3781f30 100644
--- a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
+++ b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
@@ -139,20 +139,18 @@ we need to tell it which console to use and that the root filesystem
 should be mounted over NFS, by setting some kernel parameters.
 
 Do this by setting U-boot's \code{bootargs} environment variable (all in
-just one line, pay attention to the \code{O} character, like "OMAP", in
-\code{ttyO0}):
+just one line):
 
 For the BeagleBone Back board:
 \begin{verbatim}
-setenv bootargs root=/dev/nfs rw ip=192.168.0.100 console=ttyO0
+setenv bootargs root=/dev/nfs rw ip=192.168.0.100 console=ttyS0,115200n8
   nfsroot=192.168.0.1:/home/<user>/linux-kernel-labs/modules/nfsroot
 \end{verbatim}
 
 For the BeagleBone Back Wireless board:
 \begin{verbatim}
-setenv bootargs root=/dev/nfs rw ip=192.168.0.100:::::usb0
+setenv bootargs root=/dev/nfs rw ip=192.168.0.100:::::usb0 console=ttyS0,115200n8
   g_ether.dev_addr=11:22:33:44:55:02 g_ether.host_addr=11:22:33:44:55:01
-  console=ttyO0,115200n8
   nfsroot=192.168.0.1:/home/<user>/linux-kernel-labs/modules/nfsroot
 \end{verbatim}
 




More information about the training-materials-updates mailing list