You are not logged in.

#1 2013-04-23 16:27:49

kgregory
Member
Registered: 2013-04-18
Posts: 3

How to add an I2C/SMbus device module?

I'm trying to write software that accesses a specific I2C device on the SMBus.  I installed the i2c-tools and lm_sensors packages and when I use sensors-detect, it briefly adds the I2C/SMbus from my chipset as /dev/i2c-0, but then drops it when it finishes.  How can I permanently add the bus as /dev/i2c-0 (or similar) so that I can access it with the i2c-tools library?

Offline

#2 2013-04-23 17:22:56

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: How to add an I2C/SMbus device module?

It says which driver it uses. You can load this driver manually later.

Offline

#3 2013-04-23 17:24:48

kgregory
Member
Registered: 2013-04-18
Posts: 3

Re: How to add an I2C/SMbus device module?

How do I do that?  Perhaps I should be in the newbie forum :-(

Offline

#4 2013-04-23 18:10:56

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: How to add an I2C/SMbus device module?

Like every other kernel module, i.e.

modprobe whatever

where whatever is name of the driver that sensors-detect says you need, e.g. it would be i2c-piix4 on my system.

Offline

Board footer

Powered by FluxBB