sibradzic / upp

A tool for parsing, dumping and modifying data in Radeon PowerPlay tables
GNU General Public License v3.0
154 stars 24 forks source link

Attach pp_table to ROM #15

Closed PNixx closed 3 years ago

PNixx commented 4 years ago

If we can extract pp_table from bios rom, then can we attach pp_table to bios rom? That would be a great idea. As Red BIOS Editor does for Windows, but MorePowerTool is extremely limited in parameters.

sibradzic commented 4 years ago

Sorry, I missed this issue somehow. What do you mean exactly, like replacing the PowerPlay table in VROM with modified one (modify "in place")?

PNixx commented 4 years ago

Yes. I want extract pp_table from VROM upp --pp-file=extracted.pp_table extract -r VIDEO.rom, modify it and attach (replace) in to VROM file. And flash a new bios my card. Is it possible? Under Linux, I have not seen such functionality.

sibradzic commented 4 years ago

It should be possible, but don't forget that a new checksum for such modified vBIOS image will have to be calculated and updated. I could work on this, but I have 0 idea where tihs vBIOS checksum is located. Would be much appreciated if someone can point to some info or example code on how is this done.

datspike commented 3 years ago

https://github.com/AnorakTech/Anoraks-AMD-VBIOS-CRC-checker Here's a VB .NET example on checking a vbios checksum

sibradzic commented 3 years ago

OMG, that code :scream:

But don't worry, I had it figured out few weeks ago, it is super simple: https://github.com/sibradzic/upp/blob/master/src/upp/decode.py#L120-L135 I'll look into implementing it in the following days...

psyborg55 commented 3 years ago

there is already an app that can fix checksum: https://github.com/jfoster/AMDVBIOSChecksumTool