imx6 as usb device -> usb_mass_storage + usb_webcam possible?

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

imx6 as usb device -> usb_mass_storage + usb_webcam possible?

1,967件の閲覧回数
gbiradar
Contributor IV

Hi Guys,

I plan to use my imx6 custom board as device mode, imx6 board will act as mass storage and webcam.

one single USB port + kernel 3.14.

I have used legacy drivers,

# modprobe g_mass_storage file=/dev/mmcblk0p2 stall=0

It worked i'm able to see my partition in PC. But if i try to load g_webcam. It failed. after some searching i understood that  i can't use both driver parallel. only one at a time. But in end product i can't allow every time these.

so i need a way in which i can access mass storage as well as webcam not parallely. but autoprobing should be available.

what are the ways i can achieve my task.

While more searching i came across configfs. but i don't know about much. how it differentiate mass storage and webcam.

any input?

ラベル(5)
0 件の賞賛
3 返答(返信)

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

Hi Ganesh

seems it could be impelemented using usb composite driver (currently

not supported in nxp bsps), for description please refer to

https://www.kernel.org/doc/Documentation/usb/gadget_multi.txt 

Linux-USB Gadget API Framework 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

897件の閲覧回数
gbiradar
Contributor IV

Hi igorpadykov‌,

gadget_multi support mass storage and cdc only.

coming to webcam i have not able to find any support.

what about configfs?

regards,

Ganesh

0 件の賞賛

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

Hi Ganesh

you can try to develop own custom composite driver.

Best regards
igor

0 件の賞賛