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?
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!
-----------------------------------------------------------------------------------------------------------------------
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
Hi Ganesh
you can try to develop own custom composite driver.
Best regards
igor