[SOLVED] I2C does not work on Raspberry Pi 4 (armv7l)

Raspberry Pi 2

[SOLVED] I2C does not work on Raspberry Pi 4 (armv7l)

Postby Pernat1y » Wed Mar 03, 2021 6:33 pm

Hello.

Trying to get i2c working on Raspberry Pi 4, but no success. Anyone can help?

uname -a:
$this->bbcode_second_pass_code('', 'Linux rpi4dev 5.10.17-2-ARCH #1 SMP Tue Feb 23 22:42:50 UTC 2021 armv7l GNU/Linux')

/boot/config.txt:
$this->bbcode_second_pass_code('', '# See /boot/overlays/README for all available options

gpu_mem=64
dtoverlay=w1-gpio
initramfs initramfs-linux.img followkernel

dtparam=i2c_arm=on
device_tree=bcm2711-rpi-4-b.dtb
device_tree_param=i2c1=on
device_tree_param=spi=on')

/boot/cmdline.txt:
$this->bbcode_second_pass_code('', 'root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200')

/etc/modules-load.d/raspberrypi.conf:
$this->bbcode_second_pass_code('', 'snd-bcm2835 i2c-dev i2c-bcm2708')

But no devices are created:
$this->bbcode_second_pass_code('', '[root@rpi4dev ~]# i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
[root@rpi4dev ~]# ls -la /dev/i2c*
ls: cannot access '/dev/i2c*': No such file or directory
')
Last edited by Pernat1y on Wed Mar 03, 2021 7:00 pm, edited 1 time in total.
Pernat1y
 
Posts: 2
Joined: Tue Sep 18, 2018 2:44 pm

Re: I2C does not work on Raspberry Pi 4 (armv7l)

Postby Pernat1y » Wed Mar 03, 2021 7:00 pm

Fixed it - just leaving 'i2c-dev' in '/etc/modules-load.d/raspberrypi.conf' will work.
Pernat1y
 
Posts: 2
Joined: Tue Sep 18, 2018 2:44 pm


Return to Broadcom

Who is online

Users browsing this forum: Google [Bot] and 5 guests