Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

eeprog(8) [centos man page]

eeprog(8)						       System Administration							 eeprog(8)

NAME
eeprog - reads and writes 24Cxx EEPROMs connected to I2C serial bus. SYNOPSIS
eeprog [-fqxdh] [-16|-8] [-r addr[:count]|-w addr] <device> <i2c-addr> DESCRIPTION
eeprog uses the SMBus protocol used by most of the recent chipsets. NOTE
Don't forget to load your i2c chipset and the i2c-dev drivers. The following environment variables could be set instead of the command line arguments: EEPROG_DEV device EEPROG_I2C_ADDR i2c-addr PARAMETERS
Address modes -8 Use 8bit address mode for 24c0x...24C16 [default] -16 Use 16bit address mode for 24c32...24C256 Actions -r addr[:count] Read count (1 if omitted) bytes from addr and print them to the standard output -w addr Write input (stdin) at address addr of the EEPROM -h Print this help Options -x Set hex output mode -d Dummy mode, display what *would* have been done -f Disable warnings and don't ask confirmation -q Quiet mode Bus device Device file representing the I2C bus (eg. /dev/i2c-0) i2c-addr I2C bus address of the EEPROM (eg. 0x3A) EXAMPLES
Read 64 bytes from the EEPROM at address 0x54 on bus 0 starting at address 123 (decimal) eeprog /dev/i2c-0 0x54 -r 123:64 Print the hex codes of the first 32 bytes read from bus 1 at address 0x22 eeprog /dev/i2c-1 0x51 -x -r 0x22:0x20 Write the current timestamp at address 0x200 of the EEPROM on bus 0 at address 0x33 date | eeprog /dev/i2c-0 0x33 -w 0x200 SEE ALSO
eeprom(8) eepromer(8) AUTHOR
Stefano Barbato <stefano@codesink.org> i2c-tools Jul 2013 eeprog(8)

Check Out this Related Man Page

ACPISMBUS(4)						   BSD Kernel Interfaces Manual 					      ACPISMBUS(4)

NAME
acpismbus -- ACPI SMBus Control Method Interface SYNOPSIS
acpismbus* at acpi? iic* at acpismbus? DESCRIPTION
The acpismbus driver supports instances of the ACPI SMBus Control Method Interface. This enables i2c access to bus segments which might not otherwise be accessible due to missing "native" driver support. The SMBus Process Call protocol is not supported. All other SMBus protocols are supported to the extent that the underlying controller supports them. SEE ALSO
acpi(4), iic(4) HISTORY
The acpismbus driver appeared in NetBSD 6.0. BUGS
Although acpismbus SMBus Alerts can be associated with individual devices, this capability is ignored. When an acpismbus SMBus Alert is gen- erated, all devices on the i2c bus segment which have registered an interrupt routine are notified. The SMBus CMI protocol defines a method to provide a list of devices on an i2c bus segment and their addresses. The acpismbus driver makes no attempt to retrieve or process this device list. There is currently no way to determine if the i2c controller managed by an instance of the ACPI SMBus CMI can also be accessed using a native device driver. Therefore, the acpismbus driver should not be enabled by default. If both a native driver and the acpismbus driver attempt to access the same i2c bus segment, the results are undefined. BSD
February 6, 2010 BSD
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Interesting .. How do I handle this in Unix / Perl ?

This is how my input file is ( comma sepertated ):- L,id,name,address,city,measure_id_1,measrure_id_qty_1,measure_id_2,measure_id_qty_2 D,123,vvc,wwwew wdwe,hou,zip,77057,tel,832 L,id,name,address,city,measure_id_1,measrure_id_qty_1 D,222,abc,dsdsd wwew wdwe,ny,zip,77057... (0 Replies)
Discussion started by: vinithepoo
0 Replies

2. Shell Programming and Scripting

How to read EEPROM Locations

Dear Sir, I am Shidlingayya India, i am new to unix script..my problem is present-> I have to read the eeprom locations from 0 to 255 locations in separate file..i wrote the code for this as follows @eep_save_all ;<filename> store eeprom data to intel hex file kr 0,,02/n wf %1,... (0 Replies)
Discussion started by: shidlingayya
0 Replies

3. UNIX for Dummies Questions & Answers

vi Search for text, Replace with <CR> or control character.

Greetings, Using vi, how can I change the following text: -I/myviews/nexus_7400rel/vobs/nexus/platforms/97400/include -I/myviews/nexus_7400rel/vobs/nexus/modules/i2c/7400/include -I/myviews/nexus_7400rel/vobs/nexus/modules/surface/7400/include Into this:... (4 Replies)
Discussion started by: omega949
4 Replies

4. Shell Programming and Scripting

Read Write byte range/chunk of data from specific location in file

I am new to Unix so will really appreciate if someone can guide me on this. What I want to do is: Step1: Read binary file - pick first 2 bytes, convert from hex to decimal. Read the next 3 bytes as well. 2 bytes will specify the number of bytes 'n' that I want to read and write... (1 Reply)
Discussion started by: Kbenipel
1 Replies

5. Shell Programming and Scripting

incremental addition of hex decimal number in one field

Hi I want to incremental add hex decimal number to a particula field in file eg: addr =123 dept1=0 addr = 345 dept2 =1 addr2 = 124 dept3 =2 . . . . . . addr3 =567 dept15 =f Is there any command which add... (8 Replies)
Discussion started by: diddi_linux
8 Replies

6. UNIX for Advanced & Expert Users

Setting I2C Bus frequency

Hi All, For Linux Kernel 2.6.26 : I am using a I2C bus for command interface from my system when connecting to different devices. I have different I2C frequency requirements from different devices. Can you please suggest me a way to set the I2C frequency based on the device in use at runtime?... (0 Replies)
Discussion started by: mist4u
0 Replies