/dev/video0: No such file or directory

I am trying “v4l2-ctl --list-devices” on TX2 in which one CSI and one USB 3.0 camera is connected. The command is returning

Failed to open /dev/video0: No such file or directory

what might be the problem?

Hi,

What camera did you have at the CSI port?

What USB camera are you using?

Could you post the output for:

ls /dev/video*

Also, could you share the output of your system log?

dmesg

You need to make sure that both cameras are recognized by the kernel and the drivers are loaded. CSI cameras require very specific kernel drivers and set them up correctly at the device tree. USB cameras are usually UVC compliant so it should be detected without issues by the kernel.

Best Regards,

Thanks MarcoMadrigal for your replay.
Isn’t CSI driver part of BSP image?

The CSI camera I am trying is
https://leopardimaging.com/product/li-imx274-mipi-cs/

USB camera is Boson manufactured by FLir. Its a standard UVC. I used and interfaced it in Windows before.
https://www.flir.ca/products/boson/?creative=287024435974&keyword=%2Bflir%20%2Bboson&matchtype=b&network=g&device=c&gclid=EAIaIQobChMImszalo3O4gIVQxx9Ch2gCwUxEAAYASAAEgLqDPD_BwE

outputs:

$ ls /dev/video*
ls: cannot access ‘/dev/video*’: No such file or directory

Thanks.

Hi caruofc,

The Jetpack comes with some default drivers for some cameras such as the OV5693 which is the onboard camera that comes with the dev kit. For others such as the IMX274 you need to create your own device driver to support the camera sensor and it also requires some additional modifications to the system:

About the USB camera could you please share your dmesg output in order to check whether the kernel is complaining about it? Also, did you try the camera on a Linux computer?

Best Regards,

Hi Macro,

I’m having the same issue with the FLIR #5 USB camera with the Jetson Nano Developer kit and have supplied the output you requested.

I’ve already recompiled imagenet-camera file to device 0 as suggested.

The Cheese app displays the FLIR camera 320x240 image perfectly.

thirstin@thirstin-desktop:/jetbot v4l2-ctl --info --list-devices
FLIR Ex-Series (usb-70090000.xusb-2.3):
/dev/video0

Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : FLIR Ex-Series
Bus info : usb-70090000.xusb-2.3
Driver version: 4.9.140
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format

thirstin@thirstin-desktop:/jetbot$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2
Size: Discrete 320x240
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.267s (3.750 fps)

$./imagenet-camera
imagenet-camera
args (1): 0 [./imagenet-camera]

[gstreamer] initialized gstreamer, version 1.14.1.0
[gstreamer] gstCamera attempting to initialize with GST_SOURCE_NVCAMERA
[gstreamer] gstCamera pipeline string:
v4l2src device=/dev/video0 ! video/x-raw, width=(int)1280, height=(int)720, format=YUY2 ! videoconvert ! video/x-raw, format=RGB ! videoconvert !appsink name=mysink
[gstreamer] gstCamera successfully initialized with GST_SOURCE_V4L2

imagenet-camera: successfully initialized video device
width: 1280
height: 720
depth: 24 (bpp)

imageNet – loading classification network model from:
– prototxt networks/googlenet.prototxt
– model networks/bvlc_googlenet.caffemodel
– class_labels networks/ilsvrc12_synset_words.txt
– input_blob ‘data’
– output_blob ‘prob’
– batch_size 2

[TRT] TensorRT version 5.0.6
[TRT] detected model format - caffe (extension ‘.caffemodel’)
[TRT] desired precision specified for GPU: FASTEST
[TRT] requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT] native precisions detected for GPU: FP32, FP16
[TRT] selecting fastest native precision for GPU: FP16
[TRT] attempting to open engine cache file networks/bvlc_googlenet.caffemodel.2.1.GPU.FP16.engine
[TRT] cache file not found, profiling network model on device GPU
[TRT] device GPU, loading networks/googlenet.prototxt networks/bvlc_googlenet.caffemodel
[TRT] retrieved Output tensor “prob”: 1000x1x1
[TRT] retrieved Input tensor “data”: 3x224x224
[TRT] device GPU, configuring CUDA engine
[TRT] device GPU, building FP16: ON
[TRT] device GPU, building INT8: OFF
[TRT] device GPU, building CUDA engine (this may take a few minutes the first time a network is loaded)

imagenet-camera: failed to capture frame
imagenet-camera: failed to convert from NV12 to RGBA
[TRT] imageNet::Classify( 0x(nil), 1280, 720 ) -> invalid parameters
[cuda] cudaNormalizeRGBA((float4*)imgRGBA, make_float2(0.0f, 255.0f), (float4*)imgRGBA, make_float2(0.0f, 1.0f), camera->GetWidth(), camera->GetHeight())
[cuda] invalid device pointer (error 17) (hex 0x11)
[cuda] /jetbot/jetson-inference/imagenet-camera/imagenet-camera.cpp:193

$ dmesg
[ 11.193298] uvcvideo: Found UVC 1.00 device FLIR Ex-Series (09cb:1007)
[ 11.196312] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 11.197455] uvcvideo 1-2.3:1.0: Entity type for entity Extension 6 was not initialized!
[ 11.205624] uvcvideo 1-2.3:1.0: Entity type for entity Processing 5 was not initialized!
[ 11.214074] uvcvideo 1-2.3:1.0: Entity type for entity Selector 4 was not initialized!
[ 11.222290] uvcvideo 1-2.3:1.0: Entity type for entity Camera 1 was not initialized!
[ 11.230775] input: FLIR Ex-Series as /devices/70090000.xusb/usb1/1-2/1-2.3/1-2.3:1.0/input/input4
[ 11.231044] usbcore: registered new interface driver uvcvideo
[ 11.231047] USB Video Class driver (1.1.1)
[ 12.020568] scsi host0: scsi scan: INQUIRY result too short (5), using 36
[ 12.020578] scsi 0:0:0:0: Direct-Access PQ: 0 ANSI: 0
[ 12.032916] sd 0:0:0:0: [sda] 89664 2048-byte logical blocks: (184 MB/175 MiB)
[ 12.042239] sd 0:0:0:0: [sda] Write Protect is off
[ 12.047074] sd 0:0:0:0: [sda] Mode Sense: 00 06 00 00
[ 12.048496] sd 0:0:0:0: [sda] Asking for cache data failed
[ 12.054052] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 12.077084] sda:
[ 12.096036] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 12.957724] fuse init (API version 7.26)
[ 13.181706] r8168: eth0: link up
[ 13.181811] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 14.103134] tegradc tegradc.0: blank - powerdown
[ 14.221505] extcon-disp-state extcon:disp-state: cable 47 state 0
[ 14.221512] Extcon AUX1(HDMI) disable
[ 14.258650] tegradc tegradc.1: blank - powerdown
[ 14.315493] tegradc tegradc.0: blank - powerdown
[ 14.315517] tegradc tegradc.0: unblank
[ 14.321830] tegradc tegradc.0: nominal-pclk:85500000 parent:85500000 div:1.0 pclk:85500000 84645000~93195000
[ 14.321909] tegradc tegradc.0: hdmi: tmds rate:85500K prod-setting:prod_c_hdmi_75m_150m
[ 14.323000] tegradc tegradc.0: hdmi: get RGB quant from EDID.
[ 14.323007] tegradc tegradc.0: hdmi: get YCC quant from EDID.
[ 14.326310] extcon-disp-state extcon:disp-state: cable 47 state 1
[ 14.326312] Extcon AUX1(HDMI) enable
[ 14.329436] tegradc tegradc.0: unblank
[ 14.329632] tegradc tegradc.1: blank - powerdown
[ 24.450569] FAT-fs (sda): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 137.399621] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 137.399632] Bluetooth: BNEP socket layer initialized

Thanks much,
Bill