Announcement

Collapse
No announcement yet.

Cannot open i2c

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot open i2c

    Hello,

    I use a module PremierWave EN and I develop an application using the i2c bus.

    The file /dev/i2c-0 exist but i can't open my device. I have a message : No such device.

    Could you please help me ?

    Thanks

    Pascal

  • #2
    For I2C you need to add the driver definition specific to whatever device you connect to I2C in the kernel and build it in.

    In the Timesys SDK, look at kernel-source/linux-2.6.30/arch/arm/mach-at91/premierwave_en.c

    As an example, look at the sections wrapped with #ifdef CONFIG_I2C, that will show you how Lantronix added one device (which is on the PremierWave EN itself). You can add another device there and rebuild the kernel.

    Instructions to rebuild the kernel are here:
    http://wiki.lantronix.com/developer/...ing_the_kernel

    Comment


    • #3
      Any idea on how to add this driver to the Linux image of my Premierewave_EN board? https://lwn.net/Articles/359914/

      Comment


      • #4
        Originally posted by cayassir View Post
        Any idea on how to add this driver to the Linux image of my Premierewave_EN board? https://lwn.net/Articles/359914/
        Looks to me like the driver is already in there. I see drivers/net/can/mcp251x.c in the current kernel tree. You might want to contact Microchip to get the latest patch and see if it's different than that one from 2009.

        You'll want to reconfigure the kernel to enable the driver module though:
        http://wiki.lantronix.com/developer/...ing_the_kernel

        Mariano

        Comment

        Working...
        X