How to read EEPROM Locations


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to read EEPROM Locations
# 1  
Old 02-14-2008
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

Code:
@eep_save_all	;<filename> store eeprom data to intel hex file
 kr 0,,02/n
 wf %1, 'tind[1],-1,$2,0,#16 /0ioc
 kr 28,,3B/n
 wf %1, 'tind[30],-1,$1C,0,#16/0ioc
 wd file written
 wd please add end of record to your file :00000001FF by hand
endmac

Required- Now i want to read only selected eeprom locations like
0x23, 0x29...so on..should get stored again in the form of Intel Hex file format

Can any body help me out to do this??i am thankful to you all..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Is There a Method to Obtain EEPROM Info from SFP+

Does AIX (or even the ASMI interface) provide a method to obtain basic data from a SFP+ (aka 10Gb transceiver) installed in a NIC card ? In this case, the machine is remote (to me), a Power8, with EN0S adapter (2 x 10GbE and 2 x 1Gb). Specifically, just trying to determine basic things from... (2 Replies)
Discussion started by: The Doctor
2 Replies

2. Solaris

Eeprom security-mode=command cause invalid login

Hi there, In Solaris 8. I have accidentally set the eeprom security-mode=command because I followed the CIS benchmark guideline. Initally, it was eeprom security-mode=none. I have tried to login with the correct password numerous time and it still say permission denied. I have tried to login... (4 Replies)
Discussion started by: alvinoo
4 Replies

3. UNIX for Dummies Questions & Answers

Get the eeprom dump using PCI bus address

Hi, I need to get an output that is the same as "ethtool -e eth0" But I need to use another method that does not use the eth port ID (ethX). Does anyone know of any method? Thanks!! (3 Replies)
Discussion started by: h0ujun
3 Replies

4. UNIX for Advanced & Expert Users

Transferring Eeprom to Virtual machine

Hello all, I am currently trying to find a solution to replacing some 10 year old Solaris boxes because it is obvious that they are going to fail soon. The problem is that they are license servers, and I need the eeprom serial to transfer to a new computer. Now, I could request that we get new... (1 Reply)
Discussion started by: DeanCarlo
1 Replies

5. Shell Programming and Scripting

EEPROM CKSUM? what is this?

Hi all, So I have a binary file and I need to generate an expected EEPROM checksum for it. Ideally, I would like to input the file (with the path) and output a computed checksum. Ive been using (cksum file1) with no avail and I was just curious as to whether there is such thing as EEPROM cksum,... (1 Reply)
Discussion started by: TeamUSA
1 Replies

6. UNIX for Dummies Questions & Answers

EEPROM CKSUM - Is there such thing?

Hi all, So I have a binary file and I need to generate an expected EEPROM checksum for it. Ideally, I would like to input the file (with the path) and output a computed checksum. Ive been using (cksum file1) with no avail and I was just curious as to whether there is such thing as EEPROM... (1 Reply)
Discussion started by: TeamUSA
1 Replies

7. Solaris

doubt reg EEPROM

Hi , Am new to solaris can anyone tell me what is the use of setting the eeprom variable to true or false ... (5 Replies)
Discussion started by: rogerben
5 Replies

8. UNIX for Advanced & Expert Users

EEPROM password

hello i have sun machine and i need to reset EEPROM password where evrytime machine boot i should put password to start in booting any one can help me how i can remove this password Thanks (1 Reply)
Discussion started by: asafwat
1 Replies

9. Solaris

file locations...

Hi Guys, There was a post that I saw here a while ago regarding file system layout and what to put where, which I am unable to find now.. A user here posted a man page that list what each partition should have in it and what it is used for and were you should install custom packages. ie:... (1 Reply)
Discussion started by: Tornado
1 Replies

10. UNIX for Advanced & Expert Users

Does admintool write to eeprom?

Hi: I was setting up a modem on an Ultra5 running 2.6. (yes I know, how quaint) There are 15 systems that are interlinked but not accessible to the outside world. This will end soon with new updated sun systems but until then the system needs to be accessed by the outside world. Hence the... (1 Reply)
Discussion started by: mndavies
1 Replies
Login or Register to Ask a Question
EEP24C(1)						      General Commands Manual							 EEP24C(1)

NAME
eep24c - read and write 24Cxxx eeprom devices SYNOPSIS
eep24c -d device [ -r[n] filename | -w[n] filename | -k[n] filename | -f[n] xx ] DESCRIPTION
The command eep24c can be used to read and write 24Cxxx eeprom devices. OPTIONS
The following options are available: -d device Specify the device type. To see a list of the supported devices, try -d help -r filename Read from eeprom and save to a file. -w filename Read from a file and write to eeprom. The addresses not specified in the input file will be filled with 00. -k filename Read from a file and write to eeprom. The addresses not specified in the input file will be kept with its previous values. (this mode is twice slower. It reads whole memory to know previous values, then write whole memory) -f XX Fills the whole eeprom with XX (XX is an hexadecimal value) n Can be used to multiply clock time. If you have a long cable, you may use this option. Example: -r5 will read eeprom 5 times slower (pulse width will be standard value multiplied by 5). Valid range for n is from 1 to 50. Default value is 1. USAGE EXAMPLES
eep24c -d 24c04 -r file.hex read eeprom, write to file.hex eep24c -d 24c04 -r3 file.hex read eeprom, write to file.hex, 3 times slower. eep24c -d 24c04 -w file.hex read file.hex and write to eeprom. All the bytes not found in file.hex will be written as 00. eep24c -d 24c04 -k file.hex read file.hex and write to eeprom. All the bytes not found in file.hex will remain unchanged. eep24c -d 24c04 -f 7A fill eeprom with 7A (hexadecimal). INPUT AND OUTPUT FORMAT
Input and output file format is Intel Hexadecimal Object File Format You can find this specification at ftp://download.intel.com/support/processors/ i960/devtools/INTELHEX.PDF Record types 00 and 01 are implemented in this version. In input lines, LF and CR+LF are accepted as newline markers. Output files are generated with LF as a newline marker. DEVICE SPECIFIC
If you are using Microchip 24*515, you must tie its pin A2 to VCC (needs a hardware modification, see device datasheet). SEE ALSO
ihex2txt(1), txt2ihex(1). AUTHOR
This manual page was written by Pedro Zorzenon Neto <pzn@vztech.com.br>. 2002-11-14 EEP24C(1)