xCuri0 / ReBarUEFI

Resizable BAR for (almost) any UEFI system
MIT License
1.4k stars 63 forks source link

ASUS Sabertooth X99 pad-file issue #214

Open gravufo opened 2 months ago

gravufo commented 2 months ago

System

Description

First off, thanks a lot for this repo and all the effort put into the wiki. It was really helpful!

I have successfully flashed a BIOS with the ReBarSmiDxe module as well as the NvramSmiDxe patch (required for X99). However, I end up with no video at POST and I can't see anything if I manage to enter the UEFI settings (similar to issue #4 ). I realise that the UEFIPatch was also trying to patch my PciBus with the patch PciBus | Don't downgrade 64-bit BARs to 32-bit, which is probably what is causing the no video issue.

Unfortunately, if I apply that patch whether it's through UEFIPatch, UEFITool or even MMTool 5.x (can't use 4.x on my BIOS), it seems to add a new pad-file that wasn't there before: image

I have even tried messing around with the hex editor, however I can only do that on the extracted uncompressed version of the module, so it ends up being the same problem at the end.

Any idea how I could proceed to fix that?

ZOXZX commented 2 months ago

I've used another version of mmtool to replace pcibus and now bios is free of padding issue, but beware: on x79 that version caused CPU voltage to be fixed at 1.5V. Thankfully, it's under water cooling and I've seen the voltage error in BIOS and shut down the system. Maybe there was some config error or it's x79 specific, but use it at your own risk and check immediately for cpu voltage ... asus.rom.zip

gravufo commented 2 months ago

I've used another version of mmtool to replace pcibus and now bios is free of padding issue, but beware: on x79 that version caused CPU voltage to be fixed at 1.5V. Thankfully, it's under water cooling and I've seen the voltage error in BIOS and shut down the system. Maybe there was some config error or it's x79 specific, but use it at your own risk and check immediately for cpu voltage ... asus.rom.zip

Thanks for the response! So the zip you provided is for which board? Highly doubt I can use it if it's a BIOS for another model. 1.5V on CPU is quite high, even with watercooling, it will degrade the CPU pretty fast. I am on air cooling, so not willing to risk running at 1.5V.

ZOXZX commented 2 months ago

It is for your board, what else? Voltage problem was with x79 and mmtool that supports both 4 and 5, maybe it's not present here ...

gravufo commented 2 months ago

Thanks, opening it in UEFITool NE does show that the pad-file is not there, so it looks pretty good (I'm assuming both the PciBus and the NvramSmiDxe patches were applied). That's really helpful! I'm not sure when I'll have time to test/flash it, but I'll report back as soon as I do.

AiSuperBot commented 1 month ago

The cause of the added pad file is that after the patch you applied the module has changed his size causing it to be unaligned, hence needing to add a pad file to realign the other module after the patched one.

There is more than one solution to this: Try modding an older BIOS version. Try compressing the module and the insert it to the BIOS (@Sweet_Kitten’s solution). If you have more than one module to patch, try patching them (like DSDT or whatever, while ignoring the added pad file) and if you have enough luck it might fix the pad file issue (this solution counts on other modules change of size as a fix).

I went through the same issue. Here is the post that concludes all the process, in case this would be helpful to you.

Ruffy47 commented 1 month ago

Hey I tried to modify the BIOS file from Asus. I don´t own this board and can´t test it, but you can try if you want. I added the NVStrapsRebar module too.

https://easyupload.io/yq82fu