Part Number: PROCESSOR-SDK-DRA7X
Tool/software: Linux
Hi,
I posted usb device mode problem of custom board. ("https://e2e.ti.com/support/embedded/linux/f/354/t/594377")
I could not find the root cause.
So,I tested usb device mode of EVM board(VAYU EVM XC577X).
Target image is based on Processor SDK 3.02. (There is no modification)
First, I changed the "dr_mod" setting on device tree file.
&usb1 { dr_mode = "otg"; };
--> &usb1 { dr_mode = "peripheral"; };
After applying new device tree file , I executed next commands.
root@dra7xx-evm:~# mount -t debugfs debugfs /mnt
root@dra7xx-evm:~# cat /mnt/48890000.usb/mode
device
root@dra7xx-evm:~# modprobe g_multi file=/dev/mmcblk0p1
[ 315.099163] using random self ethernet address
[ 315.103797] using random host ethernet address
[ 315.108697] using random self ethernet address
[ 315.113252] using random host ethernet address
[ 315.120585] usb0: HOST MAC 32:d5:dd:2a:ee:e1
[ 315.125550] usb0: MAC 12:2f:f0:91:7a:a9
[ 315.143142] Mass Storage Function, version: 2009/09/11
[ 315.149836] LUN: removable file: (no medium)
[ 315.154512] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 315.161572] LUN: file: /dev/mmcblk0p1
[ 315.165530] Number of LUNs=1
[ 315.169156] g_multi gadget: Multifunction Composite Gadget
[ 315.183144] g_multi gadget: userspace failed to provide iSerialNumber
[ 315.191476] g_multi gadget: g_multi ready
but there is no external usb storage on connected host linux pc.
Any help would be greatly appreciated.

