[bootlin/training-materials updates] master: labs/sysdev-accessing-hardware-bbb: workaround for "od" on /dev/input/eventx (354417d4)

Michael Opdenacker michael.opdenacker at bootlin.com
Mon Aug 7 17:06:19 CEST 2023


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

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

commit 354417d4774527bbc8acbe0c69ed7c5c1133984a
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Mon Aug 7 17:06:19 2023 +0200

    labs/sysdev-accessing-hardware-bbb: workaround for "od" on /dev/input/eventx
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

354417d4774527bbc8acbe0c69ed7c5c1133984a
 .../sysdev-accessing-hardware-bbb.tex                            | 9 ++++-----
 .../sysdev-accessing-hardware-beagleplay.tex                     | 9 ++++-----
 .../sysdev-accessing-hardware-stm32.tex                          | 9 ++++-----
 3 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex b/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex
index 2dab80f1..84277353 100644
--- a/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex
+++ b/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex
@@ -730,13 +730,12 @@ command, use the same number as in the message you got in the console
 (\code{event0} for \code{input0} for example):
 
 \begin{bashinput}
-# od -x /dev/input/event0
+# cat /dev/input/event0 | od -x
 \end{bashinput}
 
-{\bf Caution}: using \code{od} on input event files is currently broken
-with the Musl library. We are investigating, but we will be able
-to test the Nunchuk later anyway when we compile the \code{evtest}
-program.
+{\bf Caution}: using \code{od} directly on input event files should
+work but is currently broken with the Musl library. We are investigating
+this issue.
 
 We will use the Nunchuk to control audio playback in an upcoming lab.
 
diff --git a/labs/sysdev-accessing-hardware-beagleplay/sysdev-accessing-hardware-beagleplay.tex b/labs/sysdev-accessing-hardware-beagleplay/sysdev-accessing-hardware-beagleplay.tex
index 9dad543e..2cfd8a90 100644
--- a/labs/sysdev-accessing-hardware-beagleplay/sysdev-accessing-hardware-beagleplay.tex
+++ b/labs/sysdev-accessing-hardware-beagleplay/sysdev-accessing-hardware-beagleplay.tex
@@ -729,13 +729,12 @@ command, use the same number as in the message you got in the console
 (\code{event2} for \code{input2} for example):
 
 \begin{bashinput}
-# od -x /dev/input/event2
+# cat /dev/input/event2 | od -x
 \end{bashinput}
 
-{\bf Caution}: using \code{od} on input event files is currently broken
-with the Musl library. We are investigating, but we will be able
-to test the Nunchuk later anyway when we compile the \code{evtest}
-program.
+{\bf Caution}: using \code{od} directly on input event files should
+work but is currently broken with the Musl library. We are investigating
+this issue.
 
 We will use the Nunchuk to control audio playback in an upcoming lab.
 
diff --git a/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex b/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex
index 85e03858..b5c12279 100644
--- a/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex
+++ b/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex
@@ -684,13 +684,12 @@ command, use the same number as in the message you got in the console
 (\code{event3} for \code{input3} for example):
 
 \begin{bashinput}
-# od -x /dev/input/event3
+# cat /dev/input/event3 | od -x
 \end{bashinput}
 
-{\bf Caution}: using \code{od} on input event files is currently broken
-with the Musl library. We are investigating, but we will be able
-to test the Nunchuk later anyway when we compile the \code{evtest}
-program.
+{\bf Caution}: using \code{od} directly on input event files should
+work but is currently broken with the Musl library. We are investigating
+this issue.
 
 We will use the Nunchuk to control audio playback in an upcoming lab.
 




More information about the training-materials-updates mailing list