[Release] Resizable BAR BIOS EFI Module

Hello everyone, sorry if i have a bad english it is not at all my native language and im trying my best i hope to be comprehensible, so i am trying to add resizable bar support to my MSI B150 PC MATE
I followed this guide : GitHub - xCuri0/ReBarUEFI: Resizable BAR for (almost) any UEFI system
Ok so i downloaded the latest version of my bios which is a CE0 file ( idk if it is important but to be cautious im saying the details )
i used UEFITool to add the ffs accordingly to the guide
Ok nice i saved everything and i have my .rom file ready to be flashed !
I tried to use the classic FLASH-M interface on the bios setup, does not work. Does detect the usb but not the file.
So i tried to make my usb bootable and boot on it with the file directly ( like the guide on this site sugest ) and it does not work ( black screen showing " no bootable device found " )
I tried to tickle around my bios setting going into legacy/uefi and also my usb rufus setting even trying linux UEFI/GPT usp setting on rufus, i tried brute rename the .rom file to .CE0 nothing is working

im running out of ideas if anyone can help me somewhat i will be very thankful !

Hello @Marzouqi2000 ,

Can you post the file you have made here?

I am a new user i can’t upload file through the site but here a link : https://anonymfile.com/4YxN8/b150-rebar.rar

Someone suggested me to use AFUWin64

ok so i’ve finally done it using AFUWIN !!!

Hello @Marzouqi2000,

Excellent :grin:

I was going to suggest that but I wanted to check the file was OK first.

Are you able to get the BAR size you want?

Hi,

Was wondering where in the bios is the best place to insert this dxe file? Was looking inside a Z270 AMI Asus bios and noticed that the last two bios volumes are duplicates. Which one is best? Need only place in one volume? Thanks

DXE file should belong to DXE volume. Place it near to other DXE drivers.
If not enough space left, it is safe to remove drivers from DpcDxe to Udp6Dxe.

Hello @davidm71 ,

Which board and file in particular?

I don’t think I have seen two DXE areas in two identicle volumes before.

It would be nice to have a look.

Best regards,

-68k

Experimenting on a Z270-WS Asus board. The last four volumes are duplicates meaning they exist in pairs but was able to find the DXE volume by searching for NVME key phrase where it was hiding in the 5th to last volume. No problem.

Thanks

in GUID A03… (Its in the buttom of volume before the first PEI volume)

Hello @davidm71,

As @Koekieezz has said.

Insert the ReBarDxe.ffs file after A0327FE0-1FDA-4E5B-905D-B510C45A61D0

Save as xxxxxxxxx_modified and check that the file size hasn’t changed.

Good luck and If you get stuck post the issue for us to help with.

Best regards,

-68k

1 Like

since that is where the orom stored and other, i think it is the equvalent of CSMCORE in older aptio 4 bioses, but also whenever i insert rebar dxe, it works (for 100-200 i usually do in github)

I like MMTool as it is sometimes easier to see where the silly DXE section is :laughing:

1 Like

Do you mind if I PM you?

it’s fine

I have the same issue.
Resizable bar works perfect on my Maximus VIII Ranger which was already modded with Coffee Lake mod.
Equipped with an i7 9700KF and RTX 3070.
Resume from sleep does not work.
I need to press the reset button and then it will be back where I left it off.

Did you find a solution?

Not really helpful, but I just connect my controller. Stops it sleeping. :sleeping:

Hi guys and big thanks to xCuri0 for enabling this!
I’m running 9900 Coffeemod “mutant” CPU on Asrock Z170Extreme6 so the BIOS is already patched.
Trying to enable ReBAR for RX580 4Gb, I followed the guide by enabling hidden 4G Decode and it works now, shows Large memory in Device Manager and is detected by GPU-Z.
Strangely I got stuck after adding ReBarDXE.ffs into the BIOS image as I can’t flash it with BIOS own flasher (apparently it treats the modified file as insecure), also tried flashing the chip with CH341A with no luck - PC just doen’t start booting while with the secondary BIOS it posts as it should.
Also I can’t find the AmiBoardInfo section (there’s only AmiBoardInfo2 which doesn’t have DSDT part at all) in a dump so no idea how to apply DSDT patches, I’ve read Asrock boards are notorious for having issues.
Please guide me to which files/screenshots I should upload here to diagnose the issue and proceed.
Many thanks in advance!

UPD: made a stock flasher work with UBU, still with no luck - rolled back to secondary BIOS
Also tried MMTool instead of UEFITool, with the same negative result :frowning:
I suspect that ReBAR modifications may somehow conflict with former CoffeeMod ones making the system unable to boot but have no means to check and confirm that.
Uploaded the original ROM I took from an Asrock site and used lately.
Asrock Z170 Extreme K6
(thanks to MeatWar for pointing it out)

Hello @DriVE654,

Have you got the file you made for a quick check?

I did this on an Asus Z170 board to get 9900k working and ReBAR.

I made a backup with Programmer, then started with fresh file, Modified with ReBAR and Patches, Coffeetime + S/N MAC insert. It worked.

Hi 68k-dude, thanks for your reply! So you did it the other way around - first RaBAR patches, and then CoffeeMod, right? I thought it might be a solution, will try that later on today.
Attached is my patched file.
apr_Z17EX67_50A_CFM_Re.bin.patched.zip (6.9 MB)
P.S. So you took the dump from your working board, not the original ROM from mobo manufacturer?