如何使用usb摄像头?

用户您好,请详细描述您所遇到的问题。

1.硬件获取渠道:芯板坊

2.当前系统镜像版本:BusyBox v1.29.2 (2020-06-17 20:16:09 CST) multi-call binary.

3.系统镜像为出厂自带的镜像。

问题说明:

1.usb摄像头插入之后能够正常识别,dmesg信息如下:

[10694.314261] usb 1-1.3: USB disconnect, device number 5

[10702.126213] usb 1-1.3: new high-speed USB device number 6 using xhci-hcd

[10702.253111] uvcvideo: Found UVC 1.00 device HD USB Camera (32e4:9520)

[10702.383516] uvcvideo 1-1.3:1.0: Entity type for entity Extension 2 was not initialized!

[10702.384556] uvcvideo 1-1.3:1.0: Entity type for entity Processing 3 was not initialized!

[10702.385600] uvcvideo 1-1.3:1.0: Entity type for entity Camera 1 was not initialized!

[10702.386856] input: HD USB Camera as /devices/platform/soc/b2000000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.3/1-1.3:1.0/input/input3

2.设备节点能够正常产生。

root@x3sdbx3-samsung2G-3200:~# ls /dev/video*

/dev/video0 /dev/video1 /dev/video2 /dev/video3 /dev/video4 /dev/video5 /dev/video6 /dev/video7 /dev/video8

3.参考用户手册《 8.2.19. 如何使用usb_webcam单元测试程序》报以下错误:

root@x3sdbx3-samsung2G-3200:~# /etc/init.d/usb-gadget.sh start uvc

Detecting platform:

board : Hobot XJ3 SOC SDB

udc :

sh: missing ]

cat: can’t open ‘/sys/devices/platform/soc//role’: No such file or directory

not usb gadget mode, can’t start usb-gadget

root@x3sdbx3-samsung2G-3200:~#

建议出一个完整的如何使用usb摄像头的文档

你好,我想使用ubuntu的镜像,但是镜像文件太大了,无法进行升级,然后我看文档上要分包,但是找不到这个分包文件在哪里。

我搜索所有文件了,也还是没有找到。

software_tools/update_tools/separate_disk.sh

goodwell 您好,目前您的镜像版本太低,需要进行更新-
下载链接:

文件 - Nextcloud (horizon.ai)

升级新版本的以后,还是报错

root@x3sdbx3-samsung2G-3200:~# /etc/init.d/usb-gadget.sh start uvc

Detecting platform:

board : Hobot XJ3 SOC SDB

udc :

cat: can’t open ‘/sys/devices/platform/soc/b2000000.usb//role’: No such file or directory

not usb gadget mode, can’t start usb-gadget

ubuntu 开发手册正在更新,预计月底前放出来,会有usb camera 调用的示例

然后我现在即使想改脚本也是提示该脚本是只读的,无法修改

您好:手册中提到,开启权限需要输入指令:

mount -o rw,remount /