imx6ull i2c read and write failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6ull i2c read and write failed

946 次查看
Et_MM
Contributor II

Hi,

I am working on imx6ull based custom board. So in that board we have configured camera ov5640 under i2c.

root@imx6ul7d:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

when i am trying to read or write showing failed.

root@imx6ul7d:~# i2cset -f -y 0 0x3c 0x32 0x12
Error: Write failed

When i searched i saw like if we are loading driver we cant read or write. if driver not loaded  it should show slave address 3c but for me its not showing so can you give me solution for this is there any way i can write or read?

what all i have to write to i2c is there in the attachment. please have a look at it, hoping for your reply.

 

 

标签 (2)
0 项奖励
回复
3 回复数

891 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

The camera i2c is not loaded successfully by Linux, so the UU showed and you can't control it. You can check the kernel boot log, there should be some errors.

Best Regards,
Zhiming

0 项奖励
回复

887 次查看
Et_MM
Contributor II

Hi,

Thanks for the reply, with dmesg i checked the kernal log but i didnt see any error message related to i2c or camera.

0 项奖励
回复

816 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

You can try to use v4l2-ctl to set or get specific registers.

Best Regards,
Zhiming

0 项奖励
回复