Rpi2 i2C0 - Error: Could not open file `/dev/i2c-0' or `/dev - Raspberry Pi Forums
hi,
i'm trying i2c.0 working on raspberry pi2.
i2c.1 working fine. have attached i2c devices , found 'i2cdetect -y 1'
need 2 i2c buses need i2c.0 working
'i2cdetect -y 0' "error: not open file `/dev/i2c-0' or `/dev/i2c/0': no such file or directory"
can me out here?
*** update: solved ***
after reading "http://www.raspberrypi.org/documentatio ... ce-tree.md"
in /boot/config.txt put # in line "#device_tree="
(i did other trials, pretty sure fixed it)
***
have found few posts solutions i2c nothing helping me.
far, have done:
- apt-get update & upgrade
- raspi-config: enables i2c , spi
- apt-get install i2c-tools libi2c-dev
- installed wiringpi
- appended /boot/config.txt:dtparam=i2c_arm=on
dtparam=i2c0=on
dtparam=i2c1=on
dtparam=spi=on
dtparam=i2c_vc=on
-appended /boot/cmdline.txt:
bcm2708.vc_i2c_override=1
- /etc/modprobe.d/raspi-blacklist.conf empty
- in /etc/modules have:
snd-bcm2835
i2c-dev
following output 'gpio read all':
gpio readall
i'm trying i2c.0 working on raspberry pi2.
i2c.1 working fine. have attached i2c devices , found 'i2cdetect -y 1'
need 2 i2c buses need i2c.0 working
'i2cdetect -y 0' "error: not open file `/dev/i2c-0' or `/dev/i2c/0': no such file or directory"
can me out here?
*** update: solved ***
after reading "http://www.raspberrypi.org/documentatio ... ce-tree.md"
in /boot/config.txt put # in line "#device_tree="
(i did other trials, pretty sure fixed it)
***
have found few posts solutions i2c nothing helping me.
far, have done:
- apt-get update & upgrade
- raspi-config: enables i2c , spi
- apt-get install i2c-tools libi2c-dev
- installed wiringpi
- appended /boot/config.txt:dtparam=i2c_arm=on
dtparam=i2c0=on
dtparam=i2c1=on
dtparam=spi=on
dtparam=i2c_vc=on
-appended /boot/cmdline.txt:
bcm2708.vc_i2c_override=1
- /etc/modprobe.d/raspi-blacklist.conf empty
- in /etc/modules have:
snd-bcm2835
i2c-dev
following output 'gpio read all':
gpio readall
code: select all
+-----+-----+---------+------+---+---pi 2---+---+------+---------+-----+-----+ | bcm | wpi | name | mode | v | physical | v | mode | name | wpi | bcm | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 2 | 8 | sda.1 | alt0 | 1 | 3 || 4 | | | 5v | | | | 3 | 9 | scl.1 | alt0 | 1 | 5 || 6 | | | 0v | | | | 4 | 7 | gpio. 7 | in | 1 | 7 || 8 | 1 | alt0 | txd | 15 | 14 | | | | 0v | | | 9 || 10 | 1 | alt0 | rxd | 16 | 15 | | 17 | 0 | gpio. 0 | in | 0 | 11 || 12 | 0 | in | gpio. 1 | 1 | 18 | | 27 | 2 | gpio. 2 | in | 0 | 13 || 14 | | | 0v | | | | 22 | 3 | gpio. 3 | in | 0 | 15 || 16 | 0 | in | gpio. 4 | 4 | 23 | | | | 3.3v | | | 17 || 18 | 0 | in | gpio. 5 | 5 | 24 | | 10 | 12 | mosi | alt0 | 0 | 19 || 20 | | | 0v | | | | 9 | 13 | miso | alt0 | 0 | 21 || 22 | 0 | in | gpio. 6 | 6 | 25 | | 11 | 14 | sclk | alt0 | 0 | 23 || 24 | 1 | alt0 | ce0 | 10 | 8 | | | | 0v | | | 25 || 26 | 1 | alt0 | ce1 | 11 | 7 | | 0 | 30 | sda.0 | in | 1 | 27 || 28 | 1 | in | scl.0 | 31 | 1 | | 5 | 21 | gpio.21 | in | 1 | 29 || 30 | | | 0v | | | | 6 | 22 | gpio.22 | in | 1 | 31 || 32 | 0 | in | gpio.26 | 26 | 12 | | 13 | 23 | gpio.23 | in | 0 | 33 || 34 | | | 0v | | | | 19 | 24 | gpio.24 | in | 0 | 35 || 36 | 0 | in | gpio.27 | 27 | 16 | | 26 | 25 | gpio.25 | in | 0 | 37 || 38 | 0 | in | gpio.28 | 28 | 20 | | | | 0v | | | 39 || 40 | 0 | in | gpio.29 | 29 | 21 | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | bcm | wpi | name | mode | v | physical | v | mode | name | wpi | bcm | +-----+-----+---------+------+---+---pi 2---+---+------+---------+-----+-----+
thanks saved life!
raspberrypi
Comments
Post a Comment