I have some i2c devices that I wanted to control via the gumstix.


I have incorporated the drivers into the gumstik kernel and have successfully been able to load them.

Instead of using <linux/i2c-dev.h> and <linux/i2c.h> ( because include them causes large compile errors) I have taken someone's suggestion to

Download and use the lm sensors kernel/include/i2c-dev.h as the header file for all i2c communication.


The problem becomes this,

When calling ioctl(file, I2C_SLAVE, <the device address> );,  I get an errno message stating that there is an invalid argument

The smbus functions compile and run but put out an error message stating that I am making an illegal loperation.


If anyone has seen this before or knows what might be the problem, please let me know.