Gstnvarguscamerasrc.cpp, execute:521 No cameras available

Hello,
We are trying to update from JP 3.3 to 4.2 for the Jetson Tx2 with our custom carrier board and imx219 camera.
we compile source L4T32.2.1,v4l2 video node is OK,

ls /dev/vid*
/dev/video0
v4l2-ctl -V

Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'RG10'
        Field             : None
        Bytes per Line    : 3840
        Size Image        : 4147200
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             :



 v4l2-ctl -d /dev/video0 --list-formats
 
 ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'RG10'
        Name        : 10-bit Bayer RGRG/GBGB

we can capture camera without error,using v4l2 ::

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=imx219.raw

but when execute this command:

FILE=filename.mp4
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' \
! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc bitrate=8000000 ! 'video/x-h264, stream-format=(string)byte-stream' \
! h264parse ! qtmux ! filesink location=$FILE -e

See NvArgusCameraSrc function error output:

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:521 No cameras available
Got EOS from element "pipeline0".

My question is How do I fix this?
Thank you!!

hello hhami.2040,

suggest you should access Camera Sensor Drivers Porting Guide for upgrading the linux kernel driver, especially from kernel-4.4 to kernel-4.9.
also, since v4l2 standard controls works. it verified the communication of low-level drivers.
you should also review Sensor Software Driver Programming Guide to check all your device tree properties settings.
thanks

thanks JerryChang,
my problem solved,

cd ~/
sudo mv /lib/modules/4.9.140-tegra/ /lib/modules/4.9.140
sudo reboot

reboot is very important,
Without the reboot, the problem will not be resolved.
thanks

Hello, i have done that, but after that nano will not reboot.Any idea why ?

Hi videofun34,

Please file your issue into Jetson Nano forum - https://devtalk.nvidia.com/default/board/371/jetson-nano/

dont do what #3 say = =
you will not be able to open your jetson nano anymore if you change the file name
if you have already done the process above, you need another linux computer to change the file name back