
4.12 USB Device
This example demonstrates how to use USB device interface and verify the driver of
USB client. The MYD-AM335X series development board works as a TF card reader,
it is connected to the USB host of PC with a USB mini B to USB A cable.
Hardware Preparation
:
Hardware debugging environment to see chapter second.
One TF card
One USB mini B to USB A cable.
Board Type
MYD-AM335X
MYD-AM335X-Y
MYD-AM335X-J
MINI USB interface
J2
J3
J3
TF Card
J17
J12
J19
Software Preparation:
Linux Kernel 4.1.18
modprobe command
Test Steps:
After the MYD-AM335X series development is booted, connect it to the USB
host interface of PC with a USB mini B to USB A cable, Insert the TF card to
MYD-AM335X series development. Load the mass storage gadget driver as
below:
# modprobe g_mass_storage stall=0 file=/dev/mmcblk0p1 removable=1
[ 687.171803] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
[ 687.179455] Mass Storage Function, version: 2009/09/11
[ 687.184933] LUN: removable file: (no medium)
[ 687.192157] lun0: open backing file: /dev/mmcblk0p1
[ 687.197379] LUN: removable file: /dev/mmcblk0p1
[ 687.202952] Number of LUNs=1
[ 687.206057] g_mass_storage gadget: adding config #1 'Linux File-Backed Storage'/bf2
a45cc
[ 687.215260] Number of LUNs=1
[ 687.219060] g_mass_storage gadget: I/O thread pid: 185
[ 687.224576] g_mass_storage gadget: adding 'Mass Storage Function'/dc896b00 to confi
g 'Linux File-Backed Storage'
56
Содержание MYD-AM335X
Страница 1: ......
Страница 33: ...After complete the picture displays just right for the LCD 33 ...
Страница 43: ...Exchange roles of the two boards the result is the same 43 ...
Страница 65: ...Figure 5 2 9 Finish Creating a New Project 65 ...
Страница 100: ...Sales Email sales myirtech com Phone 86 755 22984836 Fax 86 755 25532724 Website www myirtech com 100 ...