imx6 as usb device -> usb_mass_storage + usb_webcam possible?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 as usb device -> usb_mass_storage + usb_webcam possible?

1,904 Views
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?

Labels (5)
0 Kudos
3 Replies

834 Views
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 Kudos

834 Views
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 Kudos

834 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ganesh

you can try to develop own custom composite driver.

Best regards
igor

0 Kudos