设备:NVIDIA JETSON AGX XAVIER 板子,即插即用 USB 摄像头(之前在同型号板子上录制过图像,可排除设备硬件问题) 系统:使用 NVIDIA SDKManager 安装的 64 位 Ubuntu18.04LTS
内存:32GB CPU:ARMv8 Processor rev 0 (v8l) × 8
图形显示:NVIDIA Tegra Xavier (nvgpu)/integrated
问题描述:
无法使用摄像头。
1.打开 GUI 图形版本 cheese 直接闪退,终端输入 cheese 后,输出
(cheese:10271): Clutter-WARNING **: 17:48:52.948: Whoever translated default:LTR did so wrongly.
(cheese:10271): Gtk-WARNING **: 17:48:53.125: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version
Opening in BLOCKING MODE
段错误 (核心已转储)
2.输入 camorama 命令,输出
Opening in BLOCKING MODE
段错误 (核心已转储)
3.输入 dmesg 命令,相关输出如下
……
[ 8.585008] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.602004] usb 1-4.4: new high-speed USB device number 5 using tegra-xusb
[ 8.628439] nvgpu: 17000000.gv11b tpc_pg_mask_store:843 [INFO] no value change, same mask already set
[ 8.662969] gpio tegra-gpio wake20 for gpio=52(G:4)
[ 8.670838] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.755785] usb 1-4.4: New USB device found, idVendor=1bcf, idProduct=2284
[ 8.755794] usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8.755798] usb 1-4.4: Product: aoni Webcam
[ 8.755801] usb 1-4.4: Manufacturer: Sunplus IT Co
[ 9.025078] usb 1-4.4: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[ 9.025382] usb 1-4.4: [5] FU [Mic Capture Volume] ch = 1, val = 0/4096/1
[ 9.380506] uvcvideo: Found UVC 1.00 device aoni Webcam (1bcf:2284)
[ 9.402190] uvcvideo 1-4.4:1.0: Entity type for entity Extension 3 was not initialized!
[ 9.402418] uvcvideo 1-4.4:1.0: Entity type for entity Processing 2 was not initialized!
[ 9.402591] uvcvideo 1-4.4:1.0: Entity type for entity Camera 1 was not initialized!
[ 9.403258] input: aoni Webcam as /devices/3610000.xhci/usb1/1-4/1-4.4/1-4.4:1.0/input/input10
[ 9.403514] usbcore: registered new interface driver uvcvideo
[ 9.403519] USB Video Class driver (1.1.1)
[ 9.539376] zram: Added device: zram0
[ 9.539969] zram: Added device: zram1
[ 9.540471] zram: Added device: zram2
[ 9.541125] zram: Added device: zram3
[ 9.547594] zram: Added device: zram4
[ 9.548813] zram: Added device: zram5
[ 9.549366] zram: Added device: zram6
[ 9.552869] zram: Added device: zram7
[ 9.575294] zram0: detected capacity change from 0 to 2091954176
……
4.输入 cd /dev , dmesg | grep video,输出
[ 0.000000] Kernel command line: console=ttyTCU0,115200 video=tegrafb no_console_suspend=1 earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt rootfs.slot_suffix= tegra_fbmem=0x800000@0xa06a0000 lut_mem=0x2008@0xa069b000 usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=8 boot.slot_suffix=_b boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4
[ 1.023302] Linux video capture interface: v2.00
[ 9.380506] uvcvideo: Found UVC 1.00 device aoni Webcam (1bcf:2284)
[ 9.402190] uvcvideo 1-4.4:1.0: Entity type for entity Extension 3 was not initialized!
[ 9.402418] uvcvideo 1-4.4:1.0: Entity type for entity Processing 2 was not initialized!
[ 9.402591] uvcvideo 1-4.4:1.0: Entity type for entity Camera 1 was not initialized!
[ 9.403514] usbcore: registered new interface driver uvcvideo
[ 1746.377467] uvcvideo: Found UVC 1.00 device KS2A418-2.0 (2304:4922)
[ 1746.384875] uvcvideo 1-4:1.0: Entity type for entity Extension 4 was not initialized!
[ 1746.385034] uvcvideo 1-4:1.0: Entity type for entity Extension 3 was not initialized!
[ 1746.385161] uvcvideo 1-4:1.0: Entity type for entity Processing 2 was not initialized!
[ 1746.385306] uvcvideo 1-4:1.0: Entity type for entity Camera 1 was not initialized!
5.输入 lsusb,输出
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1bcf:2284 Sunplus Innovation Technology Inc.
Bus 001 Device 004: ID 2717:5016
Bus 001 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 002: ID 2109:2815 VIA Labs, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
6.输入 ls /dev/v*,输出
/dev/vcs /dev/vcs3 /dev/vcs6 /dev/vcsa2 /dev/vcsa5 /dev/video0
/dev/vcs1 /dev/vcs4 /dev/vcsa /dev/vcsa3 /dev/vcsa6
/dev/vcs2 /dev/vcs5 /dev/vcsa1 /dev/vcsa4 /dev/vhci
/dev/v4l:
by-id by-path
/dev/vfio:
vfio
可以看到有 /dev/video0
7.输入 sudo chmod 777 /dev/video0
8.我浏览了很多网页,实在不知道该怎么做了,就是打开一个摄像头而已,求 v 友给点解决办法或思路! 跪求!
1
silencht OP 放弃了,直接用 Opencv 打开使用了。
|