Search code examples
embedded-linuxi2cyocto

How to read i2c with out i2cget command?


I am currently using Kontron smarc-samx6i board and I am running this board with Yocto kernel. Here the kernel is not supporting the command i2cget to check i2c data to read from sensor. So, is there any other possible ways to read i2c data from the sensors?


Solution

  • You can add "i2c-tools" to your image:

    IMAGE_INSTALL_append = " i2c-tools"
    

    They include i2cget.c.

    The recipe can be found in: /meta/recipes-devtools/i2c-tools/