Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Using this tutorial "Using the PCI sysfs interface to dump the Video BIOS ROM" I tried to repeat the steps for dumping BIOS ROM from the network card.

My network card is:

polipo@polipo:~$ lspci
[snip]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
polipo@polipo:~$

So I typed this to be sure where's my network card rom:

polipo@polipo:~$ find /sys/devices -name "rom"
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/rom
/sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rom
polipo@polipo:~$

It's the second result. Now I have to dump it.

So typing what has to be typed, I'm getting error:

polipo@polipo:~$ echo 1 | sudo tee /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rom
1
polipo@polipo:~$ sudo cat /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rom > netbios.rom
cat: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rom: Input/output error
polipo@polipo:~$

See? Input/output error.. Using ethtool I also get an error:

polipo@polipo:~$ sudo ethtool -e eth0 > romdump.rom
Cannot get EEPROM data: Operation not supported
polipo@polipo:~$

Here's more info:

polipo@polipo:~$ ethtool -i eth0
driver: r8169
version: 2.3LK-NAPI
firmware-version: 
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
polipo@polipo:~$

So it looks like my network card doesn't allow me to make dumps of it's BIOS ROM, using eeprom access? But to me it's a bit confusing - I mean, it should be possible to dump any hardware's firmware, right?

share|improve this question
    
Is there a message in dmesg after sudo cat /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rom ? On my box, I got : r8169 0000:02:00.0: Invalid ROM contents but it's normal because I screw up my rom with a wrong flash. As side effect my MAC address has changed and I try to revert my mistake. –  user200310 Oct 9 '13 at 21:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.