As you konw ,we can test the otg function by the next cmd:
modprobe g_mass_storage file=/dev/mmcblk3p1 removable=1
But ,how can I let SD and USB mount to PC as the disk at the same time .
when I use the CMD . it just can mount the first one .
Hi tom
one can check various usb examples in unit tests (folder mxc_usb_test)
imx-test
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Yes ,I have read about the 035-Loadable-Module-Test.txt . But it not use .
I test the next cmd:
modprobe g_mass_storage file=/dev/sda1,/dev/mmcblk3p1 removable=1 .But my PC still enumerate one disk.
who can help ?
next is the log:
modprobe g_mass_storage
Number of LUNs=8
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
Number of LUNs=2
LUN: file: /dev/sda1
LUN: file: /dev/mmcblk3p1
Number of LUNs=2
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: userspace failed to provide iSerialNumber
g_mass_storage gadget: g_mass_storage ready