Anyone able to get the g_webcam gadget working on the DragonBoard 410c? When I run sudo modprobe g_webcam
, the module appears to load but the host computer never recognizes that a USB device connected to it. Using g_audio
works, though. BTW, neither module is part of the Ubuntu 15.07 release, so I had to compile and install them myself.
Here’s the relevant part of the DragonBoard syslog:
Aug 26 21:52:40 linaro-alip kernel: [ 105.446863] udc ci_hdrc.0: registering UDC driver [g_webcam]
Aug 26 21:52:40 linaro-alip kernel: [ 105.447226] g_webcam gadget: adding config #1 'Video'/ffffffbffc055570
Aug 26 21:52:40 linaro-alip kernel: [ 105.447505] g_webcam gadget: adding 'uvc'/ffffffc02ab07138 to config 'Video'/ffffffbffc055570
Aug 26 21:52:40 linaro-alip kernel: [ 105.447516] g_webcam gadget: uvc_function_bind
Aug 26 21:52:40 linaro-alip kernel: [ 105.456123] g_webcam gadget: cfg 1/ffffffbffc055570 speeds: high full
Aug 26 21:52:40 linaro-alip kernel: [ 105.456140] g_webcam gadget: interface 0 = uvc/ffffffc02ab07138
Aug 26 21:52:40 linaro-alip kernel: [ 105.456151] g_webcam gadget: interface 1 = uvc/ffffffc02ab07138
Aug 26 21:52:40 linaro-alip kernel: [ 105.456162] g_webcam gadget: Webcam Video Gadget
Aug 26 21:52:40 linaro-alip kernel: [ 105.456171] g_webcam gadget: g_webcam ready
Aug 26 21:52:40 linaro-alip kernel: [ 105.466000] ------------[ cut here ]------------
Aug 26 21:52:40 linaro-alip kernel: [ 105.466030] WARNING: CPU: 2 PID: 1053 at ../drivers/media/v4l2-core/v4l2-ioctl.c:1025 v4l_querycap+0x54/0x90()
Aug 26 21:52:40 linaro-alip kernel: [ 105.466040] Modules linked in: g_webcam usb_f_uvc videobuf2_vmalloc libcomposite configfs wcn36xx wcn36xx_platform
Aug 26 21:52:40 linaro-alip kernel: [ 105.466084] CPU: 2 PID: 1053 Comm: v4l_id Not tainted 4.0.0-linaro-lt-qcom #1
Aug 26 21:52:40 linaro-alip kernel: [ 105.466092] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
Aug 26 21:52:40 linaro-alip kernel: [ 105.466100] Call trace:
Aug 26 21:52:40 linaro-alip kernel: [ 105.466136] [<ffffffc000089b00>] dump_backtrace+0x0/0x124
Aug 26 21:52:40 linaro-alip kernel: [ 105.466148] [<ffffffc000089c34>] show_stack+0x10/0x1c
Aug 26 21:52:40 linaro-alip kernel: [ 105.466160] [<ffffffc0007f04ec>] dump_stack+0x80/0xc4
Aug 26 21:52:40 linaro-alip kernel: [ 105.466172] [<ffffffc0000b3910>] warn_slowpath_common+0x98/0xd0
Aug 26 21:52:40 linaro-alip kernel: [ 105.466183] [<ffffffc0000b3a08>] warn_slowpath_null+0x14/0x20
Aug 26 21:52:40 linaro-alip kernel: [ 105.466194] [<ffffffc000543e6c>] v4l_querycap+0x50/0x90
Aug 26 21:52:40 linaro-alip kernel: [ 105.466206] [<ffffffc000544570>] __video_do_ioctl+0x23c/0x2b0
Aug 26 21:52:40 linaro-alip kernel: [ 105.466217] [<ffffffc0005441d4>] video_usercopy+0x328/0x46c
Aug 26 21:52:40 linaro-alip kernel: [ 105.466229] [<ffffffc000544328>] video_ioctl2+0x10/0x1c
Aug 26 21:52:40 linaro-alip kernel: [ 105.466240] [<ffffffc000540970>] v4l2_ioctl+0xfc/0x174
Aug 26 21:52:40 linaro-alip kernel: [ 105.466253] [<ffffffc0001bcbcc>] do_vfs_ioctl+0x37c/0x60c
Aug 26 21:52:40 linaro-alip kernel: [ 105.466264] [<ffffffc0001bcedc>] SyS_ioctl+0x80/0x98
Aug 26 21:52:40 linaro-alip kernel: [ 105.466272] ---[ end trace 5cba2816f2d34ea8 ]---
The warning message above is something I ran across a number of times searching the web. Consensus is that it can be ignored, but I’m not sure if it’s part of my problem or not. I was expecting the host computer to at least recognize a USB device, even if it couldn’t stream data properly at this point.
Any suggestions will be much appreciated.