root@am57xx-evm:~# ./uvcgadget -d /dev/video1 1280x720.jpg uvc_open: open succeeded, file descriptor = 3 uvc_open: device is dwc3-gadget on bus gadget Bad address [ 663.596761] g_webcam gadget: high-speed config #1: Video [ 663.602108] g_webcam gadget: uvc_function_set_alt(0, 0) [ 663.607354] g_webcam gadget: reset UVC Control [ 663.611824] g_webcam gadget: uvc_function_set_alt(1, 0) [ 663.617459] g_webcam gadget: uvc_function_set_alt(1, 0) uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 1 1 2a 2c a 0 0 0 0 0 0 0 0 0 0 0 0 8 7 0 0 2 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process: UVC_EVENT_SETUP UVC_GET_CUR uvc_events_process: UVC_EVENT_SETUP uvc_events_process: UVC_EVENT_SETUP uvc_events_process: UVC_EVENT_SETUP uvc_events_process: UVC_EVENT_SETUP uvc_events_process: UVC_EVENT_SETUP uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: [ 676.640317] g_webcam gadget: uvc_function_set_alt(1, 1) [ 676.660790] g_webcam gadget: reset UVC 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_CUR uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_CUR uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_CUR uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 20 1c 0 0 2 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_GET_MIN_MAX_DEF uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 20 1c 0 0 2 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. uvc_events_process: UVC_EVENT_SETUP UVC_GET_CUR uvc_events_process: UVC_EVENT_SETUP UVC_SET_CUR uvc_events_process_data: 1 0 2 2 20 a1 7 0 0 0 0 0 0 0 0 0 0 0 0 20 1c 0 0 2 0 0 0 0 0 0 0 0 0 0 0 uvc_events_process_data: WARNING: MJPEG requested and no image loaded. 0] ------------[ cut here ]------------ vuc_events_process: UVC_EVENT_STREAMON--- uvc_video_stream: Staring video stream. uvc_video_stream: Queueing buffer 0. [ 676.866134] WARNING: CPU: 0 PID: 1170 at drivers/media/v4l2-core/videobuf2-v4l2.c:139 __fill_vb2_buffer+0x444/0x4bc() [ 676.887436] Modules linked in: g_webcam usb_f_uvc libcomposite configfs videobuf2_vmalloc videobuf_core bluetooth xhci_plat_hcd xhci_hcd usg [ 676.946079] CPU: 0 PID: 1170 Comm: uvcgadget Not tainted 4.4.41-03567-g7c580a5-dirty #1 [ 676.954112] Hardware name: Generic DRA74X (Flattened Device Tree) [ 676.960225] Backtrace: [ 676.962691] [] (dump_backtrace) from [] (show_stack+0x18/0x1c) [ 676.970288] r7:c04a11b4 r6:600f0013 r5:00000000 r4:c0940e0c [ 676.975998] [] (show_stack) from [] (dump_stack+0x8c/0xa0) [ 676.983252] [] (dump_stack) from [] (warn_slowpath_common+0x88/0xb8) [ 676.991371] r7:c04a11b4 r6:0000008b r5:00000009 r4:00000000 [ 676.997080] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x24/0x2c) [ 677.005897] r8:c095b68c r7:bf309978 r6:eea43e30 r5:eca7ea00 r4:eea43e30 [ 677.012659] [] (warn_slowpath_null) from [] (__fill_vb2_buffer+0x444/0x4bc) [ 677.021393] [] (__fill_vb2_buffer) from [] (__buf_prepare+0xe4/0x150) [ 677.029600] r8:c095b68c r7:bf309978 r6:eea43e30 r5:eca7ea00 r4:c04a0d70 [ 677.036360] [] (__buf_prepare) from [] (vb2_core_qbuf+0x130/0x1e0) [ 677.044305] r5:eca7ea00 r4:ebed3490 [ 677.047906] [] (vb2_core_qbuf) from [] (vb2_internal_qbuf+0x38/0x3c) [ 677.056025] r7:bf309978 r6:eca14d80 r5:ebed3490 r4:eea43e30 [ 677.061732] [] (vb2_internal_qbuf) from [] (vb2_qbuf+0x38/0x58) [ 677.069415] r5:ebed3490 r4:ebed3344 [ 677.073027] [] (vb2_qbuf) from [] (uvcg_queue_buffer+0x14/0x4c [usb_f_uvc]) [ 677.081775] [] (uvcg_queue_buffer [usb_f_uvc]) from [] (uvc_v4l2_qbuf+0x28/0x3c [usb_f_uvc]) [ 677.091988] r5:eea43e30 r4:ebed3344 [ 677.095596] [] (uvc_v4l2_qbuf [usb_f_uvc]) from [] (v4l_qbuf+0x44/0x48) [ 677.103976] r5:eea43e30 r4:edde9000 [ 677.107576] [] (v4l_qbuf) from [] (__video_do_ioctl+0x2c0/0x334) [ 677.115347] r7:c048e024 r6:ebed3000 r5:c044560f r4:00000003 [ 677.121053] [] (__video_do_ioctl) from [] (video_usercopy+0x1d4/0x4c4) [ 677.129347] r10:00000003 r9:bea8e874 r8:eea43e30 r7:00000000 r6:00000044 r5:00000044 [ 677.137237] r4:c044560f [ 677.139784] [] (video_usercopy) from [] (video_ioctl2+0x18/0x1c) [ 677.147554] r10:00000000 r9:eea42000 r8:ebed335c r7:bea8e874 r6:c044560f r5:edde9000 [ 677.155443] r4:ebed3000 [ 677.157990] [] (video_ioctl2) from [] (v4l2_ioctl+0xa8/0xe0) [ 677.165417] [] (v4l2_ioctl) from [] (do_vfs_ioctl+0x3f0/0x614) [ 677.173013] r9:eea42000 r8:bea8e874 r7:00000003 r6:edde9000 r5:ebdf7d40 r4:bea8e874 [ 677.180818] [] (do_vfs_ioctl) from [] (SyS_ioctl+0x3c/0x64) [ 677.188154] r10:00000000 r9:eea42000 r8:bea8e874 r7:c044560f r6:edde9000 r5:00000003 [ 677.196043] r4:edde9001 [ 677.198591] [] (SyS_ioctl) from [] (ret_fast_syscall+0x0/0x34) [ 677.206186] r9:eea42000 r8:c000fbc4 r7:00000036 r6:00000000 r5:00000000 r4:bea8eb88 [ 677.215559] ---[ end trace 26f5486ef30383a2 ]--- [ 677.220209] use of bytesused == 0 is deprecated and will be removed in the future, [ 677.227828] use the actual size instead. vuc_video_stream: Queueing buffer 1. uvc_video_stream: Queueing bffer 2. uvc_video_stream: Queueing buffer 3. uvc_video_stream: Streamon success