12

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?

12

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

  • for clarification for us non-linux guys. "modules" is the file, it has no file name extension. – Eric Schneider Mar 15 '15 at 16:07
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.

  • 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 9:57
  • 1
    Why on earth would they blacklist these!?! – Alex Chamberlain Aug 6 '12 at 8: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. [ linux.die.net/man/5/modprobe.conf ] – gurcanozturk May 27 '13 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.