Hi rouven you have to change the major device note for the i2c driver to 123, by default it is set to dynamic which does not work. You can see it with 'dmesg' on the Fox-Board and compare it with '/dev/i2c' <- Major device node 123. Just disable: #define DYNAMIC_MAJOR_I2CDEV_NUMBER_ALLOC in file: devboard-R2_01/os/linux-2.6/arch/cris/arch/drivers/i2c.c
You have to rebuild your kernel and flash your Fox-Board! This will work! Jamie --- In [email protected], "cbswbot" <br...@...> wrote: > > Hi all, > > i just wanted to read the temperature of an LM75(I2C). > > My firmware is a build with the version "30" sdk. > So i use the newest SDK. > > I used the code from here (little bit modified for the LM75), > http://foxlx.acmesystems.it/?id=10 > and the header files from this article. > http://foxlx.acmesystems.it/foxlx_acmesystems_it/00010/etraxi2c.h > http://foxlx.acmesystems.it/foxlx_acmesystems_it/00010/i2c_errno.h > > anytime i start it, i get the message: > Open error on /dev/i2c > > Do i need to do some config on the I2C to use it? > > And the next question, Geert Vancompernolle wrote in his PDF that i can use > (void i2c_read( unsigned char slave, unsigned char* rbuf, unsigned char rlen > );) and so on.. > But where i can find this prototypes? Is the article about I2C on ACME to old? > > Hope anyone can help me > Many thanks! > > rouven >
