This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux usermode I2C utilities. ?

in another thread I came across the phrase " This can be done using the Linux usermode I2C utilities. "

where might I find these ?

  • I usually cobble together just enough code to satisfy my project requirements. The Linux kernel itself has a file called dev-interface that decribes the userspace interface as accessed from C code. The online version:

    http://www.kernel.org/doc/Documentation/i2c/dev-interface

    I think the I2C utilities noted by most references is here:

    http://www.lm-sensors.org/wiki/I2CTools

    It's a set of command line utilities. It is much more generic and quite a bit more complicated.

  • Check out i2c-tools, from http://www.lm-sensors.org/wiki/I2CTools, downloads at http://dl.lm-sensors.org/i2c-tools/releases/.  In particular, the "i2cget" and "i2cset" programs.  Of course, they only work if some kernel module doesn't already have the I2C bus blocked off.

    It's a standard in buildroot, and perhaps it's in Arago too, if you are into that kind of thing.  Otherwise I'm sure it can be cross-compiled by passing the correct variables to make.