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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,001 次查看
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 回复数

726 次查看
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 项奖励
回复

726 次查看
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 项奖励
回复