SOLVED 在Xavier-NX定制载板上使用sc132
-
您好,
我在NX的定制载板上使用sc132。之前已经在改载板上配置了RPI Camera V2 相机,可以正常使用。我根据sc132的配置信息,修改了dts文件,但是没有识别sc132相机。以下是log信息。帮我看看是哪里有问题。
nvidia@nvidia-desktop:~$ dmesg | grep cssc132
[ 2.030830] cssc132 1-0010: probing v4l2 sensor
[ 2.031136] cssc132 1-0010: tegracam sensor driver:cssc132_v2.0.6
[ 2.031649] cssc132 1-0010: cs_sc132_board_setup: error during i2c read probe (-121)
[ 2.031653] cssc132 1-0010: board setup failed
[ 2.031733] cssc132: probe of 1-0010 failed with error -121
[ 3.348546] cssc132 8-0010: probing v4l2 sensor
[ 3.348763] cssc132 8-0010: tegracam sensor driver:cssc132_v2.0.6
[ 3.348991] cssc132 8-0010: cs_sc132_board_setup: error during i2c read probe (-121)
[ 3.348994] cssc132 8-0010: board setup failed
[ 3.349084] cssc132: probe of 8-0010 failed with error -121 -
@jianping
还是i2c不通。
按照log,您修改的dts文件,应该是按照- i2c总线1和8访问摄像头,这个需要您确认跟硬件的设计一致。
- 摄像头的device address,您配置为0x10,这个跟我们模组不一致。我们模组的i2c地址是0x3b。
-
@veye_xumm
安装您说的,我修改成0x3b,现在正常了。用什么命令打开相机呢,是用nvgstcapture1.0打开相机吗?
nvidia@nvidia-desktop:~$ dmesg | grep cssc132
[ 1.958535] cssc132 1-003b: probing v4l2 sensor
[ 1.958895] cssc132 1-003b: tegracam sensor driver:cssc132_v2.0.6
[ 1.960410] cssc132 1-003b: read sensor id 0132
[ 1.960415] cssc132 1-003b: camera id is cs-mipi-sc132
[ 1.960455] cssc132 1-003b: Detected CS_MIPI_SC132 camera
[ 3.246782] cssc132 8-003b: probing v4l2 sensor
[ 3.247026] cssc132 8-003b: tegracam sensor driver:cssc132_v2.0.6
[ 3.247278] cssc132 8-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 3.247280] cssc132 8-003b: board setup failed
[ 3.247341] cssc132: probe of 8-003b failed with error -121
[ 3.263053] tegra194-vi5 15c10000.vi: subdev cssc132 1-003b bound -
@jianping
http://wiki.veye.cc/index.php/VEYE_CS_Camera_for_Jetson_TX2#Gstreamer_Usage
可以先试试这个。其他的参考上面的这个链接。gst-launch-1.0 v4l2src ! "video/x-raw,format=(string)UYVY, width=(int)1280, height=(int)1080, framerate=(fraction)45/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvoverlaysink sync=false