View: 7022|Reply: 1

I2C not working

[Copy link]

2

threads

4

posts

56

credits

Registered member

Rank: 2

credits
56
Published in 2016-11-25 23:39:27 | Show all floors |Read mode
[tr][/tr]
Hi,
For me the image installs fine and i2c folders appear under /dev/ Also get following using i2cdetect -l and lsmod
root@OrangePI:/home/orangepi# i2cdetect -l
i2c-0   i2c             twi0                                    I2C adapter
i2c-1   i2c             twi1                                    I2C adapter


root@OrangePI:/home/orangepi# lsmod
Module                  Size  Used by
snd_usb_audio          79205  0
snd_usbmidi_lib        17391  1 snd_usb_audio
snd_hwdep               5337  1 snd_usb_audio
uvcvideo               59634  0



However, have tried various sensors on the i2c interface but nothing gets detected, following is the output for both 1 and 0

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


However, the dmesg error is different
bus 1 :  sunxi_i2c_do_xfer()980 - [i2c1] incomplete xfer
bus 0 : sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout

please suggest way forward to get i2c to work ...







Reply EditSupport Not support
[url=]Use magic[/url]





1 ...114115116117118119120121 / 121 Pages
Return to list[url=][/url][url=][/url]


0

threads

2

posts

24

credits

Novice

Rank: 1

credits
24
Published in 2017-1-15 10:29:16 | Show all floors
Any news on this?

I got a similar problem with i2c:

libkmod: ERROR ../libkmod/libkmod.c:505 kmod_lookup_alias_from_builtin_file: could not open builtin file '/lib/modules/3.4.39/modules.builtin.bin'
FATAL: Module i2c-sun7i not found.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list