ORIN NX无法生成/dev/video节点

我们使用ORIN NX核心板,使用GMSL摄像头,jetpack版本为5.1,MAX9286解串器目前已经调通,但是一直无法生成/dev/video节点,具体操作如下:
dtb改动:

  1. 总线名称适配,包括I2C、host1x、nvcsi、gpio(用于reset9286)
    代码改动:
    1.isx019.c
    // else if(!strcmp(str_value, “c”))
    // priv->g_ctx.serdes_csi_link = GMSL_SERDES_CSI_LINK_C;
    // else if(!strcmp(str_value, “d”))
    // priv->g_ctx.serdes_csi_link = GMSL_SERDES_CSI_LINK_D;
    orin只有两路,去掉C、D。
    操作:模块化编译max9286.ko、isx019.ko。手动插入。
    现象:isx019正确初始化,体现在0x31是40,0x49是01(只插了一个摄像头),然后dmesg没有相关报错。但是无法注册设备节点video0~3。

如下是相关驱动日志
dmesg.txt (6.3 KB)
isx019.c (17.1 KB)

hello tiancai1234,

it looks drive probing has completed.

[  315.339767] isx019 7-001a: Detected ISX019 sensor
[  315.347764] isx019 7-001b: Detected ISX019 sensor
[  315.355327] isx019 7-001c: Detected ISX019 sensor
[  315.362787] isx019 7-001d: Detected ISX019 sensor

may I know what’s your device tree settings,
please examine the port bindings, you should also check you’ve enable virtual channel IDs.
please check developer guide, Jetson Virtual Channel with GMSL Camera Framework — Jetson Linux Developer Guide documentation.
you may see-also reference camera driver for demonstration, $public_sources/kernel_src/hardware/nvidia/platform/t23x/common/kernel-dts/t234-common-modules/tegra234-camera-imx390-a00.dtsi

您好,我们目前能够生成video节点,但是一直无法出图,使用
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw,format=UYVY,width=1280,height=960’ ! videoconvert ! fpsdisplaysink video-sink=xvimagesink sync=false
测试时,发现是绿屏,dmesg报错信息:
[ 1865.941115] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 1865.950330] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 1865.961845] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1865.969575] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 1865.981074] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1865.989109] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 1866.000263] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 1868.757068] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 1868.766269] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 1868.776821] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1868.784706] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 1868.795505] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1868.803526] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 1868.814575] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

我无法把控Orin NX和xavier Nano在jetsonSDK版本变更下的差异,麻烦指导我对问题进行排查。
提供设备树文件。
tegra234-p3767-camera-isx019.dtsi (14.2 KB)

tegra234-p3767-camera-gmsl-isx019.dtsi (4.0 KB)

hello tiancai1234,

did you meant there’re four video nodes created? i.e. $ ls /dev/video*
could you please also check developer guide, Verifying the V4L2 Sensor Driver.

BTW,
in order to ignore clock configuration related issue,
please try below commands to boost all the VI/CSI/ISP clocks.
for example,

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.