I try to flash my modified BIOS for a Asus AM1M-A with afudos.exe 3.07.01. “afudos.exe file.rom /P /B /K” fails with “Security verification failed”, so I tried “afudos.exe file.rom /GAN”, but afudos.exe doesn’t recognize this option. Instead it shows the help text with all options.
So how do I flash my modified BIOS? This mainboard doesn’t support USB BIOS Flashback.
EDIT:
I found the older version of afudos.exe which does still support the /GAN switch (from [Guide] How to Flash a Modded BIOS on a ASUS Z97 Motherboard). When I try to flash the modified BIOS, afudos complains about an incorrect ROM size. And indeed, it is right: my modified BIOS is 8,390,656 bytes, while a saved version (with afudos.exe /o) is 8,388,608 bytes. So why does my modified BIOS grow in size?
That tells us two things, first do not try to further flash this modified BIOS. Second, the first flash may or may not have failed due to needing /GAN support. It’s possibly due to bad modification, but may not be limited to that alone.
Why your BIOS changed size, due to method used, tool used, or mistake. If you need help modifying a BIOS please make a thread with all the details (mods you need done, BIOS links etc) and someone will help.
Remove the AMI Capsule Header via UEFITool
After I modified the saved version of the BIOS (created with afudos.exe), I re-flashed this one and it worked fine.
Hello guys,
I am trying to flash an Asus P8Z77V-LE motherboard with its latest vanilla BIOS with the NvmExpressDxe_4.ffs module, based on this article:
[Guide] How to get full NVMe support for all Systems with an AMI UEFI BIOS
It is the extracted module, the BIOS image is the same size after modding as before.
The Asus flashback feature doesn’t work for me, the flash indicator LED remains light, so I am trying this alternative solution described in this forum.
I have succesfully managed to make a .ROM backup, inserted the module as well.
Unfortunately I get this error:
$PATH>AFUWINx64.EXE modded.rom /P /B /K
±--------------------------------------------------------------------------+
| AMI Firmware Update Utility v3.09.03.1462 |
| Copyright (C)2017 American Megatrends Inc. All Rights Reserved. |
±--------------------------------------------------------------------------+
Reading flash … done
- ME Data Size checking . ok
- FFS checksums … ok
1e - Error: Secure Flash function is not supported on this file.
Ufortunately there isn’t any /GAN option either.
What do you think, gow can I proceed to flash this BIOS?
Try more smaller USB sticks, with nothing but the BIOS file on them, and rename the file to asus recovery name (P8Z77VLE.CAP). You did already extract from capsule before modifying correct?
Did you try the other method, with AISuite
[Guide] How to flash a modded AMI UEFI BIOS
For /gan you need special ES engineer versions of AFU. But, better flashing method is to use Intel Flash Programming Tool (FPT)
To get around the AFU issue with secure flash, remove the BIOS from the capsule using UEFITool, or using the /capsule switch (You must remove /K switch from your command to use /capsule, it only allows /p /b /n /e )
But again, I would use FPT or get flashback working with proper file name mentioned above and possibly different USB stick, but you may not need that once you rename the file and file must be in root of FAT32 formatted USB Drive
Thank you very much! Your first sentence have solved everything.
The image file was called P8Z77-V-LE-ASUS-1104.CAP, as it was the latest downloaded vanilla BIOS image.
Assumed this was the correct name, though I have read about the naming conventions.
Obviously not that thoroughly.
Now testing phase.
Thank you again!!!
Cool you got it sorted out without further delay! Thanks for the beer, I’ll have two
About the names, sometimes you need to use the “Recovery” name, not always though, but that’s what I mentioned above is this boards recovery name.
Hello guys,
I am going to add NVME driver for dell old desktop. The bios file (Dell PC) that I extracted is .BIN file and Is that same as .ROM file ?
Thank you
Yes, same for this purpose. You want the PS-A13.bin file
Hello,
Please take this guide out that forum from the otherwise good site.
I came here, because I made a modified cap (with NVMe) module for ASUS M5A99X EVO R2.0. Everything went fine, but unfortunately the Asus BIOS flashback does not work on my board (for what reason ever).
So please make a note: When the flashback feature does not work, STOP.
I was not so wise and tried this guide “AMI Aptio UEFI using AFU”. This guide is useless:
First the download link is wrong.
Second this guide is useless: All the points until 5a) make no sense, because cap file is protected and can’t be loaded.
Then there comes 5b) "try AFU modified.rom /GAN command. /GAN is undocumented key meant …"
There is no /GAN option on the latest Afudos.
I was then stupid, nothing damaged until this point, but I started trying other Afudos options… Then I ordered via Ebay a new Bios, now the PC works again.
But of course, it was my fault, I should have FIRST gone through the postings of this thread … Nevertheless I think it would be a good idea to take out the original HOWTO and put an actual guide.
Do you need help still flashing your modified BIOS, or did you get it all sorted out? You can removed your new BIOS and put aside, so you can get help flashing your original BIOS chip with the mod BIOS if you want to do that I can help.
I can also PM you several versions of AFU/AFUWin/AFUDOS that do have working /GAN function, but there is other ways around flashing the Modified Asus BIOS.
And since you only need the BIOS region flashed due to your mod specifics, you can use AFU/AFUWin with the /p switch only and it should go through find (BIOS/rom will need extracted from capsule first using UEFITool)
Hi, Lost_N_BIOS, thx for offering help.
I am not sure how to continue.
I don’t want to override the new BIOS chip, but of course I still have the old Bios chip, would be nice to put the modified BIOS on it.
But doing a “hot flash”, so removing the Bios after boot-up, is a bit risky, what do you think?
So I need a hardware programmier …
I guess I killed my Bios chip, because I did not convert the cap file to a BIOS/rom file.
You can set new BIOS aside and not write to it if you want. Did you already test and confirm it’s working? If not, do that before anything else, so you know it’s working BIOS.
Hot swap can be risky yes, but as long as you prepare in advanced it’s usually OK. Practice removing and inserting chip halfway with no power on the board, that way you are used to moves you will make with your hands.
You can put tape or string, something around each chip too, from the bottom around and out both sides, then either coming together on top or leave off to the sides. Made it wide so it’s not tiny/thin string, like half a party ribbon or some strip of plastic from a baggie top or something.
Pull straight up to remove, and then carefully set into place when putting back, you only have to push about halfway down, so you can feel it’s making firm contact and well aligned as you push down lightly.
Yes, if you don’t want to hot swap a flash programmer will be much easier to use.
You can flash the BIOS you have without all that though, you just need to find USB that will work with flashback on your board, smaller is often better (512MB-2GB)
I can send you AFU versions that /GAN does work on, and a special Asus version of AFU too. But those will only help if you have a running board, then you’d need to do the hotswap in DOS to flash the other chip.
If you have one working chip now, then nothing to worry about, use that for now and order the $3 flash programmer and then once it arrives weeks from now you can reprogram your other BIOS to keep as backup.
Hi,
I guess I was not 100% clear, yes the new chip is working, it’s in my PC. I ordered it via Ebay and have again the official 2501 of Asus inside for the M5A99X EVO R2.0
The other chip is outside, I failed to program a new version in it, so PC was dead (came up with Bios is in recovery mode).
About flashback:
Actually I tried 4 different USB sticks, 3 were maybe with too high capacity, but one is 2 GB only. I tried both Fat and Fat32.
What I have seen is: The stick is not accessed at all! No lights come up on the stick. So my assumption was that the flashback does not work.
I tried hard to do it, because after killing my BIOS with afudos, I though I still can do it with flashback, but
Unfortunately I don’t have 512MB stick…
There are 3$ flash programmers???
FAT32 is what you need to use, maybe 2GB was incompatible like the larger ones, you’ll have to try more smaller USB Sticks until you find one that works.
Usually when USB stick is not compatible it will often light up still, but either only a quick flash or a solid LED, not blinking for 1-2 minutes like it would during normal proper operations.
I am not sure about the flashback button LED itself with incompatible USB, not sure what it does I mean, I’m only referring to the LED on USB Sticks with LED. USB Flashback button must be pressed in and held for 3-5 seconds to start it.
Your board page says “Any USB Port” which may be OK, but I would mainly use the black 2.0 ones under LAN, or a red one, so it’s USB 2.0. I’ve never seen this work on USB3 ports, but it may, I’d avoid using those and go with the black under LAN>
Yes, $2.50-3 programmers all over ebay, search CH341A flash programmer
If you want to get that other chip programmed now, without programmer, you’ll have to do hot-swap. Either boot to DOS with flash tool and BIOS ready on USB, then pull working chip out and place in old one, then reflash.
Or boot to BIOS with BIOS on USB ready, get all the way to EZ Flash page, remove the good BIOS and put on the old one, choose your BIOS file and flash.
If you can get backup via FPT or AFU, or Asus tools (AI Suite or EZ Flash backup) use that instead of stock BIOS to flash either of these ways, that way your serial, UUID, LAN MAC ID etc will be in the BIOS.
Hello again,
OK, I will try tomorrow again:
First I try again ASUS flashback, with the bad BIOS chip (the content, the chip itsself should not be bad).
But most likely I will fail, because I tried already very often.
So I have the possibilty to make a hotflash to the bad chip or to normally flash my working BIOS chip.
But what method do you recommend for me?
“Boot to BIOS and go to EZ Flash Page” won’t work with the cap file, right? Same for Boot with a DOS CD with afudos on it (I have such a CD ready, that’s how I destroyed my BIOS), also does not work with a cap file.
So I convert the cap file to binary? And then use what?
I attach the modified bios, should be right, I only added the NVMe module. Can you check that, too?
Thx in advance for your answers.
99XEVOR2.zip (3.05 MB)
Addendum:
Just tried out: Asus EZ-flash does not allow (of course) to program my modified cap BIOS => security failure.