[Request] NVMe mod MSI Z87M-G43 BIOS

Hi everybody. I have an old PC with a MSI z87m-g43 motherboard. I installed a NVME SSD on the PCIE slot and I installed Windows 11 on it but the motherboard will not see it as a bootable drive. I have installed the latest official BIOS update, version 2.9.

Can somebody make a mod for this BIOS so I can boot from the NVME SSD? Thanks a lot.

@Luis2u4u
Welcome to the Win-Raid Forum!
Why don’t you do it yourself? For users like you I have written >this< easy to do step-by-step Guide.
If you are not sure whether whether your BIOS modification was ok, please post a link to the original and your modded BIOS.
Good luck!

Hi. Thank you for your reply. I am not such an experienced user and I never did anything like this. I would not want to broke my brother’s PC…

@Luis2u4u
I haven’t written the Guide (it took a lot of time) with the intention to do the insertion of the missing BIOS module at least myself. So nobody has gotten in the past and will get in the future from my side an already NVMe modded BIOS. I hope for your understanding.

By the way - the BIOS modification itself is not risky at all and will not brick any PC or laptop. The only risky part is the flash of such BIOS.
That is why I gave you the advice to upload your work to get an evaluation.

Ok, I will try to do it myself and then I will upload the result here. Thank you for your help.

I did the modification myself using your tutorial and it worked. Thank you very much. I will attach it here in case anyone needs it.

E7823IMS.ZIP (6.0 MB)

2 Likes

Is it work only on pcie 3.0 x16 or secondary slot 2.0 x4?

I have followed your step-by-step, unfortunately mine fails to flash - process hangs right after I start the flashing procedure. Could be because I already added reBARuefi ? Here’s my failed attempt :

failed-z87mG43.zip (6.2 MB)


And what is this then ??? Worked…flashed…so what can users understand from this..the NVMe mod was ok and now your modification is the culprit…

Well, ‘this’ is a different topic I opened last year to mention I had managed to add reBARuefi to my motherboard (the process includes a bunch of fixes and rebuilding on top of adding the driver, because for it to work I also had to enable 64-bit PCI addressing, which can scramble USB 3 support among other things).

A few days ago I finally got the privilege to attach files to posts, so I attached my (working since last year) firmware.

And here, in that different topic (but same motherboard) I took my working, patched reBAR image and added the NVMe driver, and it wouldn’t even start to flash, and I’d like to know why.

So, I did some more testing.

I started over from my patched reBAR image, opened it with MMtool 4.50, extracted the rebarDxe.ffs driver then deleted it from the firmware, added the NvmExpressDxe_small.ffs and re-added rebarDxe.ffs after it.

Flashing with M-flash did not work, period - machine froze. But, I then created a USB boot disk using the official AMI AFU For Aptio 4 utility (AfuEfi64) and, through the (very buggy) EFI command line, I managed to program my new image on that motherboard…

Download page is here : Support Docs Archives - AMI select the Aptio 4 download (they all seem to link to the same large archive, so unzip it, then go to the Aptio 4 archive, unzip it again, go down the afuefi path, get to the 64 (-bit) folder and unzip its content : here, you have a text file, a PDF file and the afuefix64.efi utility. The 32-bit version won’t work, so don’t bother with it.

What I used : a 16 Gb USB key, FAT32-formatted (anything smaller should work, though)

2 files on the key : afuefix64.efi and the firmware file (unzipped) linked on this post.

Once you’re on the EFI prompt, you must enter the commands (it allow autocompletion with tab) :

fs1: # or fs0: depending on your drives setup
cls # to clear the screen : it puts the cursor back to top, but fails to clear or scroll the screen
afuefix64.efi [image] /p /b /n

it will test then flash the image, you can reboot the system once it’s done (if the progress bars end up beyond the bottom of your screen, you’ll know when your CapsLock or NumLock key starts reacting again - it should take up to 10 minutes). Note that it may fail to clean up the EEPROM, I suggest you wipe it (reset UEFI to default settings, or JMP_BATT). Remember, you can save and load settings to/from file…

What has been tested (all under Debian forky) :

  • reBAR works (tested with a 8 Gb AMD GPU, PCIe 3.0 x16 : 8 Gb aperture)
  • USB 3.0 5 Gt/s is ok;
  • migrated my Debian install from a SATA SSD to the NVMe using gparted : booted and worked right away;
  • SecureBoot works (patched or not, it’s very buggy on that motherboard though, get ready for frustrations);
  • Windows 11 (Tiny11 24h2), installs, boots and updates on NVMe drive. ReBAR won’t work though (might be a driver limitation, both/any of chipset and GPU);
  • SecureBoot certificates can still be updated using upfwmgr update.

The firmware I’m using (it’s running that here computer, actually) is attached :

MSI7832v290-rebar-nvme.zip (6.2 MB)

Next, I’ll try and see if I can install and load a TPM 2.0 module - that would allow this system to get a HSI-1 rating with no runtime error :stuck_out_tongue: