This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

about omapconf and i2cdetect on Omap4470

Hi, omap experts,

i'm trying to read sensor register value through i2c

i'm stuck for it(like i said in another post http://e2e.ti.com/support/omap/f/849/t/250896.aspx)

so i wonder if  omapconf tool can help me do that, but i don't know from the ducati source code

where i can investigate the bus and chip-addr i should use in the following command

I2C R/W Access

 Omapconf   i2c read 'bus' 0x'chip-addr' 0x'addr'           | Read register at address 'addr' from chip at address 'chip-addr' on I2C bus 'bus'.               |

omapconf i2c write 'bus' 0x'chip-addr' 0x'addr' 0x'data' | Write register at address 'addr' from chip at address 'chip-addr' on I2C bus 'bus'.

i also tried using i2cdetect    but i2c-tools source package I downloaded from

http://www.lm-sensors.org/wiki/I2CTools

after I compiled with cross compiler gcc tool in arm-2009q3 tool-chain, the executable binary could not

run on omap4, always receive ‘h: /system/bin/i2cdetect: No such file or directory’ error  I don’t know why….

 

Need your advise on this, thanks!!

Best regards,

Christian.



Best regards,

Christian.

  • Hi Christian.

    Best guess is that the "No such file or directory" error comes from the program needing a shared library that isn't on your target.  You can see what libraries the program needs using the ldd that's in your toolchain.  Or if the toolchain doesn't have ldd, you can use "readelf -a <program>" and look for "NEEDED".

    Regards,

        Steve