Compare commits
merge into: zhaohe:master
zhaohe:i2c-tools-3.1
zhaohe:master
pull from: zhaohe:i2c-tools-3.1
zhaohe:i2c-tools-3.1
zhaohe:master
47 Commits
master
...
i2c-tools-
Author | SHA1 | Message | Date |
---|---|---|---|
|
96fca5cdb0 |
tools: Don't build with -Winline
The inlining issues are never going to be fixed in this branch, so there is no point in flooding the build with these warnings. Signed-off-by: Jean Delvare <jdelvare@suse.de> |
5 years ago |
|
11a1738e83 |
i2cset: Fix short writes with mask
Short writes used "daddress" for the value, but the masking code did not expect that, and instead applied the mask to a variable that was never used. So change short writes to use "value" for the value, as all other commands do. Adjust all code paths accordingly. Reported by David Jedynak. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> |
5 years ago |
|
a5a59fb959 |
tools: i2cbusses: Check the return value of snprintf
It's very unlikely that these paths will ever be truncated, but better safe than sorry. Suggested by Uwe Kleine-König. |
8 years ago |
|
7c71a78fb0 |
Consistently use snprintf instead of sprintf
There was a last instance of sprintf which somehow was not converted. I know it can't fail, but for consistency, let's use snprintf and check for truncation as we already do in gather_i2c_busses(). Signed-off-by: Jean Delvare <jdelvare@suse.de> |
7 years ago |
|
07563e8ff8 |
i2c-tools: i2cbusses: Avoid buffer overflows in sysfs paths
sprintf isn't safe, use snprintf instead. |
8 years ago |
|
3b194ddb8c |
Delete i2ctransfer
A maintenance branch isn't the right place for a brand new tool. Now that i2c tools version 4.0 has been released, there's no reason to keep i2ctransfer in the 3.1 branch, so delete it. Signed-off-by: Jean Delvare <jdelvare@suse.de> Acked-by: Wolfram Sang <wsa@the-dreams.de> |
8 years ago |
|
466bb8cb49 |
py-smbus: Fix FSF address in smbusmodule.c
The Free Software Foundation address was outdated. Discovered by Fedora's rpmlint. The current address can be found at: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4 Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com> |
8 years ago |
|
d4b95a31cd |
eeprog: Increase sleep between byte writes
Increese sleep time between writes to accomodate typical write cycle times. An Atmel AT24C02 as well as an ON Semiconductor CAT24C02 EEPROM specify 5ms. This resolves errors such as: ... Bus: /dev/i2c-1, Address: 0x50, Mode: 8bit Writing stdin starting at address 0x0 ..Error i2c_write_2b: Input/output error Error at line 162: write error [JD] Define a single constant and add a note that this could be revisited. |
8 years ago |
|
ba2abe60bd |
Add missing man page cross-references
|
8 years ago |
|
4fbf2b6737 |
Drop stray references to lm-sensors.org
lm-sensors.org is no more, point to the I2C Tools wiki page instead. |
8 years ago |
|
152c44190e |
Mention the current maintainer
Original patch from Wolfram Sang. |
11 years ago |
|
c1ea203e35 |
i2c-tools: add new tool 'i2ctransfer'
This tool allows to construct and concat multiple I2C messages into one single transfer. Its aim is to test I2C master controllers, and so there is no SMBus fallback. I've been missing such a tool a number of times now, so I finally got around to writing it myself. As with all I2C tools, it can be dangerous, but it can also be very useful when developing. It has been tested with various Renesas I2C IP cores as well as Tegra, i.MX and AT91. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> |
11 years ago |
|
58ebb2f385 |
i2c-tools: add .gitignore
Don't display generated files, so 'git status' becomes useful again. Reviewed-by: Jean Delvare <jdelvare@suse.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> |
9 years ago |
|
119a811034 |
i2c-tools: fix feature test macros for glibc >= 2.20
Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like described here: https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> |
9 years ago |
|
dc95875dbc |
Drop obsolete SVN keywords
|
9 years ago |
|
2b4135907c |
decode-dimms: Correctly check for out-of-bounds vendor ID
|
9 years ago |
|
62cbc64c4f |
Set version to 3.1.2.
|
9 years ago |
|
824de0ae34 |
py-smbus: Add support for python 3
|
9 years ago |
|
b9cf0129a9 |
decode-dimms: Fix DDR3 extended temp range refresh rate decoding
Based on a patch from Peter Missel. The meaning of byte 31, bit 1, was inverted. Also, this bit is only meaningful if the extended temperature range is supported (bit 0 is set.) |
9 years ago |
|
d58c9009c7 |
Set version to 3.1.1.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6235 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
05f1a6485f |
Manual pages for eeprog, eeprom and eepromer, contributed by Jaromir
Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6234 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
96d275f6eb |
Add manual pages for decode-dimms and decode-vaio
Contributed by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6233 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
e32987a243 |
py-smbus: fix module level docs
When you do pydoc smbus, you just get the high level description. There is no automatic display of the classes (like SMBus). This is due to the name not being specified quite right in the type. Contributed by Mike Frysinger. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6232 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
95674a88a5 |
decode-dimms: Encode "degrees" to HTML degree symbol
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6231 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
a94388357b |
Fix potential build error (NULL undefined) caused by missing include file
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6230 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
f8de12205f |
Delete empty file and directory
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6229 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
a0d9fb99f8 |
i2c-dev: Revert most of r6048 and r6052
I don't know what I had in mind but commits r6048: i2c-dev: Move SMBus helper functions to include/i2c/smbus.h and r6052: Add header file missed from a previous commit were way too intrusive for a maintenance branch. Revert most of them, only keeping the legitimate include fixes. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6228 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
e67a49f679 |
ddcmon: Merge copyright information
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6227 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
2df6dcb997 |
Update my e-mail address and copyright years.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6225 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
ba1491d03d |
Add missing option -r to usage summary
Reported by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6202 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
407fc259e3 |
Doh. I've proofread these names twice and even that was not enough :(
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6160 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
bfd0e2e24a |
Add manufacturer names from Jedec document JEP106AK.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6157 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
9b4e137eb1 |
decode-dimms: Fix typo in vendor name
Contributed by Paul Goyette. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6156 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
4aa36fe574 |
DDR3: Round down PC3 numbers to comply with Jedec.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6154 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
cbfef7739d |
DDR3: Round core timings up, not down.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6153 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
7add855d52 |
DDR3: Use the right nibble from byte 21 as the MSB of tRAS.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6152 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
eb2db47736 |
Print a space before "MHz" to improve readability.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6151 7894878c-1315-0410-8ee3-d5d059ff63e0 |
12 years ago |
|
f8d5ac8396 |
Decode more DDR3 module types
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6122 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
7987d0d642 |
Prevent hang on reserved DDR3 module type
Function sprint doesn't exist, sprintf was intended. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6121 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
e1974d0945 |
i2cdetect: Clarify the SMBus commands used for probing by default.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6110 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
363d38f24a |
Fix decoding of SDR SPD revision. The encoding changed with revision
1.2. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6109 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
9dbd13a1f2 |
Remove duplicate "ns" in SDR timings.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6108 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
0c6e11a7e8 |
Add manufacturer names from Jedec document JEP106AJ.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6107 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
5e46bf8d31 |
Update vendor list based on Jedec document JEP106AG. Contributed by
Thomas Gibson. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6106 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
242b1c714c |
Don't choke when no SPD EEPROM is found while the eeprom or at24 driver
is loaded. This can happen, handle the case gracefully. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6063 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
14691e91df |
Add header file missed from a previous commit.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6052 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
|
495e59f96b |
i2c-tools version 3 goes to maintenance mode
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6051 7894878c-1315-0410-8ee3-d5d059ff63e0 |
13 years ago |
43 changed files with 904 additions and 150 deletions
-
8.gitignore
-
32CHANGES
-
2Makefile
-
5README
-
1eeprog/.gitignore
-
9eeprom/Module.mk
-
6eeprom/ddcmon
-
148eeprom/decode-dimms
-
67eeprom/decode-dimms.1
-
12eeprom/decode-edid
-
4eeprom/decode-vaio
-
35eeprom/decode-vaio.1
-
2eepromer/.gitignore
-
17eepromer/24cXX.c
-
2eepromer/24cXX.h
-
103eepromer/eeprog.8
-
2eepromer/eeprog.c
-
64eepromer/eeprom.8
-
1eepromer/eeprom.c
-
61eepromer/eepromer.8
-
1eepromer/eepromer.c
-
6include/Module.mk
-
258include/linux/i2c-dev.h
-
2py-smbus/Module.mk
-
2py-smbus/setup.py
-
54py-smbus/smbusmodule.c
-
2stub/Module.mk
-
2stub/i2c-stub-from-dump
-
4tools/.gitignore
-
14tools/Module.mk
-
55tools/i2cbusses.c
-
2tools/i2cbusses.h
-
14tools/i2cdetect.8
-
4tools/i2cdetect.c
-
2tools/i2cdump.8
-
4tools/i2cdump.c
-
2tools/i2cget.8
-
6tools/i2cget.c
-
2tools/i2cset.8
-
31tools/i2cset.c
-
2tools/util.c
-
2tools/util.h
-
2version.h
@ -0,0 +1,8 @@ |
|||
.* |
|||
*.o |
|||
*.o.* |
|||
*.a |
|||
*.so |
|||
*.so.* |
|||
*.so.dbg |
|||
*.ao |
@ -0,0 +1 @@ |
|||
/eeprog |
@ -0,0 +1,67 @@ |
|||
.\" |
|||
.\" decode-dimms.1 - manpage for the i2c-tools/decode-dimms utility |
|||
.\" Copyright (C) 2013 Jaromir Capik |
|||
.\" |
|||
.\" This program is free software; you can redistribute it and/or modify |
|||
.\" it under the terms of the GNU General Public License as published by |
|||
.\" the Free Software Foundation; either version 2 of the License, or |
|||
.\" (at your option) any later version. |
|||
.\" |
|||
.\" This program is distributed in the hope that it will be useful, |
|||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
.\" GNU General Public License for more details. |
|||
.\" |
|||
.\" You should have received a copy of the GNU General Public License along |
|||
.\" with this program; if not, write to the Free Software Foundation, Inc., |
|||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
.\" |
|||
.TH decode-dimms 1 "Oct 2013" "i2c-tools" "User Commands" |
|||
.SH NAME |
|||
decode-dimms \- decode the information found in memory module SPD EEPROMs |
|||
.SH SYNOPSIS |
|||
.B decode-dimms |
|||
[-c] [-f [-b]] [-x|-X file [files..]] |
|||
.br |
|||
.B decode-dimms |
|||
-h |
|||
.SH DESCRIPTION |
|||
|
|||
The purpose of the |
|||
.B decode-dimms |
|||
tool is to decode the information found in memory module SPD EEPROMs. |
|||
The SPD data is read either from the running system or dump files. |
|||
In the former case, the tool requires either the eeprom kernel module |
|||
or the at24 kernel module to be loaded. |
|||
.SH PARAMETERS |
|||
.TP |
|||
.B \-f, --format |
|||
Print nice html output |
|||
.TP |
|||
.B \-b, --bodyonly |
|||
Don't print html header (useful for postprocessing the output) |
|||
.TP |
|||
.B \--side-by-side |
|||
Display all DIMMs side-by-side if possible |
|||
.TP |
|||
.B \--merge-cells |
|||
Merge neighbour cells with identical values (side-by-side output only, default) |
|||
.TP |
|||
.B \--no-merge-cells |
|||
Don't merge neighbour cells with identical values (side-by-side output only) |
|||
.TP |
|||
.B \-c, --checksum |
|||
Decode completely even if checksum fails |
|||
.TP |
|||
.B \-x |
|||
Read data from hexdump files |
|||
.TP |
|||
.B \-X |
|||
Same as -x except treat multibyte hex data as little endian |
|||
.TP |
|||
.B \-h, --help |
|||
Display the usage summary |
|||
.SH SEE ALSO |
|||
.BR decode-vaio (1) |
|||
.SH AUTHORS |
|||
Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, Jean Delvare |
@ -0,0 +1,35 @@ |
|||
.\" |
|||
.\" decode-vaio.1 - manpage for the i2c-tools/decode-vaio utility |
|||
.\" Copyright (C) 2013 Jaromir Capik |
|||
.\" |
|||
.\" This program is free software; you can redistribute it and/or modify |
|||
.\" it under the terms of the GNU General Public License as published by |
|||
.\" the Free Software Foundation; either version 2 of the License, or |
|||
.\" (at your option) any later version. |
|||
.\" |
|||
.\" This program is distributed in the hope that it will be useful, |
|||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
.\" GNU General Public License for more details. |
|||
.\" |
|||
.\" You should have received a copy of the GNU General Public License along |
|||
.\" with this program; if not, write to the Free Software Foundation, Inc., |
|||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
.\" |
|||
.TH decode-vaio 1 "Oct 2013" "i2c-tools" "User Commands" |
|||
.SH NAME |
|||
decode-vaio \- decode the information found in the Sony Vaio laptop |
|||
identification EEPROMs |
|||
.SH SYNOPSIS |
|||
.B decode-vaio |
|||
.SH DESCRIPTION |
|||
|
|||
The purpose of the |
|||
.B decode-vaio |
|||
tool is to decode the information found in the Sony Vaio laptop |
|||
identification EEPROMs. |
|||
The tool requires the eeprom kernel module to be loaded. |
|||
.SH SEE ALSO |
|||
.BR decode-dimms (1) |
|||
.SH AUTHOR |
|||
Jean Delvare |
@ -0,0 +1,2 @@ |
|||
/eeprom |
|||
/eepromer |
@ -0,0 +1,103 @@ |
|||
.\" |
|||
.\" eeprog.8 - manpage for the i2c-tools/eeprog utility |
|||
.\" Copyright (C) 2013 Jaromir Capik |
|||
.\" |
|||
.\" This program is free software; you can redistribute it and/or modify |
|||
.\" it under the terms of the GNU General Public License as published by |
|||
.\" the Free Software Foundation; either version 2 of the License, or |
|||
.\" (at your option) any later version. |
|||
.\" |
|||
.\" This program is distributed in the hope that it will be useful, |
|||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
.\" GNU General Public License for more details. |
|||
.\" |
|||
.\" You should have received a copy of the GNU General Public License along |
|||
.\" with this program; if not, write to the Free Software Foundation, Inc., |
|||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
.\" |
|||
.TH eeprog "8" "Jul 2013" "i2c-tools" "System Administration" |
|||
.SH NAME |
|||
eeprog \- reads and writes 24Cxx EEPROMs connected to I2C serial bus |
|||
.SH SYNOPSIS |
|||
.B eeprog |
|||
[-fqxdh] [-16|-8] [-r addr[:count]|-w addr] <device> <i2c-addr> |
|||
.SH DESCRIPTION |
|||
.B eeprog |
|||
uses the SMBus protocol used by most of the recent chipsets. |
|||
.SH NOTE |
|||
Don't forget to load your i2c chipset and the i2c-dev drivers. |
|||
.P |
|||
The following environment variables could be set instead of the command line arguments: |
|||
.P |
|||
EEPROG_DEV device |
|||
.br |
|||
EEPROG_I2C_ADDR i2c-addr |
|||
.SH PARAMETERS |
|||
.I Address modes |
|||
.TP |
|||
.B \-8 |
|||
Use 8bit address mode for 24c0x...24C16 [default] |
|||
.TP |
|||
.B \-16 |
|||
Use 16bit address mode for 24c32...24C256 |
|||
.TP |
|||
.I Actions |
|||
.TP |
|||
.B \-r addr[:count] |
|||
Read |
|||
.B count |
|||
(1 if omitted) bytes from |
|||
.B addr |
|||
and print them to the standard output |
|||
.TP |
|||
.B \-w addr |
|||
Write input (stdin) at address |
|||
.B addr |
|||
of the EEPROM |
|||
.TP |
|||
.B \-h |
|||
Print this help |
|||
.TP |
|||
.I Options |
|||
.TP |
|||
.B \-x |
|||
Set hex output mode |
|||
.TP |
|||
.B \-d |
|||
Dummy mode, display what *would* have been done |
|||
.TP |
|||
.B \-f |
|||
Disable warnings and don't ask confirmation |
|||
.TP |
|||
.B \-q |
|||
Quiet mode |
|||
.TP |
|||
.I Bus |
|||
.TP |
|||
.B device |
|||
Device file representing the I2C bus (eg. /dev/i2c-0) |
|||
.TP |
|||
.B i2c-addr |
|||
I2C bus address of the EEPROM (eg. 0x3A) |
|||
.SH EXAMPLES |
|||
Read 64 bytes from the EEPROM at address 0x54 on bus 0 starting at address 123 (decimal) |
|||
.P |
|||
.B eeprog |
|||
/dev/i2c-0 0x54 -r 123:64 |
|||
.P |
|||
Print the hex codes of the first 32 bytes read from bus 1 at address 0x22 |
|||
.P |
|||
.B eeprog |
|||
/dev/i2c-1 0x51 -x -r 0x22:0x20 |
|||
.P |
|||
Write the current timestamp at address 0x200 of the EEPROM on bus 0 at address 0x33 |
|||
.P |
|||
date | |
|||
.B eeprog |
|||
/dev/i2c-0 0x33 -w 0x200 |
|||
.SH SEE ALSO |
|||
.BR eeprom (8), |
|||
.BR eepromer (8) |
|||
.SH AUTHOR |
|||
Stefano Barbato |
@ -0,0 +1,64 @@ |
|||
.\" |
|||
.\" eeprom.8 - manpage for the i2c-tools/eeprom utility |
|||
.\" Copyright (C) 2013 Jaromir Capik |
|||
.\" |
|||
.\" This program is free software; you can redistribute it and/or modify |
|||
.\" it under the terms of the GNU General Public License as published by |
|||
.\" the Free Software Foundation; either version 2 of the License, or |
|||
.\" (at your option) any later version. |
|||
.\" |
|||
.\" This program is distributed in the hope that it will be useful, |
|||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
.\" GNU General Public License for more details. |
|||
.\" |
|||
.\" You should have received a copy of the GNU General Public License along |
|||
.\" with this program; if not, write to the Free Software Foundation, Inc., |
|||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
.\" |
|||
.TH eeprom "8" "Jul 2013" "i2c-tools" "System Administration" |
|||
.SH NAME |
|||
eeprom \- reads and writes 24Cxx EEPROMs connected to I2C serial bus |
|||
.SH SYNOPSIS |
|||
.B eeprom |
|||
[-d dev] [-a addr] [-p pgs] [-w] [-y] [-f file] |
|||
.SH DESCRIPTION |
|||
.B eeprom |
|||
can be used for reading from / writing to I2C EEPROMs like the popular |
|||
24C16, 24C08, 24C04, etc. |
|||
In contrast to |
|||
.B eeprommer |
|||
which supports 24C256-type EEPROMs, |
|||
this tool works with 1-byte addresses! |
|||
.SH NOTES |
|||
Don't forget to load your i2c chipset and the i2c-dev drivers. |
|||
.P |
|||
Pages/addresses: |
|||
EEPROMs with more than 256 bytes appear as if they |
|||
were several EEPROMs with consecutive addresses on the bus |
|||
so we might as well address several separate EEPROMs with |
|||
increasing addresses |
|||
.SH PARAMETERS |
|||
.TP |
|||
.B dev |
|||
device (default /dev/i2c-0) |
|||
.TP |
|||
.B addr |
|||
base address of EEPROM (default 0xA0) |
|||
.TP |
|||
.B pgs |
|||
number of pages to read (default 8) |
|||
.TP |
|||
.B \-w |
|||
write to EEPROM (default is reading!) |
|||
.TP |
|||
.B \-y |
|||
suppress warning when writing (default is to warn!) |
|||
.TP |
|||
.B \-f file |
|||
copy EEPROM contents to/from file (default for read is test only; for write is all zeros) |
|||
.SH SEE ALSO |
|||
.BR eeprog (8), |
|||
.BR eepromer (8) |
|||
.SH AUTHOR |
|||
Christian Vogel |
@ -0,0 +1,61 @@ |
|||
.\" |
|||
.\" eeprom.8 - manpage for the i2c-tools/eeprom utility |
|||
.\" Copyright (C) 2013 Jaromir Capik |
|||
.\" |
|||
.\" This program is free software; you can redistribute it and/or modify |
|||
.\" it under the terms of the GNU General Public License as published by |
|||
.\" the Free Software Foundation; either version 2 of the License, or |
|||
.\" (at your option) any later version. |
|||
.\" |
|||
.\" This program is distributed in the hope that it will be useful, |
|||
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
.\" GNU General Public License for more details. |
|||
.\" |
|||
.\" You should have received a copy of the GNU General Public License along |
|||
.\" with this program; if not, write to the Free Software Foundation, Inc., |
|||
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
.\" |
|||
.TH eepromer "8" "Jul 2013" "i2c-tools" "System Administration" |
|||
.SH NAME |
|||
eepromer \- reads and writes 24Cxx EEPROMs connected to I2C serial bus |
|||
.SH SYNOPSIS |
|||
.B eepromer |
|||
[-r|-w|-e|-p] -f <device> <i2c-addr> |
|||
.SH DESCRIPTION |
|||
The EEPROM must be a large EEPROM which uses a 2-byte address |
|||
field (24C32 or larger). It will NOT WORK on small EEPROMs |
|||
(24C01 - 24C16) such as those used on SDRAM DIMMs. |
|||
.SH NOTES |
|||
Don't forget to load your i2c chipset and the i2c-dev drivers. |
|||
.P |
|||
Tested only on 24C256. |
|||
.P |
|||
.SH PARAMETERS |
|||
.TP |
|||
.I Actions |
|||
.TP |
|||
.B \-r |
|||
Read |
|||
.TP |
|||
.B \-w |
|||
Write |
|||
.TP |
|||
.B \-e |
|||
Erase |
|||
.TP |
|||
.B \-p |
|||
Print header |
|||
.TP |
|||
.I Bus |
|||
.TP |
|||
.B \-f device |
|||
Device file representing the I2C bus (eg. /dev/i2c-0) |
|||
.TP |
|||
.B i2c-addr |
|||
I2C bus address of the EEPROM (eg. 0x3A) |
|||
.SH SEE ALSO |
|||
.BR eeprog (8), |
|||
.BR eeprom (8) |
|||
.SH AUTHOR |
|||
Daniel Smolik |
@ -0,0 +1,4 @@ |
|||
/i2cdump |
|||
/i2cset |
|||
/i2cget |
|||
/i2cdetect |
@ -1 +1 @@ |
|||
#define VERSION "3.1.0" |
|||
#define VERSION "3.1.2" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue