The officially official Devuan Forum!

You are not logged in.

#1 2021-02-27 10:54:59

Johnnie390
Member
From: EU
Registered: 2018-12-09
Posts: 16  
Website

I2C, Devuan and Raspberry PI 4B (8GB)

Hello all,

I am running the above in an Argonone M.2 case.
To control the built-in fan (temps/speed) for the case, there is software to do this (https://gitlab.com/DarkElvenAngel/argon … -0.3.x.zip).
This setup worked flawlessly on RPIOS 64-bit.

In /boot/config.txt, I have this entry   dtparam=i2c_arm=on, however I cannot speak to the I2C bus using e.g. i2cdetect -y 1 at all.

Example -

i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
root@magalas:~# i2cdetect -y 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
root@magalas:~#

As can be seen from the above screenshot, I am dead in the water before I start...



Anyone any ideas?


Regards,


J.

Last edited by Johnnie390 (2021-02-27 11:42:51)

Offline

#2 2021-02-27 13:45:45

c0rnelius
Member
Registered: 2020-06-13
Posts: 33  

Re: I2C, Devuan and Raspberry PI 4B (8GB)

sudo modprobe i2c-dev

cat /etc/modules If you see it already there, then uncomment it and upon reboot it should load every time. If not, just add it to the file. i2c-dev

Offline

#3 2021-02-27 14:43:12

Johnnie390
Member
From: EU
Registered: 2018-12-09
Posts: 16  
Website

Re: I2C, Devuan and Raspberry PI 4B (8GB)

Had already uncommented the line in /etc/modules but I appreciate the assistance anyway.


Regards,


J.

Offline

#4 2021-02-27 15:02:48

c0rnelius
Member
Registered: 2020-06-13
Posts: 33  

Re: I2C, Devuan and Raspberry PI 4B (8GB)

Alright, well I just installed some needed bits and it seems to be appearing for me.

uncomment:

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

Install:
sudo apt install -y python3-dev python-smbus i2c-tools python3-pil python3-pip python3-setuptools python3-rpi.gpio

make sure the above modue is in /etc/modules and reboot.

Came right up:

ls /dev/i2c*
/dev/i2c-1
patrick@devuan:~$ sudo 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: -- -- -- -- -- -- -- -- 

Last edited by c0rnelius (2021-02-27 15:16:49)

Offline

#5 2021-02-28 08:47:35

Johnnie390
Member
From: EU
Registered: 2018-12-09
Posts: 16  
Website

Re: I2C, Devuan and Raspberry PI 4B (8GB)

Hallo all,

an entry in /etc/modules fixed same. Thanks.

J.

Offline

#6 2021-03-22 03:02:37

tuxd3v
Member
Registered: 2019-11-14
Posts: 183  

Re: I2C, Devuan and Raspberry PI 4B (8GB)

hello Johnnie390,

Can you mark this thread as Solved? smile


Best Regards,
tux

Offline

Board footer