[bootlin/training-materials updates] master: debugging: labs: fix kexec command line and add a note about console (18407ea7)

Clément Léger clement.leger at bootlin.com
Fri Nov 25 17:16:04 CET 2022


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

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

commit 18407ea7fb0ca4f9376aa65dcf5c11add0fca716
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Fri Nov 25 17:15:28 2022 +0100

    debugging: labs: fix kexec command line and add a note about console
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

18407ea7fb0ca4f9376aa65dcf5c11add0fca716
 .../debugging-kernel-debugging/debugging-kernel-debugging.tex | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index 0591c51d..1f9e42f8 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -145,7 +145,10 @@ Initalizing the serial port to 115200 8n1
 Use <ctrl>C to terminate program
 \end{bashinput}
 
-Note: the slave ports will depend on the run.
+Note: the slave ports number will depend on the run.
+
+\textbf{Important: before using \code{/dev/pts/7} and \code{/dev/pts/8}, the
+picocom process that did opened \code{/dev/ttyACM0} must be closed !}
 
 On the target, setup KGDB by setting the console to be used for that purpose in
 kgdboc module parameters:
@@ -183,7 +186,7 @@ Then the kernel will halt during boot waiting for a GDB process to be attached.
 Attached using the same command that was previously used:
 
 \begin{bashinput}
-$ gdb-multiarch vmlinux
+$ gdb-multiarch /home/<user>/debugging-labs/buildroot/output/build/linux-5.13/vmlinux
 (gdb) target remote /dev/pts/8
 \end{bashinput}
 
@@ -306,8 +309,8 @@ following command:
 
 \begin{bashinput}
 $ kexec --type zImage -p /mnt/boot/zImage --dtb=/mnt/boot/stm32mp157a-dk1.dtb
-  --command-line="root=/dev/nfs ip=192.168.1.215:::::eth0
-  nfsroot=192.168.1.105:/srv/nfs/stm32_debug,nfsvers=3,tcp rw console=ttySTM0
+  --command-line="root=/dev/nfs ip=192.168.0.100:::::eth0
+  nfsroot=192.168.0.1:/srv/nfs/stm32_debug,nfsvers=3,tcp rw console=ttySTM0
   maxcpus=1 reset_devices"
 \end{bashinput}
 




More information about the training-materials-updates mailing list