VAR-SOM-AM43 USB Host: Difference between revisions

From Variscite Wiki
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PageHeader|VAR-SOM-AM43 - USB Host}} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__
= Example DiskOnKey =
= Example DiskOnKey =
Plug a DiskOnKey, Mouse or Keyboard to USB1 HOST (J40) on the DVK
(For using USB0 as Host refer to 'USB OTG as Host' section).
Insert DiskOnKey:
Insert DiskOnKey:
<pre>[ 1046.842877] usb 1-1: new high-speed USB device number 3 using xhci-hcd
<pre>[ 1046.842877] usb 1-1: new high-speed USB device number 3 using xhci-hcd
Line 42: Line 46:
20+0 records out
20+0 records out
</pre>
</pre>
= Example FTDI =
Inseret the FTDI device:
<pre>usb 2-1.2: USB disconnect, device number 4
usb 2-1.2: new full-speed USB device number 7 using ci_hdrc
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
ftdi_sio 2-1.2:1.0: FTDI USB Serial Device converter detected
usb 2-1.2: Detected FT232RL
usb 2-1.2: Number of endpoints 2
usb 2-1.2: Endpoint 1 MaxPacketSize 64
usb 2-1.2: Endpoint 2 MaxPacketSize 64
usb 2-1.2: Setting MaxPacketSize 64
usb 2-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
</pre>
Connect to the target:
<pre>$ ssh root@192.168.1.130</pre>
Start minicom and set the interface
<pre>$ minicom -s
</pre>
[[File:Minicom_set.png]]
<br/><br/>connect pin 2 to 3 on the serial port and test for loop-back.

Latest revision as of 13:18, 24 December 2015

VAR-SOM-AM43 - USB Host

Example DiskOnKey

Plug a DiskOnKey, Mouse or Keyboard to USB1 HOST (J40) on the DVK (For using USB0 as Host refer to 'USB OTG as Host' section).

Insert DiskOnKey:

[ 1046.842877] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 1046.983848] usb 1-1: New USB device found, idVendor=0781, idProduct=5567
[ 1046.990621] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1046.998366] usb 1-1: Product: Cruzer Blade
[ 1047.002513] usb 1-1: Manufacturer: SanDisk
[ 1047.007122] usb 1-1: SerialNumber: 4C532000040726105323
[ 1047.048462] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1047.055326] scsi host0: usb-storage 1-1:1.0
[ 1047.063647] usbcore: registered new interface driver usb-storage
[ 1048.054300] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[ 1048.073222] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)                                                      
[ 1048.097985] sd 0:0:0:0: [sda] Write Protect is off
[ 1048.103757] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1048.131561]  sda:
[ 1048.146111] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 1048.385793] FAT-fs (sda): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

List directory

 $ ls /run/media/sda/
$RECYCLE.BIN                   bookmarks-2015-06-25.json
Android                        iMX6_gpio_test
LOST.DIR                       linux-3.2.0-psp04.06.00.11
LS1021_SOM                     tek00000.png
Movies                         tek00001.png
Mpeg                           tek00002.png
Music                          test0.wav
Playlists                      test2.wav
SanDiskSecureAccessV2.0        test3.wav
SanDiskSecureAccessV2_win.exe  testx.wav
System Volume Information      vmlinux
TIInit_11.8.32.bts             wifi_fw_android_working
VAR-SOM-AM33-SCHV212.DSN       wl1271-nvs.bin
am43-demo                      xorcom
apk                            zImage
backing_file

Write some data:

$ dd if=/dev/urandom of=/run/media/sda/junk bs=1M count=20 
20+0 records in
20+0 records out