Hello I have the same problem, I have solved changing the comments to the following lines in i2c.c.
//#define DYNAMIC_MAJOR_I2CDEV_NUMBER_ALLOC #undef DYNAMIC_MAJOR_I2CDEV_NUMBER_ALLOC --- In [email protected], "Stéphane Herraiz" <[EMAIL PROTECTED]> wrote: > > Hello, > Ok I have done this : > - copy i2c.c, i2c.h, and i2c_errno.h in > ../devboard-R2_01/target/cris-axis-linux-gnu/include/asm > - copy etraxi2c.h in /devboard-R2_01/target/cris-axis-linux-gnu/include/ > - do a make > and when I execute my test program I have a problem to open "/dev/i2c"... > > In the system log I have this : > > Jan 1 00:00:06 axis kernel: I2C driver v2.2, (c) 1999-2004 Axis > Communications AB > Jan 1 00:00:06 axis kernel: ==> Improvements done by Geert > Vancompernolle - December 2006 > Jan 1 00:00:06 axis kernel: I2C Major: 254 / I2C Name: i2cgvc > > What I'm doing wrong... > > BR > > 2007/6/27, Geert Vancompernolle <[EMAIL PROTECTED]>: > > > > --- In [email protected] <foxboard%40yahoogroups.com>, "Stéphane > > Herraiz" > > <stephane.herraiz@> wrote: > > > > > > ...and for the other I2c.c and i2c.h, they have to be updated too > > with the > > > version > > > include in the "newi2cdriver.rar" file? > > > Thanks > > > > Indeed, "newi2cdriver.rar" contains all necessary changes, both for > > kernel as well as application compilation. > > > > Best rgds, > > > > --Geert > > > > > > > > > > -- > Stéphane Herraiz >
