[Problem] Flashing a modded Dell Optiplex BIOS on Linux

Hello! New here, so forgive me if this is in the wrong place.

I’m trying to word this post concisely enough, in a way that gets my problem across clearly… but a lot of this is tricky to wrap my head around let alone write out. The gist is that I’m looking to flash a modded BIOS to my Dell Optiplex system, safely, on Linux. I realize the forum is called “Win-Raid” but it seems to be an OS-agnostic forum. Feel free to call me out if I’m wrong…

Specifically, I’d like to resize the default BAR size on my Dell Optiplex 9020 so that I can take full advantage of my GPU (an Intel Arc A380) for video encoding - currently it seems to be locked to 256M versus the full 6G of VRAM that I have (attempting to currently change this via writing to a system file - echo 13 > /sys/bus/pci/devices/0000:03:00.0/resource2_resize - results in a write error, stating No space left on device). I have an Intel Generation 8 motherboard which doesn’t officially support resizable BAR, nor the 4G Decoding BIOS setting, but projects like reBART are able to implement a UEFI driver that fixes this issue.

So I took the latest official Optiplex BIOS update (a windows PE32 executable, for some reason…) and extracted the bios.bin file from it, ran through the reBART instructions via the README successfully, and it’s now time to apply this modded BIOS to my system. The problem is that I don’t know how to do this on Linux… All of the tools I’ve seen in doing this seem to run on Windows, and the official Dell BIOS flasher doesn’t support the .bin modification I created (only the official update .exe files; said bin is marked as an invalid image. The README is a tad vague on this front. Not sure about the AFU flasher, but it’s a windows/DOS application that I should probably avoid in this instance).

Has anyone gone through this before and survived? flashrom can allegedly do it - I was able to use it to make a dump of the BIOS file that is sitting on there now, but I don’t really want to blindly write to my NVRAM and brick my server. Since the input and modified output files from reBART are of the exact same size, I’m investigating splicing the modified BIOS into the original update.exe file and trying to flash that. Seems a bit risky though…

This is pretty much all foreign territory to me. The introductory thread lists a task like this as for “experienced users” which I thought I was but clearly not. Any help is so, so appreciated. Thanks :slight_smile: