Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cat: rom: Input/output error #4

Open
mgsqz opened this issue on Jul 30, 2019 · 6 comments
Open

cat: rom: Input/output error #4

mgsqz opened this issue on Jul 30, 2019 · 6 comments

Comments

@mgsqz
Copy link

@mgsqz mgsqz commented on Jul 30, 2019

Hi,It's seems didn't work on proxmox 5.4-11
platform:
cpu:i7-3820qm
chipset:hm77
GPU:NVIDIA Corporation GF108M [GeForce GT 635M]

root@nserver:~# cd /sys/bus/pci/devices/0000:01:00.0/
root@nserver:/sys/bus/pci/devices/0000:01:00.0# echo 1 > rom
root@nserver:/sys/bus/pci/devices/0000:01:00.0# cat rom > /tmp/image.rom
cat: rom: Input/output error

dmesg:
vfio-pci 0000:01:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff

what's wrong?

@nordmagnus999
Copy link

@nordmagnus999 nordmagnus999 commented on Oct 27, 2019

I have run into the same problem (as i have a optimus laptop too by looking at your spec).

Basically, some dgpu in optimus laptop don't have the rom loaded from the gpu directly (afaik most desktop gpu do the reverse here) or just don't have enough permissions to do it, or even because the gpu is still in use (aka most optimus gpu don't support hotswapping); afaik that's all the reason i can think of but i could be wrong.
But fortunately, there is still ways to get the rom of the gpu:

  • On windows, the rom is loaded as a .reg file in the registry, so you can get it there (more info here)
  • You can use either vbiosfinder or romparser on the update/dump of your bios (romparser is already included in vbiosfinder btw).which you can usually find on the manufacturer site or if normal dumping tools support your bios already...
  • If the above doesn't work (which would surprise me, but just in case), you can use binwalk on each file from the bios dump until you see something akin to "manufacturer's name" or "gpu vendor" or anything similar.

@ruthan
Copy link

@ruthan ruthan commented on Apr 10, 2020

I have some problem with some older cards, especially ATI ones.. On normal desktop PC.

@abigchopstick
Copy link

@abigchopstick abigchopstick commented on May 14, 2020

you can only get the rom file in BIOS boot mode it seems, try boot your system in legacy mode with a linux distro and do that again.

@sjkhsl
Copy link

@sjkhsl sjkhsl commented on Aug 23, 2020

root@pve:/# cd /sys/bus/pci/devices/0000:02:00.0/
root@pve:/sys/bus/pci/devices/0000:02:00.0# echo 1 > rom
root@pve:/sys/bus/pci/devices/0000:02:00.0# cat rom > /tmp/image.rom
cat: rom: Input/output error
root@pve:/sys/bus/pci/devices/0000:02:00.0# echo 0 > rom

My PVE system shows this. What should I do?

@ChrisG661
Copy link

@ChrisG661 ChrisG661 commented on Aug 29, 2020

@sjkhsl,
As abigchopstick said, try booting in Legacy mode from USB using another distro.
I used Ubuntu Server and successfully dumped my ROM the usual way.

@KEV936
Copy link

@KEV936 KEV936 commented on Feb 19

I want to dump the rocketlake rom, is it possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants