how can I mount much disk to the PC by otg ?

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I mount much disk to the PC by otg ?

495 Views
tomgao
Contributor III

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 .

Labels (1)
0 Kudos
2 Replies

220 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

220 Views
tomgao
Contributor III

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

0 Kudos