i2c-test tools issue in I.MX28 BSP on I.MX28 EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i2c-test tools issue in I.MX28 BSP on I.MX28 EVK

Jump to solution
4,846 Views
srinivasanshanm
Contributor III

HI,

I have compiled the i2c-test tools package , in package list while compiling ltib...could  anybody pls kindly let me know how to resolve this issue in making use of  i2cdetect, i2cdump, i2cset, i2cget commands for verifying my eeprom in the rootfs shell prompt,

CZ I followed the followed the below steps in using I2c tools was unable to succeed

Am trying for more than 2 days still am not able to verify the I2c interfaced devices using the i2c-tools , I hereby attached the screenshots as well,

Pls kindly do the needful,

I.Mx28 EVK Board : source L2.6.35_10.12.01_ER_source

freescale login: root

login[2116]: root login on 'ttyAM0'

BusyBox v1.15.0 () built-in shell (ash)

Enter 'help' for a list of built-in commands.

root@freescale ~$

root@freescale ~$ i2c

i2cdetect  i2cdump    i2cget     i2cset

root@freescale ~$ i2cdetect -l

root@freescale ~$ i2cdetect -y

Error: No i2c-bus specified!

Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]

       i2cdetect -F I2CBUS

       i2cdetect -l

  I2CBUS is an integer or an I2C bus name

  If provided, FIRST and LAST limit the probing range.

root@freescale ~$ i2cdetect -y 0

Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

root@freescale ~$ i2cdetect -y 1

Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

root@freescale ~$ i2cdetect -F 0

Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

root@freescale ~$

Jus for my verifying in Host Ubuntu PC I followed the below after installing i2c-tools in my PC but still I see the same problem

user@user-desktop:~/ltib/rpm/BUILD/linux-2.6.35.3$ i2cdetect

Error: No i2c-bus specified!

Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]

       i2cdetect -F I2CBUS

       i2cdetect -l

  I2CBUS is an integer or an I2C bus name

  If provided, FIRST and LAST limit the probing range.

user@user-desktop:~/ltib/rpm/BUILD/linux-2.6.35.3$ i2cdetect -l

user@user-desktop:~/ltib/rpm/BUILD/linux-2.6.35.3$ i2cdetect -y 0

Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

user@user-desktop:~/ltib/rpm/BUILD/linux-2.6.35.3$


Any help would be greatly appreciated

Awaiting for your replies,

Thanks in advance,

Labels (2)
0 Kudos
1 Solution
2,594 Views
raymondwang
Senior Contributor I

I think the kernel config I2C_CHARDEV not enabled in I.MX28 BSP . You should enable it manually.

Make menuconfig ->device driver ->I2C support->I2C_CHARDEV

The I2C_CHARDEV option description:

Say Y here to use i2c-* device files, usually found in the /dev

   directory on your system.  They make it possible to have user-space

   programs use the I2C bus.  Information on how to do this is

   contained in the file <file:Documentation/i2c/dev-interface>.

   This support is also available as a module.  If so, the module

   will be called i2c-dev.

View solution in original post

0 Kudos
4 Replies
2,595 Views
srinivasanshanm
Contributor III

Could anybody please kindly update in resolving the above issue of using i2c-tools in I.MX28 evk

0 Kudos
2,595 Views
lategoodbye
Senior Contributor I

Hello Srinivasan,


what does your Kernel print out about I2C while booting?


Is I2C enabled in the Kernel?

0 Kudos
2,595 Views
srinivasanshanm
Contributor III

Thanks a lot for your response & solution, it worked for me after Make menuconfig ->device driver ->I2C support->I2C_CHARDEV,

I really appreciate the support ,

Many Many Thanks once again,

0 Kudos
2,595 Views
raymondwang
Senior Contributor I

I think the kernel config I2C_CHARDEV not enabled in I.MX28 BSP . You should enable it manually.

Make menuconfig ->device driver ->I2C support->I2C_CHARDEV

The I2C_CHARDEV option description:

Say Y here to use i2c-* device files, usually found in the /dev

   directory on your system.  They make it possible to have user-space

   programs use the I2C bus.  Information on how to do this is

   contained in the file <file:Documentation/i2c/dev-interface>.

   This support is also available as a module.  If so, the module

   will be called i2c-dev.

0 Kudos