USB 摄像头:设备上没有剩余空间 (-28)

USB 摄像头:设备上没有剩余空间 (-28)

我正在用 lichee pi 0 开发一个项目。我想将 USB 摄像头连接到它并录制视频并在 LCD 上显示。第一步,我构建了 u-boot 和内核并将它们写入 SD 卡上。效果很好。然后我将 USB 摄像头连接到它。但它没认出来。所以我搜索并意识到我应该更改设备树中的“OTG dir”。所以我将其更改为“host”以将其用作主机。然后我编译了设备树并替换为原始设备树。之后USB摄像头被识别,但没有合适的驱动程序。因此,我对内核菜单配置进行了一些更改,并向内核添加了 v4l2、usb_video_class 等内容,然后我再次构建了内核。

毕竟 USB 摄像头识别得很好并且驱动程序自动设置。此时我遇到了一个严重错误,我花了两周时间都无法解决它。

我正在使用 yavta 来捕获和保存帧。我得到了它,并为我的董事会交叉编译了它。最后我在 lichee pi 上尝试使用 USB 摄像头 yavta 。

我的命令: $ ./yavta --capture=25 --file=out.mjpeg /dev/video0

输出错误:

Device /dev/video0 opened.
Device 'USB Camera' on 'usb-musb-hdrc.1.auto-1' (driver 'uvcvideo') supports video, capture, without mplanes.
Video format: MJPEG (47504a4d) 640x480 (stride 0) field none buffer size 614400
8 buffers requested.
length: 614400 offset: 0 timestamp type/source: mono/SoE
Buffer 0/0 mapped at address 0xb6d88000.
length: 614400 offset: 614400 timestamp type/source: mono/SoE
Buffer 1/0 mapped at address 0xb6cf2000.
length: 614400 offset: 1228800 timestamp type/source: mono/SoE
Buffer 2/0 mapped at address 0xb6c5c000.
length: 614400 offset: 1843200 timestamp type/source: mono/SoE
Buffer 3/0 mapped at address 0xb6bc6000.
length: 614400 offset: 2457600 timestamp type/source: mono/SoE
Buffer 4/0 mapped at address 0xb6b30000.
length: 614400 offset: 3072000 timestamp type/source: mono/SoE
Buffer 5/0 mapped at address 0xb6a9a000.
length: 614400 offset: 3686400 timestamp type/source: mono/SoE
Buffer 6/0 mapped at address 0xb6a04000.
length: 614400 offset: 4300800 timestamp type/source: mono/SoE
Buffer 7/0 mapped at address 0xb696e000.
[   79.878953] uvcvideo: Failed to submit URB 0 (-28).
Unable to start streaming: No space left on device (28).
8 buffers released.

相关内容