[bootlin/training-materials updates] master: labs/sysdev-accessing-hardware: improve USB part (6aa2c171)

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Apr 4 12:10:22 CEST 2023


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

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

commit 6aa2c171c52a7085e16c7e863b8d112661b69f3e
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Tue Apr 4 12:10:22 2023 +0200

    labs/sysdev-accessing-hardware: improve USB part
    
    - Use more interesting USB attribute ("manufacturer")
    - Use the same vendor id and product id as for
      the main USB audio dongle that we use.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

6aa2c171c52a7085e16c7e863b8d112661b69f3e
 .../sysdev-accessing-hardware-bbb.tex              | 18 ++++++------------
 .../sysdev-accessing-hardware-stm32.tex            | 22 ++++++++++------------
 2 files changed, 16 insertions(+), 24 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 155e4ca9..0d02f8c4 100644
--- a/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex
+++ b/labs/sysdev-accessing-hardware-bbb/sysdev-accessing-hardware-bbb.tex
@@ -507,10 +507,10 @@ additional device:
 \begin{bashinput}
 # lsusb
 Bus 001 Device 001: ID 1d6b:0002
-Bus 001 Device 004: ID 1b3f:2008
+Bus 001 Device 003: ID 0d8c:0014
 \end{bashinput}
 
-The device of vendor ID \code{1b3f} and product ID \code{2008} has
+The device of vendor ID \code{0d8c} and product ID \code{0014} has
 appeared. Of course, this depends on the actual USB audio device
 that you used.
 
@@ -520,10 +520,6 @@ device is plugged in the kernel messages show:
 
 \begin{bashinput}
 usb 1-1: new full-speed USB device number 4 using musb-hdrc
-usb 1-1: New USB device found, idVendor=1b3f, idProduct=2008, bcdDevice= 1.00
-usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
-usb 1-1: Product: USB Audio Device
-usb 1-1: Manufacturer: GeneralPlus
 \end{bashinput}
 
 So if we go in \code{/sys/bus/usb/devices/1-1}, we get the {\em
@@ -532,13 +528,11 @@ sysfs} representation of this USB device:
 \begin{bashinput}
 # cd /sys/bus/usb/devices/1-1
 # cat idVendor
-1b3f
+0d8c
 # cat idProduct
-2008
-# cat busnum
-1
-# cat devnum
-4
+0014
+# cat manufacturer
+C-Media Electronics Inc.
 # cat product
 USB Audio Device
 \end{bashinput}
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 e53d90c1..2d78bf73 100644
--- a/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex
+++ b/labs/sysdev-accessing-hardware-stm32/sysdev-accessing-hardware-stm32.tex
@@ -446,7 +446,7 @@ headset provided by your instructor.
 Before plugging the device, look at the output of \code{lsusb}:
 
 \begin{bashinput}
-# lsusb
+# lsus
 Bus 001 Device 001: ID 1d6b:0002
 Bus 001 Device 002: ID 0424:2514
 \end{bashinput}
@@ -458,11 +458,11 @@ additional device:
 \begin{bashinput}
 # lsusb
 Bus 001 Device 001: ID 1d6b:0002
-Bus 001 Device 004: ID 1b3f:2008
+Bus 001 Device 003: ID 0d8c:0014
 Bus 001 Device 002: ID 0424:2514
 \end{bashinput}
 
-The device of vendor ID \code{1b3f} and product ID \code{2008} has
+The device of vendor ID \code{0d8c} and product ID \code{0014} has
 appeared. Of course, this depends on the actual USB audio device
 that you used.
 
@@ -471,22 +471,20 @@ directory whose name depends on the topology of the USB bus. When the
 device is plugged in the kernel messages show:
 
 \begin{bashinput}
-usb 1-1.1: new full-speed USB device number 3 using ehci-platform
+usb 1-1.3: new full-speed USB device number 3 using ehci-platform
 \end{bashinput}
 
-So if we go in \code{/sys/bus/usb/devices/1-1.1}, we get the {\em
+So if we go in \code{/sys/bus/usb/devices/1-1.3}, we get the {\em
 sysfs} representation of this USB device:
 
 \begin{bashinput}
-# cd /sys/bus/usb/devices/1-1.1
+# cd /sys/bus/usb/devices/1-1.3
 # cat idVendor
-1b3f
+0d8c
 # cat idProduct
-2008
-# cat busnum
-1
-# cat devnum
-4
+0014
+# cat manufacturer
+C-Media Electronics Inc.
 # cat product
 USB Audio Device
 \end{bashinput}




More information about the training-materials-updates mailing list