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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

977件の閲覧回数
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 .

ラベル(1)
0 件の賞賛
2 返答(返信)

702件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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 件の賞賛

702件の閲覧回数
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 件の賞賛