15

I have installed 2012-07-15-wheezy-raspbian, and the i2c-dev module and i2c_bcm2708 are there and work with i2c-tools.

How do I get the i2c-dev module etc. to load at bootup?

John La Rooy
  • 11,847
  • 9
  • 46
  • 74

2 Answers2

14

Assuming the module loads using sudo modprobe i2c-dev, you should add i2c-dev to /etc/modules.

Alex Chamberlain
  • 15,120
  • 13
  • 63
  • 112
7

They are blacklisted in /etc/modprobe.d/raspi-blacklist.conf

# blacklist spi and i2c by default (many users don't need them)

blacklist spi-bcm2708
blacklist i2c-bcm2708

so comment these lines.

okertanov
  • 599
  • 3
  • 2
  • I uncommented them. `spidev`, `spi-bcm2708` and `i2c-bcm2708` all loaded, but `i2c-dev` didn't so I guess I still need it in `/etc/modules` – John La Rooy Jul 25 '12 at 09:57
  • 1
    Why on earth would they blacklist these!?! – Alex Chamberlain Aug 06 '12 at 08:03
  • @AlexChamberlain because an average user don't need those modules. From modprobe.conf man page: There are cases where two or more modules both support the same devices, or a module invalidly claims to support a device: the blacklist keyword indicates that all of a particular module's internal aliases are to be ignored. [ http://linux.die.net/man/5/modprobe.conf ] – gurcanozturk May 27 '13 at 13:48