[Request] ReBAR for 2700X CPU on Gigabyte X470

Hello

I see Gigabyte is the only brand that does not show ReBAR option of X470 chipset (Gigabyte X470 AORUS GAMING 5 WiFi), with Ryzen 7 2700X CPU. It should already work for Ryzen 3000, according to Gigabyte.

Is it possible please to modify the UEFI from Gigabyte and just enable this option ? I assume the option is already there, as the current UEFI has the needed AGESA v1.12.0.1, and shows the “Above 4G decoding” option, but hides the ReBAR option for CPUs below Ryzen 3000 series.

I remember one of the UEFI updates from Gigabyte has introduced UEFI “capsule”, which likely means signed firmware, but maybe older versions would still work ?

My current UEFI is American Megatrends v2.20.1271 (07/20/2022, ver F63c)

My first post here so I am not sure how a mod request would work, but I am also happy to make the changes myself if I can get the proper instructions about what to download and what to modify to re-package my UEFI if that works…

Needless to say, this would help me so much with my new Intel Arc A770 GPU, which is known to depend on ReBAR support for proper performance.


Thank you,
Timothy Madden

Yes the F63c bios has the strings in Peripherals and in PCI Subsystem Settings

  • Re-Size BAR Support: Disable Disable
    If system has Resizable BAR capable PCIe Devices, this option Enables or Disables Resizable BAR Support(Only if System Supports 64 bit PCI Decoding).

Now search the forum the proper way to mod it and flash it, dont ask me, no time for it, your task only or wait for other users.

EDIT: How about starting by using the search box on the forum: x470 unlock

1 Like

Anyone can give me some pointers how is this supposed to be done ?

did you have your CSM disabled yet? usually the Resizable Bar needs Above 4G Decoding to be enabled, and it would be able to be shown when CSM is already disabled in the bios

CSM is disabled.

I understand all other brands behave exactly as you say, except Gigabyte, for Ryzen 2000 series

I tried to modify my UEFI image from Gigabyte with ACMIBCP to change Access from “Default” to “USER”, and flash my modified UEFI image using modded Efilash 0.74 from this forum.

When I run Efiflash if finishes in a couple of seconds and automatically reboots, but the new image is not flashed. I still have the original UEFI. What am I doing wrong ?

I see Efiflash 0.87 (modded) is supposed to work with pre-capsule versions only.

Does this mean I can not modify the latest UEFI image, even with moded Efitool, and that is why I can not flash it ? Am I stuck with the 2018 UEFI from Gigabyte ?

Next,

I also tried to set up grub-mod-setup-var, but I can not get it to run. When I replace bootx64.efi on my EFI partition, I get eithe a boot error “operating system not found”, either Windows boots normally. But I can not get to the grub console to run the modded setup_var command.

Gigabyte X470/ X570 Aorus BIOS mod thread - BIOS/UEFI Modding / Offers: Already modded special BIOSes - Win-Raid Forum (level1techs.com)

EDIT: Better ask him in that tread, in Intel we can bypass it with the Intel FPT tool but not in AMD as there is no ME FW engine on it… its AGESA.

Using AfuEfix64.efi from Ket X470 thread above still shows a “Loading capsule…” message with my modded UEFI, and then Error 18 - Secure ROM verification failed.

I do not see any “Aptio capsule” in UEFITool (for the original or the modified UEFI), and loading the modified image in UBU also shows no option to “Remove capsule”…

Is there a way to remove and bypass capsule for Gigabyte UEFI images ?

I also tried to edit the ReBAR byte in the UEFI varstore using setup_var_3 command in the patched GRUB, as described in thread for ReBAR DXE Driver for setting hidden 4G Decoding option". But it had no effect as well.

I got it working by:

  • manually updating the flags byte from the hex dump screenshot from lordkag (to flash the image with Gigabyte Qflash)
  • using the Resizable BAR DXE driver described on this forum

So I did not “unlock” the Gigabyte ReBAR option, but the DXE driver works my Intel Arc GPU has resizable BAR now.

2 Likes

Hello how are you? Could you guide me how you could activate the ReBAR? I have an Aorus X470 Gaming 7 Wi-Fi with a Ryzen 2700x. By the way, I ask you: Do you know if the ROM can be modified so that the BIOS detects the resolution of my monitor?

If you’re using 1000 and 2000 ryzen it will be hidden somehow… so you could try this bios, and enable it using this app (open app as admin and set it at 32). Make sure Above 4G Decoding is enabled and CSM is disabled before using the app.

@TimothyMadden Hi, Could you help me with adding NvStrapsReBar.ffs to gigabyte bios?
When I did that and tried to flash bios an error appeared Secure ROM verification failed.
I tried to look for Lordkag guide but without success. Could you please help me?

I think I found that guide from lordkag and i can tell im not gonna do that. Im too stupid. Could someone do it for me? Gigabyte X470 AORUS GAMING 7 WIFI (rev. 1.1). just add NvStrapsReBar.ffs to the latest bios. Many thanks! Chears!

Try this

Can’t Flash with that one, Invalid bios image

Downgrade to old bios (any bios with agesa below 1.2.x.x or even 1.1.x.x)

Also, this might be a good measure, with the bios i did gave, open that bios using UEFITOOL 0.27.0 or MMTOOL 5.2.0.25, and Find and Remove/Delete AmdSpiRomProtectDXE (and the PEI version)if it’s available, save ans update using that modded file, so that if you want to make modification in your bios you could dump and flash using flashprog.

im on F63 agesa 1.2.0.7 i dont really want to downgrade. @TimothyMadden had similar issue but resolved it somehow.

I will try removing things you mentioned. Thanks for help!

uh… downgrading is fine if you’re on zen 2 or zen/zen+

so the procedure is: download the file i gave, remove the dxe (and pei if available) it as per what i mention before → downgrade your bios to old agesa that still supports your cpu → after it finished downgrading, go to bios again → update the bios using my bios that you have removed the mentioned dxe and pei (if available) → now you could technically flash any kind of bios using flashprog as long as the size are the same as your bios chip (you would know your flash chip with flashprog), and if you want to flash latest bios, just dont forget to remove the mentioned modules or else you cant use flashprog, since AmdSpiRomProtectDXE (and its PEI derivative if it’s available) blocks the ability to do so.

im on 5800X3D so its ZEN3. I will try that when i will have a little bit of time. Thanks for your help. I will keep you updated. Cheers

1 Like