SOLVED 在向自己的Image中添加驱动的过程中遇到了error during i2c read probe (-121)
-
@veye_xumm said in 在向自己的Image中添加驱动的过程中遇到了error during i2c read probe (-121):
这种情况,按理说应该正常识别到摄像头了啊。你确认实际摄像头型号跟dtb中的型号一致吗?
mr123@mr123-emmc3:~$
mr123@mr123-emmc3:~$ dmesg |grep cssc
[ 7.762902] cssc132 7-003b: probing v4l2 sensor
[ 7.763294] cssc132 7-003b: tegracam sensor driver:cssc132_v2.0.6
[ 7.764842] cssc132 7-003b: read sensor id 0132
[ 7.769477] cssc132 7-003b: camera id is cs-mipi-sc132
[ 7.774748] cssc132 7-003b: Detected CS_MIPI_SC132 camera
[ 7.774797] cssc132 8-003b: probing v4l2 sensor
[ 7.775142] cssc132 8-003b: tegracam sensor driver:cssc132_v2.0.6
[ 7.775348] cssc132 8-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 7.783103] cssc132 8-003b: board setup failed
[ 7.787616] cssc132: probe of 8-003b failed with error -121
[ 7.940285] vi 54080000.vi: subdev cssc132 7-003b bound
mr123@mr123-emmc3:~$
是的,这个是我使用预编译的Image的dmesg,dtb都是同一个 -
@robot
这个dmesg看,已经成功了,一切正常。 -
@veye_xumm
是的,但是这个Image是从github上下载的,我自己的一直都不行:
mr123@mr123-emmc3:~$ dmesg |grep cssc
[ 1.711145] cssc132 7-003b: probing v4l2 sensor
[ 1.711521] cssc132 7-003b: tegracam sensor driver:cssc132_v2.0.6
[ 1.712203] cssc132 7-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 1.712206] cssc132 7-003b: board setup failed
[ 1.712267] cssc132: probe of 7-003b failed with error -121
[ 1.712310] cssc132 8-003b: probing v4l2 sensor
[ 1.712663] cssc132 8-003b: tegracam sensor driver:cssc132_v2.0.6
[ 1.712861] cssc132 8-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 1.712864] cssc132 8-003b: board setup failed
[ 1.712914] cssc132: probe of 8-003b failed with error -121mr123@mr123-emmc3:~$ i2cdetect -y -r 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- 19 -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: UU -- -- -- -- -- -- -- -- -- -- 3b -- -- -- --
40: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --所以就现在来说我比较怀疑cssc132驱动的问题。
或者说还有其他原因会导致这个现象吗?
在此过程中我只改变的Image。 -
@robot
看一下你的dmes全部内容,954这颗芯片的初始化,难不成跑到了132模组初始化后面去了?
或者你吧整个dmesg的输出保存成文件,post上来我看看。 -
@veye_xumm said in 在向自己的Image中添加驱动的过程中遇到了error during i2c read probe (-121):
954这颗芯片的初始化,难不成跑到了132模组初始化后面去了?
或者你吧整个dmesg的输出保存成文件,post上来我看看。您好,
是这样的,确实是先初始化的cssc132然后再初始化的ds90ub954:
[ 1.910350] i2c /dev entries driver
[ 1.912132] i2c i2c-6: Added multiplexed i2c bus 7
[ 1.912675] i2c i2c-6: Added multiplexed i2c bus 8
[ 1.912681] i2c-mux-gpio cam_i2cmux: 2 port mux on Tegra I2C adapter adapter
[ 1.913916] cssc132 7-003b: probing v4l2 sensor
[ 1.914301] cssc132 7-003b: tegracam sensor driver:cssc132_v2.0.6
[ 1.914460] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x3b
[ 1.914533] cssc132 7-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 1.922319] cssc132 7-003b: board setup failed
[ 1.926835] cssc132: probe of 7-003b failed with error -121
[ 1.926881] cssc132 8-003b: probing v4l2 sensor
[ 1.927229] cssc132 8-003b: tegracam sensor driver:cssc132_v2.0.6
[ 1.927366] tegra-vii2c 546c0000.i2c: no acknowledge from address 0x3b
[ 1.927439] cssc132 8-003b: cs_sc132_board_setup: error during i2c read probe (-121)
[ 1.935199] cssc132 8-003b: board setup failed
[ 1.939703] cssc132: probe of 8-003b failed with error -121
[ 1.939793] i2c-ds90ub954 7-0030: ds90ub954_probe: start
[ 1.939798] i2c-ds90ub954 7-0030: ds90ub954_parse_dt: deserializer:
[ 1.939804] i2c-ds90ub954 7-0030: pass-gpio not found, ignoring
[ 1.939808] i2c-ds90ub954 7-0030: lock-gpio not found, ignoring
[ 1.939813] i2c-ds90ub954 7-0030: pdb-gpio not found, ignoring
[ 1.939818] i2c-ds90ub954 7-0030: ds90ub954_parse_dt: - csi-lane-count 2
[ 1.939824] i2c-ds90ub954 7-0030: ds90ub954_parse_dt: - csi-lane-speed 800
[ 1.939828] i2c-ds90ub954 7-0030: ds90ub954_parse_dt: - test-pattern disabled
[ 1.939833] i2c-ds90ub954 7-0030: ds90ub954_parse_dt: - discontinuous clock used
[ 1.939860] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: parsing serializers device tree:
[ 1.939867] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - serializer rx-channel: 0
[ 1.939872] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: -test-pattern disabled
[ 1.939877] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - csi-lane-count 2
[ 1.939882] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio0-output-enable property not found
[ 1.939886] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio0-output-enable to default val: 0
[ 1.939891] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio1-output-enable property not found
[ 1.939895] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio1-output-enable to default val: 0
[ 1.939900] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio2-output-enable property not found
[ 1.939904] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio2-output-enable to default val: 0
[ 1.939908] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio3-output-enable property not found
[ 1.939912] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio3-output-enable to default val: 0
[ 1.939916] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio0-control property not found
[ 1.939920] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio0-control to default val: 0b1000
[ 1.939924] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio1-control property not found
[ 1.939928] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio1-control to default val: 0b1000
[ 1.939932] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio2-control property not found
[ 1.939936] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio2-control to default val: 0b1000
[ 1.939940] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - gpio3-control property not found
[ 1.939943] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: gpio3-control to default val: 0b1000
[ 1.939947] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - hs-clk-div property not found
[ 1.939951] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - hs-clk-div set to default val: 0x2 (div by 4)
[ 1.939955] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - div-m-val property not found
[ 1.939959] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - div-m-val set to default val: 1
[ 1.939963] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - div-n-val property not found
[ 1.939967] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - div-n-val set to default val: 0x28
[ 1.939972] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - i2c-address: 0x19
[ 1.940064] i2c-ds90ub954 7-0030: ds90ub953_i2c_client init client done
[ 1.940096] i2c-ds90ub954 7-0030: ds90ub953_regmap_init init regmap done
[ 1.940216] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - num of slave alias pairs: 1
[ 1.940221] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - slave addr: 0x3B, alias addr: 0x3B
[ 1.940225] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - discontinuous clock used
[ 1.940230] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - i2c-pass-through-all disabled
[ 1.940234] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - virtual-channel-map property not found
[ 1.940238] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: - virtual-channel-map set to default val: 0xE4
[ 1.940242] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: serializer 0 successfully parsed
[ 1.940247] i2c-ds90ub954 7-0030: ds90ub953_parse_dt: done
[ 1.954771] i2c-ds90ub954 7-0030: ds90ub954_init starting
[ 1.956670] i2c-ds90ub954 7-0030: ds90ub954_init: device ID: 0x60, code:_UB954, revision: 0x20 -
@robot said in 在向自己的Image中添加驱动的过程中遇到了error during i2c read probe (-121):
您好,
是这样的,确实是先初始化的cssc132然后再初始化的ds90ub954:你看一下你合并我们的代码部分,注意makefile和kconfig中954和132两个驱动的先后顺序。 这个影响调用顺序。
-
@veye_xumm said in 在向自己的Image中添加驱动的过程中遇到了error during i2c read probe (-121):
注意makefile和kconfig中954和132两个驱动的先后顺序。 这个影响调用顺序。
好的,谢谢您了。
另外我今天新到四个cssc132相机,如果想要全部识别到的话,我是否需要对其进行硬件上的修改? -
@robot
不客气。 我不太清楚你买的订单的硬件信息。 可以看我们这页文章:
http://wiki.veye.cc/index.php/CS-FPD-XAVIER-nCAM_Series -
@veye_xumm
好的,谢谢您,Image的问题解决了。
关于四路相机的问题,我希望在新帖中向您提问。 -
@robot ok