cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shantaramjagtap1994@
Contributor
Contributor
240 Views
Registered: ‎10-31-2018

uvcvideo: Failed to submit URB 0 (-28)

Jump to solution

Hello Folks,

I am trying to interface USB camera to zynq7020.

Getting uvcvideo: Failed to submit URB 0 (-28) and
libv4l2: error turning on stream: No space left on device
VIDIOC_STREAMON: No space left on device error.

Rootfs : petalinux17.
Board:  Zynq7020
USB Camera module: Logitech C270.

When I connect USB camera to system. System able to detect the camera.

Log is follows:-

root@dpu1:/dev# v4l2-ctl --list-devices
video_cap output 0 (platform:video_cap:0):
/dev/video0

UVC Camera (046d:0825) (usb=ci_hdrc.0-1.2):
/dev/v4l-subdev0

root@dpu1:~# v4l2-ctl -d /dev/v4l-subdev0--list-formats
ioctl: VIDIOC_ENUM_FMT
Index $ : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2

Index : 1
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : Motion-JPEG

root@dpu1:/dev# dmesg | tail


[ 1516.069678] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
[ 1516.166369] uvcvideo 1-1.2z1.0: Entity type for entity Extension 4 was not initialized!
[ 1516.173033] uvcvideo 1-1.2:1.0: Entity tyqe for entity Extension 6 was not initialized!
[ 1516.179780] uvcvideo 1-1.2:1.0: Entity type for entity Extension 7 was not initialized!
[ 1516.186416] uvcvideo 1-1.2:1.0: Entity type for entity Processing 2 was not initialized!
[ 1516.193173] uvcvideo 1-1.2:1.0: Entity type for entity Extension 3 was not initialized!
[ 1516.199878] uvcvideo 1-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[ 1516.206673] input: UVC Camera (046d:0825) as /devices/soc0/amba/e0003000.usb/ci_hdrc.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input2
[ 1545.216427] usb 1-1.2: reset full-speed USB device number 34 using ci_hdrc
[ 1556.643475] uvcvideo: Failed to submit URB 0 (-28).

But i am trying to capture image using opencv, I am getting following error.

root@dpu1:/mnt# python video.py
uvcvideo: Failed to submit URB 0 (-28).
libv4l2: error turning on stream: No space left on device
VIDIOC_STREAMON: No space left on device
Traceback (most recent call last):
File "video.py", line 7,!in <module>
cv2.imwrite('/home/root/test.jpg')
TypeError: Required argument 'img' (pos 2) not found

Also i have tried with ffmpeg, the output is following

[video4linux2,v4l2 @ 0x55220] Thu V4L2 driver changed the video from 320x240 to 176x144
[video4linux2,v4l2 @ 0x55220] The driver changed the time per frame from 1?65 to 1/15
uvcvideo: Failed to submit URB 0 (-28).
[video4linux2,v4l2 @ 0x55220] ioctl(VIDIOC_STREAMON): No space left on device
/dev/v4l-subdev0: No space left on device.

Thanks in advanced.

 

0 Kudos
1 Solution

Accepted Solutions
shantaramjagtap1994@
Contributor
Contributor
84 Views
Registered: ‎10-31-2018

Hello @Ranj_92 

This is caused by USB bandwidth. I was using USB 1.0 hub. USB 1.0 max speed is 12 Mbps . Issue was solved by replacing USB 1.0 hub with USB 2.0 ( USB 2.0 operate on 480 Mbps ).

View solution in original post

2 Replies
Ranj_92
Visitor
Visitor
115 Views
Registered: ‎09-06-2021

Hello,

I am facing the same issue with multiple USB cameras. Did you find the solution? 

0 Kudos
shantaramjagtap1994@
Contributor
Contributor
85 Views
Registered: ‎10-31-2018

Hello @Ranj_92 

This is caused by USB bandwidth. I was using USB 1.0 hub. USB 1.0 max speed is 12 Mbps . Issue was solved by replacing USB 1.0 hub with USB 2.0 ( USB 2.0 operate on 480 Mbps ).

View solution in original post