imx6ull i2c read and write failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6ull i2c read and write failed

958件の閲覧回数
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 返答(返信)

903件の閲覧回数
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 件の賞賛
返信

899件の閲覧回数
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 件の賞賛
返信

828件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

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

Best Regards,
Zhiming

0 件の賞賛
返信