hi,all!
I use the Montavist version, I installed I2C-tools software tools in
linux2.6.10.My system to mount a two I2C [EMAIL
PROTECTED]:/sys/bus/i2c/devices# ls0-001b 0-005din fact,0-005d is mt9t001
equipment slave address.I need to debug it.Step 1: Identify the I2C buses
[EMAIL PROTECTED]:~# i2cdetect li2c-0 i2c DAVINCI I2C adapter
I2C adapterStep 2: Query the I2C bus [EMAIL PROTECTED]:~#
i2cdetect 0WARNING! This program can confuse your I2C bus, cause data loss and
worse!I will probe file /dev/i2c/0.I will probe address range
0x03-0x77.Continue? [Y/n] yDaVinci I2C WARNING: i2c: RAR detected-- DaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detected--DaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: NACK detectedDaVinci I2C WARNING: i2c: RAR detected--Why is there
the above information.I do not know what is the meaning . Step 4: Dump the I2C
device registers [EMAIL PROTECTED]:/sys/bus/i2c/devices# i2cdump -f 0 0x5d
wWARNING! This program can confuse your I2C bus, cause data loss and worse!I
will probe file /dev/i2c/0, address 0x5d, mode word /*Because MT9T001 register
for the two byte*/Continue? [Y/n] y .........38: DaVinci I2C
WARNING: i2c: RAR detected0000 0000 0000 0DaVinci I2C WARNING: i2c: RAR
detected000 1000 0500 03DaVinci I2C WARNING: i2c: RAR detected00 0200DaVinci
I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C
WARNING: i2c: RAR detected ..........DaVinci I2C WARNING: i2c: RAR
detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR
detectedDaVinci I2C WARNING: i2c: RAR detectedDaVinci I2C WARNING: i2c: RAR
detectedf8: 0100 0000 3623 00a4 3800 20d0 0000 1116 Why is there the above
information.I do not know what is the meaning . i2cget and i2cset [EMAIL
PROTECTED]:/sys/bus/i2c/devices# i2cset -f 0 0x5d 0x00 0x1611 wWARNING! This
program can confuse your I2C bus, cause data loss and worse!I will write to
device file /dev/i2c/0, chip address 0x5d, data address0x00, data 0x1611, mode
word.Continue? [Y/n] yDaVinci I2C WARNING: i2c: RAR detectedWarning - data
mismatch - wrote 0x1611, read back 0x1116 Why is there the above information.I
do not know what is the meaning . Hope that everyone can help me! thanks
winkyxiao!
_________________________________________________________________
一点即聊,MSN推出新功能“点我!”
http://im.live.cn/click/_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c