dartraiden / NVIDIA-patcher

Adds 3D acceleration support for P106-090 / P106-100 / P104-100 / P104-101 / P102-100 / CMP 30HX / CMP 40HX / CMP 50HX mining cards.
194 stars 25 forks source link

"Exploring a Modified NVFlash: Potential Solution for Mining Cards? A Look at the Patched NVFlash Bypassing Nvidia Security Signatures" #20

Closed maimedmeow96 closed 10 months ago

maimedmeow96 commented 10 months ago

[Question] I've come across a modified NVFlash tool that essentially bypasses the Nvidia security signature processor, allowing it to flash any BIOS onto any graphics card, albeit with certain conditions. Could this potentially serve as a solution for mining-oriented graphics cards? Here's the link to the discussion: OMG-VFlash: Fully Patched NVFlash from X to Ada Lovelace (Thread #312601) on TechPowerUp forums. https://github.com/notfromstatefarm/nvflashk

dartraiden commented 10 months ago

You could flash any bios into any card with a hardware programmer. It won't work. The problem is not in the method (hardware/software), but in that the firmware is for a different GPU.

I believe that the maximum that you can do is to modify the existing BIOS by adjusting the frequencies, consumption limits, and fan curve (and someone has to write a bios editor first). Previously, this could not be done due to the digital signature.

The Tool itself, will attempt to flash everything and progress to flash everything that is valid as a ROM File. It is on Falcon to decide what it will push through and what it wont. For example hard-rebrands like ChipID/SKU rebrands depend on this.

exactly our case ↑ https://www.techpowerup.com/forums/threads/omg-vflash-fully-patched-nvflash-from-x-to-ada-lovelace-v5-780.312601/#post-5083833

dartraiden commented 10 months ago

You cannot flash BIOS with some DEV_ID into a card with different DEV_ID

Error Code = 0x0000005A(90): NV_UCODE_ERR_CODE_DEVID_MATCH_LIST_DEVID_MATCH_FAILED
Device ID in the rom image does not match the device ID in the chip.
Update aborted, please use a rom image that supports device ID 0x1C07.

Falcon CLOSE

1C07 = DEV_ID of P106-100. Falcon wants bios with dev id 1C07.

If you get BIOS from GTX 1060 and manually replace 50 43 49 52 DE 10 03 1C by 50 43 49 52 DE 10 07 1C (50 43 49 52 = "PCIR", 10 DE = NVIDIA VENDOR_ID, 1C 03 = GTX 1060 DEV_ID) you got another error

Error Code = 0x00000040(64): NV_UCODE_ERR_CODE_CERT20_VDPA_SIG_INVALID


It doesn't matter, as I said, you can just bypass all these checks with a hardware programmer but the card still won't work.