Matoking / NVIDIA-vBIOS-VFIO-Patcher

A Python script to patch NVIDIA vBIOS dumps into a format compatible with VFIO passthrough
Creative Commons Zero v1.0 Universal
244 stars 52 forks source link

Sanity Check on file Size #5

Open cablecutter opened 6 years ago

cablecutter commented 6 years ago

Hey, Thanks for creating this awesome script.

I have just patched the Zotac 1070 Ti mini rom from TechPowerUp using your python script. The initial rom was 269Kb and the resulting "patched" rom was 130Kb. This seemed like a pretty big change if it just removes the header, so I wanted to post a quick sanity check here before using.

Best, Rob

Matoking commented 6 years ago

That difference in size seems to be in line with the patched ROMs I've encountered. The patch removes quite a bit of stuff, not just the header.

As for what it deletes, I don't really know: I know that dumping a GPU vBIOS under Windows results in a full copy of the vBIOS, whereas under Linux with certain conditions (GPU is in secondary slot and not in use), it should dump a partial copy instead. Since I couldn't dump a partial copy of my own GPU for some reason, I examined the difference between full and partial vBIOS dumps using several available ROM files I found on the internet, and created this script. I also tested the script with several full ROM files and the resulting files were identical to the partial ROM files people had posted.


For what it's worth, I've received reports of people successfully using the patcher to bypass Error 43, but no reports of people bricking or damaging their GPUs by using this script. Still, it's up to you if you want to use this.