Changes

Jump to: navigation, search

Physical devices mapping (XUELK)

2,595 bytes added, 13:43, 5 October 2016
USB OTG
On PC side, SBC Lynx is detected as a common USB mass storage device.
==USB host==
The following example shows how an USB memory stick is detected by the Linux kernel when plugged into the J48 connector:
<pre>
root@imx6ulevk:~# [ 75.584841] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[ 75.742301] usb 1-1: New USB device found, idVendor=13fe, idProduct=3e00
[ 75.749941] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 75.757910] usb 1-1: Product: DISK
[ 75.761448] usb 1-1: Manufacturer: USB
[ 75.766141] usb 1-1: SerialNumber: 9BC3170089A71A0A
[ 75.777163] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 75.786170] scsi0 : usb-storage 1-1:1.0
[ 76.817769] scsi 0:0:0:0: Direct-Access USB DISK PMAP PQ: 0 ANSI: 4
[ 79.046564] sd 0:0:0:0: [sda] 15646720 512-byte logical blocks: (8.01 GB/7.46 GiB)
[ 79.056659] sd 0:0:0:0: [sda] Write Protect is off
[ 79.062243] sd 0:0:0:0: [sda] No Caching mode page found
[ 79.068416] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 79.083946] sd 0:0:0:0: [sda] No Caching mode page found
[ 79.089858] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 79.122209] sda: sda1
[ 79.139095] sd 0:0:0:0: [sda] No Caching mode page found
[ 79.146243] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 79.152561] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 80.060663] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
</pre>
Once mounted (at <code>/mnt/usb/</code> in the example), the memory stick can be accessed via regular commands:
</pre>
root@imx6ulevk:~# mkdir /mnt/usb
root@imx6ulevk:~# mount /dev/sda1 /mnt/usb/
root@imx6ulevk:~# time cp LibreOffice_4.1.1_Win_x86.msi /mnt/usb/; sync
 
real 0m47.236s
user 0m0.020s
sys 0m8.590s
root@imx6ulevk:~# ls -la /mnt/usb/
total 215152
drwxrwx--- 3 root disk 4096 Mar 4 20:48 .
drwxr-xr-x 5 500 502 4096 Mar 9 2016 ..
-rwxrwx--- 1 root disk 112328 Jan 14 18:47 CoreIBEXarm
-rwxrwx--- 1 root disk 215056384 Mar 4 20:49 LibreOffice_4.1.1_Win_x86.msi
-rwxrwx--- 1 root disk 173 Jan 1 1980 UpdateIBEX.log
drwxrwx--- 2 root disk 4096 Jan 1 1980 UpdateIBEX19700101010500
-rwxrwx--- 1 root disk 1303 Feb 19 12:36 Xilinx_OSD_19-02-2016.lic
-rwxrwx--- 1 root disk 5105327 Jan 18 16:31 ibex.war
-rwxrwx--- 1 root disk 105 Jun 10 2015 update-script.sh
-rwxrwx--- 1 root disk 6494 Jan 18 16:52 update-script_.sh
root@imx6ulevk:~# umount /mnt/usb/
root@imx6ulevk:~#
root@imx6ulevk:~#
root@imx6ulevk:~# [ 456.298630] usb 1-1: USB disconnect, device number 2
</pre>
4,650
edits

Navigation menu