3 dump i2c device – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual
Page 100

Linux Deployment
COMX-P2020 BSP User Guide (6806800L84B)
100
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- 33 -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
[root@COMX-P2020 /]#
7.3
Dump I2C Device
To dump the registers on the I2C Device, please use the application: i2cdump
[root@COMX-P2020 /]# /usr/sbin/i2cdump --help
Error: Unsupported option "--help"!
Usage: i2cdump [-f] [-y] [-r first-last] I2CBUS ADDRESS [MODE [BANK [BANKREG]]]
I2CBUS is an integer or an I2C bus name
ADDRESS is an integer (0x03 - 0x77)
MODE is one of:
b (byte, default)
w (word)
W (word on even register addresses)
s (SMBus block)
i (I2C block)
c (consecutive byte)
Append p for SMBus PEC
[root@COMX-P2020 /]#
To dump the content of at24c02, which i2c bus is 0, and i2c address is 0x50, please run the
application as below:
[root@COMX-P2020 /]# i2cdump 0 0x50 b
WARNING! This program can confuse your I2C bus, cause data loss
and worse!
I will probe file /dev/i2c-0, address 0x50, mode byte
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
0123456789abcdef
00: 4e 58 49 44 31 32 33 34 35 36 37 38 39 30 31 00
NXID12345678901.
10: 31 32 33 34 00 10 04 30 16 50 00 ff 00 00 00 00
1234.??0?P......