AnsweredAssumed Answered

imx6 as usb device -> usb_mass_storage + usb_webcam possible?

Question asked by Ganesh Biradar on Jan 22, 2017
Latest reply on Jan 23, 2017 by igorpadykov

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?

Outcomes