awilliam / rom-parser

153 stars 45 forks source link

Error, ran off the end #5

Open Maikeio opened 3 years ago

Maikeio commented 3 years ago

I know this problem was already here, but the conclusion of the other questions was that the Rom is broken. So I tried to fix it and tried all the roms on Techpowerup with my device ID (https://www.techpowerup.com/vgabios/?did=1002-67DF-1682-9587-E1) but I got the error every time. To flash the rom, I used.

sudo ./amdvbflash -p 0 xyz.rom

I tried to flash my GPU (XFX RX 590 8 GB (Fatboy OC+)) through but with no result, not in unraid or proxmox, the VMs just don't boot.

Edit: I got my VMs to work, with gpu and everything, but the error remains.

ReenigneArcher commented 2 years ago

Trying to get pci passthrough working in Proxmox and I'm getting the same problem.

Nvidia Quadro P4000

Valid ROM signature found @0h, PCIR offset 170h
        PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 1bb1, class: 030000
        PCIR: revision 0, vendor revision: 1
Error, ran off the end
gsedej commented 1 year ago

Me too. I tried Sapphire RX 480 Nitro + and Gigabyte GTX 1060 6GB

# ./rom-parser ../gtx1060giagbye.tom 
Valid ROM signature found @0h, PCIR offset 1a0h
    PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 1c03, class: 030000
    PCIR: revision 0, vendor revision: 1
Error, ran off the end
WangYihang commented 1 year ago

I have encountered the same problem and found a solution as follows.

  1. Download nvflash from here, some versions have Linux support, I used nvflash_5.792_linux.zip.
  2. Unzip the file, find the proper executable file, I used nvflash_5.792_linux/x64/nvflash.
  3. Run nvflash like this nvflash --save image.rom instead of echo.
  4. Then use rom-parser to parse the iamge.rom.
  5. The parsed result will be like this (Nvidia Quadro T400 for my situation).
root@pve:~/rom-parser# ./rom-parser ./image.rom
Valid ROM signature found @4600h, PCIR offset 170h
        PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 1ff2, class: 030000
        PCIR: revision 0, vendor revision: 1
Valid ROM signature found @13200h, PCIR offset 1ch
        PCIR: type 3 (EFI), vendor: 0000, device: 0000, class: 000000
        PCIR: revision 3, vendor revision: 0
                EFI: Signature Valid, Subsystem: Boot, Machine: X64
        Last image