yfx4
Posts: 5
Joined: Tue Apr 22, 2014 5:03 pm

Failed install i2ctools

Tue Apr 22, 2014 5:20 pm

I tried to install I2C-tools this morning ahead of my new temperature sensor arriving. The last lines of the install are:

Setting up i2c-tools (3.1.0-2) ...
/run/udev or .udevdb or.udev presence implies active .udev. Aborting MAKEDEV invocation.

when I type sudo i2cdetect -y 1
it says
Error: Could not open file 'dev/i2c-1' or 'dev/i2c/1': no such file or directory

I tried to reinstall i2ctools but it says I have the newest version already.

Can I fool my RPi into thinking it has an older version?
Can I uninstall the i2c tools?
Or just get another SD card, install the i2c tools, then copy the files over to my existing SD card? If so, which directories should I copy?

THANKS!!!

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Failed install i2ctools

Tue Apr 22, 2014 5:23 pm

Which distro are you using?
Dear forum: Play nice ;-)

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Failed install i2ctools

Tue Apr 22, 2014 5:25 pm

Which distribution are you using?

Have you un-blacklisted the i2c modules and have you loaded the i2c kernel module?

sudo modprobe i2c_bcm2708 # to load the i2c module

lsmod # to check it's loaded

yfx4
Posts: 5
Joined: Tue Apr 22, 2014 5:03 pm

Re: Failed install i2ctools

Tue Apr 22, 2014 6:22 pm

I installed Raspbian from the NOOBS file I downloaded here 3/20/14. It is v. 1.3.4. dated Jan 07, 2014.

I DID # the blacklist file.

I will use the code you suggested to load the i2c kernel. I did not specifically do that.

I was following the guide posted as Lesson 4 in the adafruit learning section of their site. The python-smbus seemed to load fine.

I will try the code you suggest this evening. My temp sensor shipped today and should arrive Friday in time for my project. :-)

Thank You!!!

paulie
Posts: 275
Joined: Thu Jan 19, 2012 6:51 pm

Re: Failed install i2ctools

Tue Apr 22, 2014 9:20 pm

Which version of RPi do you have? Pre-mounting holes (v1 = i2c bus 0 ) or with mounting holes ( v2 = i2c bus 1 ) ?

Running i2cdetect will give errors if you look for a nonexistent bus :-o
It has been my custom to use Xeyes

yfx4
Posts: 5
Joined: Tue Apr 22, 2014 5:03 pm

Re: Failed install i2ctools

Tue Apr 22, 2014 9:39 pm

I have the Model B 512K Ram

yfx4
Posts: 5
Joined: Tue Apr 22, 2014 5:03 pm

Re: Failed install i2ctools

Wed Apr 23, 2014 3:32 am

I ended up being able to remove the failed install. Then I rebooted and re-did the install with no errors.

sudo apt-get remove i2c-tools

once the temp probe arrives I will know if I was successful.

Thanks for your help!

noxo
Posts: 16
Joined: Tue Jul 31, 2012 6:52 pm
Location: Vantaa, Finland
Contact: Website

Re: Failed install i2ctools

Sun Aug 17, 2014 4:33 pm

I also had a short fight with this, reason were that i2c-dev module were not loaded.

try:

Code: Select all

modprobe i2c-dev
i2c-dev module should be also added into /etc/modules file, so you don't have to modprobe
i2c-dev module after every reboot.

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835
i2c-dev
after this, installation of i2c-tools passed ok, without error.

yfx4
Posts: 5
Joined: Tue Apr 22, 2014 5:03 pm

Re: Failed install i2ctools

Mon Aug 18, 2014 12:34 pm

Cool.. I will try that.

Return to “Raspberry Pi OS”