Get the eeprom dump using PCI bus address


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Get the eeprom dump using PCI bus address
# 1  
Old 04-18-2013
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!!
# 2  
Old 04-18-2013
Did you try lspci in verbosest mode?
# 3  
Old 04-18-2013
Quote:
Originally Posted by RudiC
Did you try lspci in verbosest mode?

hmmm
Code:
ethtool -e eth0

returns this kind of log:

Code:
Offset		Values
------		------
0x0000		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0010		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0020		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0030		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0040		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0050		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0060		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0070		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0080		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0090		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00a0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00b0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00c0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00d0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00e0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00f0		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0100		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0110		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0120		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0130		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0140		ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

can lspci show this kind of log?
# 4  
Old 04-18-2013
I don't think you can dump EEPROM from raw PCI. It wouldn't work the same way for each and every kind of network card; that's why it's the job of the network driver.

Are you on Linux? You can tell which interface is on what bus:

Code:
$ ls -l /sys/class/net/

total 0
lrwxrwxrwx 1 root root 0 Apr 17 13:00 lan -> ../../devices/pci0000:00/0000:00:0a.0/net/lan
lrwxrwxrwx 1 root root 0 Apr 18 11:14 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Apr 18 11:14 sit0 -> ../../devices/virtual/net/sit0
lrwxrwxrwx 1 root root 0 Apr 18 11:14 tun0 -> ../../devices/virtual/net/tun0

$

You can se that lan(what I've renamed eth0 into) is on pci0000:00/0000:00:0a.0. From that you can decide which interface to feed into ethtool.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Unable to catch the output after core dump and bus error

I have a weird situation in which the binary dumps core and gives bus error. But before dumping the core and throwing the buss error, it gives some output. unfortunately I can't grep the output before core dump db2bfd -b test.bnd maxSect 15 Bus Error (core dumped) But if I do ... (4 Replies)
Discussion started by: rakeshou
4 Replies

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. Red Hat

can not reboot : PCI: Unable to handle 64-bit address space for

Hello, every one, I tried to install redhat linux enterprise server version 4 (ES4) on the my system with the following configuration Pentium core 2 duo 2.66 E 6750 Intel DG33FB motherboard 160Gb Segate hard disk (SATA) 1024 mb (1GB) DDR2 TRAN RAM Lg DVD/Cd WR BUT AM GETTING... (0 Replies)
Discussion started by: moinkhan31
0 Replies

10. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
Login or Register to Ask a Question