Hi Patrick, we had the same problem!
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! Ciao, Torsten --- In [email protected], Patrick Bury <[EMAIL PROTECTED]> wrote: > > Hello > > I'm trting to use the kernel I2C tools but I have a problem. > > I Use an old (red) fox > Kernel 2.6 with glibc > kernel compiled with I2C and "use portB instead of portB -I2C (what does > it mean ?) > > Nothing is connected to the i2C bus (just a scope) at J6-31 and J6-32 > > I successfully compiled apps/i2C-2.6/... > Transfer Ok > > At run-time this message : I2C : open error in /dev/i2c > > Any idea ? > > Patrick >
