Hi all,
this is my first post here, nice to meet you all !
I try to use MOD-IO and Olinuxino A64, however :
1.
sudo i2cdetect -l
i2c-0 i2c DesignWare HDMI I2C adapter
( I presume I shoud not touch the i2c-0 bus )
2. and ( no more i2c devices ) :
user@vldreamcomplexturn1:~$ sudo i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
user@vldreamcomplexturn1:~$ sudo i2cdetect -y 2
Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directory
I have checked the cable, connector , used another board MOD-IO ( there are 2 in this project ).
The status led is blinking each second .
MOD-IO Board is powered at 12V DC .
I there something I need to do to initialize the board ?
I have tried the suggestion from here however I could not get it to work :
https://www.olimex.com/forum/index.php?topic=2866.msg11989;topicseen#msg11989
( or maybe I don't understand it exactly )
Thank you very much !
I tested it today. It seems that UEXT has i2c #1 which is not enabled in the suggested image.
Something shows as 0x30 with
i2cdetect -r -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
But this is not the MOD-IO.
I think some overlay from here has to be activated:
https://github.com/OLIMEX/OLIMEX-sunxi-overlays/tree/master/sun50i-a64
Download the overlay for i2c and enable it with
sudo armbian-add-overlay sun50i-a64-i2c1.dts
reboot and check with
root@olinuxino:~# i2cdetect -r -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Thank you very much !
Works like a charm ! Made my day !