Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Get the eeprom dump using PCI bus address Post 302795845 by Corona688 on Thursday 18th of April 2013 01:14:48 PM
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.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
pcilib(7)							 The PCI Utilities							 pcilib(7)

NAME
pcilib - a library for accessing PCI devices DESCRIPTION
The PCI library (also known as pcilib and libpci) is a portable library for accessing PCI devices and their configuration space. ACCESS METHODS
The library supports a variety of methods to access the configuration space on different operating systems. By default, the first matching method in this list is used, but you can specify override the decision (see the -A switch of lspci). linux-sysfs The /sys filesystem on Linux 2.6 and newer. The standard header of the config space is available to all users, the rest only to root. Supports extended configuration space, PCI domains, VPD (from Linux 2.6.26), physical slots (also since Linux 2.6.26) and information on attached kernel drivers. linux-proc The /proc/bus/pci interface supported by Linux 2.1 and newer. The standard header of the config space is available to all users, the rest only to root. intel-conf1 Direct hardware access via Intel configuration mechanism 1. Available on i386 and compatibles on Linux, Solaris/x86, GNU Hurd, Win- dows, BeOS and Haiku. Requires root privileges. intel-conf2 Direct hardware access via Intel configuration mechanism 2. Available on i386 and compatibles on Linux, Solaris/x86, GNU Hurd, Win- dows, BeOS and Haiku. Requires root privileges. Warning: This method is able to address only the first 16 devices on any bus and it seems to be very unreliable in many cases. fbsd-device The /dev/pci device on FreeBSD. Requires root privileges. aix-device Access method used on AIX. Requires root privileges. nbsd-libpci The /dev/pci0 device on NetBSD accessed using the local libpci library. obsd-device The /dev/pci device on OpenBSD. Requires root privileges. dump Read the contents of configuration registers from a file specified in the dump.name parameter. The format corresponds to the output of lspci -x. darwin Access method used on Mac OS X / Darwin. Must be run as root and the system must have been booted with debug=0x144. PARAMETERS
The library is controlled by several parameters. They should have sensible default values, but in case you want to do something unusual (or even something weird), you can override them (see the -O switch of lspci). Parameters of specific access methods dump.name Name of the bus dump file to read from. fbsd.path Path to the FreeBSD PCI device. nbsd.path Path to the NetBSD PCI device. obsd.path Path to the OpenBSD PCI device. proc.path Path to the procfs bus tree. sysfs.path Path to the sysfs device tree. Parameters for resolving of ID's via DNS net.domain DNS domain containing the ID database. net.cache_name Name of the file used for caching of resolved ID's. Parameters for resolving of ID's via UDEV's HWDB hwdb.disable Disable use of HWDB if set to a non-zero value. SEE ALSO
lspci(8), setpci(8), update-pciids(8) AUTHOR
The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>. pciutils-3.5.2 03 October 2016 pcilib(7)
All times are GMT -4. The time now is 03:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy