NVIDIA-vBIOS-VFIO-Patcher icon indicating copy to clipboard operation
NVIDIA-vBIOS-VFIO-Patcher copied to clipboard

Expected only three 'NPDE' markers

Open svenmauch opened this issue 6 years ago • 8 comments

Getting this output:

[mauch@M80 NVIDIA-vBIOS-VFIO-Patcher]$ python nvidia_vbios_vfio_patcher.py -i mx150.rom -o mx150patched.rom
Opening the ROM file...
Scanning for ROM offsets...
Offsets found!
Running sanity checks...
Traceback (most recent call last):
File "nvidia_vbios_vfio_patcher.py", line 194, in <module>
main()
File "nvidia_vbios_vfio_patcher.py", line 172, in main
rom.run_sanity_tests(args.ignore_sanity_check)
File "nvidia_vbios_vfio_patcher.py", line 103, in run_sanity_tests
"footer, found %d" % npde_count)
main.CheckException: Expected only three 'NPDE' markers between header and footer, found 2

svenmauch avatar Jun 08 '18 13:06 svenmauch

NVIDIA includes MX150 as a part of the Pascal series, but the vBIOS format it uses seems to differ from the rest of the series. If I had to guess, it would have something to do with the card not being a PCI-e card.

This script works by using the differences between full (what you'd get by dumping the BIOS with GPU-Z or a similar tool under Windows) and partial copies (what you'd get by dumping the ROM under Linux) of vBIOSes. Here's a forum post on Lime Technology forums I posted about this.

If I had a full and a partial copy of the same vBIOS, I might be able to do the same for this GPU, though at that point you wouldn't need this script in the first place. I also released this script since I was able to verify that it works with my own GTX 1070, so I wouldn't be able to make the same claim of compatibility with the MX150.

Matoking avatar Jun 08 '18 19:06 Matoking

I have the same issue with the "GTX 1060 Mobile with Max-Q Design". Is there anything you or I can do?

Here's what I did:

## Download the vBIOS of the GTX 1060 Mobile with Max-Q Design
$ wget https://www.techpowerup.com/vgabios/205874/205874.rom
## Download the script
$ wget https://raw.githubusercontent.com/Matoking/NVIDIA-vBIOS-VFIO-Patcher/master/nvidia_vbios_vfio_patcher.py
## Make the script executable
$ chmod +x ./nvidia_vbios_vfio_patcher.py
## Run the script
$ ./nvidia_vbios_vfio_patcher.py -i 205874.rom -o 205874_patched.rom 
Opening the ROM file...
Scanning for ROM offsets...
Offsets found!
Running sanity checks...
Traceback (most recent call last):
  File "./nvidia_vbios_vfio_patcher.py", line 194, in <module>
    main()
  File "./nvidia_vbios_vfio_patcher.py", line 172, in main
    rom.run_sanity_tests(args.ignore_sanity_check)
  File "./nvidia_vbios_vfio_patcher.py", line 103, in run_sanity_tests
    "footer, found %d" % npde_count)
__main__.CheckException: Expected only three 'NPDE' markers between header and footer, found 2

I'm hoping to fix Nvidia's error 43 for mobile GPU-passthrough with this.

T-vK avatar Dec 03 '18 16:12 T-vK

New Laptop, this time with a normal GTX 1060 Mobile (without Max-Q design): Same problem.

T-vK avatar Feb 07 '19 14:02 T-vK

Same problem with GTX 1070 Max-Q

waltercool avatar Feb 20 '19 23:02 waltercool

Same here with Quadro P600 (Pascal based).

bubbleguuum avatar Apr 14 '19 22:04 bubbleguuum

I have a 1050 Ti Mobile and the same issue. Is there anything we can do about this?

solarkraft avatar Aug 28 '20 21:08 solarkraft

Same issue with 1050 TI Mobile. I extracted Nvidia BIOS from UEFI BIOS for my laptop, here it is FX705GE-AS.307_NVidia_BIOS.bin.zip .

S-trace avatar Dec 24 '21 15:12 S-trace

please try to dump the rom on MSDOS, not windows

mjiang9999 avatar Jun 19 '23 11:06 mjiang9999