1eeprog(8)                    System Administration                   eeprog(8)
2
3
4

NAME

6       eeprog - reads and writes 24Cxx EEPROMs connected to I2C serial bus.
7

SYNOPSIS

9       eeprog [-fqxdh] [-16|-8] [-r addr[:count]|-w addr] <device> <i2c-addr>
10

DESCRIPTION

12       eeprog uses the SMBus protocol used by most of the recent chipsets.
13

NOTE

15       Don't forget to load your i2c chipset and the i2c-dev drivers.
16
17       The following environment variables could be set instead of the command
18       line arguments:
19
20           EEPROG_DEV              device
21           EEPROG_I2C_ADDR         i2c-addr
22

PARAMETERS

24       Address modes
25
26       -8     Use 8bit address mode for 24c0x...24C16 [default]
27
28       -16    Use 16bit address mode for 24c32...24C256
29
30       Actions
31
32       -r addr[:count]
33              Read count (1 if omitted) bytes from addr and print them to  the
34              standard output
35
36       -w addr
37              Write input (stdin) at address addr of the EEPROM
38
39       -h     Print this help
40
41       Options
42
43       -x     Set hex output mode
44
45       -d     Dummy mode, display what *would* have been done
46
47       -f     Disable warnings and don't ask confirmation
48
49       -q     Quiet mode
50
51       Bus
52
53       device Device file representing the I2C bus (eg. /dev/i2c-0)
54
55       i2c-addr
56              I2C bus address of the EEPROM (eg. 0x3A)
57

EXAMPLES

59       Read  64  bytes  from  the  EEPROM at address 0x54 on bus 0 starting at
60       address 123 (decimal)
61
62            eeprog /dev/i2c-0 0x54 -r 123:64
63
64       Print the hex codes of the first 32 bytes read from bus  1  at  address
65       0x22
66
67            eeprog /dev/i2c-1 0x51 -x -r 0x22:0x20
68
69       Write  the current timestamp at address 0x200 of the EEPROM on bus 0 at
70       address 0x33
71
72            date | eeprog /dev/i2c-0 0x33 -w 0x200
73

SEE ALSO

75       eeprom(8) eepromer(8)
76

AUTHOR

78       Stefano Barbato ⟨stefano@codesink.org⟩
79
80
81
82i2c-tools                          Jul 2013                          eeprog(8)
Impressum