Page 6 of 12
#76 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 06.02.2019 09:19

avatar

@Neutral67fr -This is not a BIOS itself/file issue, but either a system instability or physical BIOS chip issue (Bad chip, bad part of the chip, bad solder joint etc), or some other issue like driver causing this.
It's not saying problem is BIOS file itself, it's saying problem is after I write data you gave me, it does not match file I used to write from (This is FPT's thoughts/comment)

You will get same error I suspect if you try to write back original biosreg dump too, but in order to do that in a manner like I mean (Changing the data) we'd have to issue a re-write command which will erase first and we don't want to do that if the chip is bad at any location.

Try doing it using DOS Version instead. Be sure to have your original backup there too in case you see same error, if so reflash the original again before rebooting.

Other than that, things you can try is first putting the system to sleep for one minute, wake it up and then try the flash. And also make sure "Secure boot" is disabled in BIOS settings.
Remove your overclock if you have one, to ensure instability isn't part of the issue.

I checked your modified BIOS, it's correct now and not part of this issue. It may be a partially faulty chip, I've seen it before and chip still working and programmable in certain ways, but still causing other similar issues.
It could be due to Win10 or some windows driver, that's why I say to try in DOS

plutomaniac - have you seen other causes for this? >> FPT Error 204 - data verify mismatch

#77 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by plutomaniac 06.02.2019 13:24

avatar

Zitat von Lost_N_BIOS im Beitrag #76
have you seen other causes for this? >> FPT Error 204 - data verify mismatch

Inability to properly read/write that chip? Possibly bad chip? Maybe give it another try? Flashrom under Linux?

#78 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 06.02.2019 13:43

avatar

Thanks plutmaniac, I suspected it was something with the chip, or windows/driver possibly, I've not seen this error before but I have seen similar with dying chip (Don't remember exact error though).
Hopefully DOS FPT will work better, or yes if it comes to that Linux.... And I told him "do it this way, it will be easier and you'll be done in no time"

#79 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Neutral67fr 07.02.2019 00:26

avatar

OK thank you guys but this time it's over for me, I give up!

Just for notice, I remember to have already used the -rewrite option during my multiple attempts (I saw it in the screenshots of the guide ^^), it had no bad effect when flashing the backup which ended successfully, so in the hypothesis of a bad chip, it is strange that flashing the backup always passes, and with a modded file it always fails...

Now I'm going on with the current SATA SSD, NVMe will be part of my next laptop ;-)

#80 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 07.02.2019 06:09

avatar

Don't give up @Neutral67fr - try in DOS, that's simple to do! I can't explain how that works OK with stock dump going back in, but not mod, but the error is not related to the mod BIOS contents (FPT doesn't care what you give it, you can Feed it all blank file/FF"s and it will say OK/flashing/success)

#81 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Neutral67fr 07.02.2019 13:57

avatar

@Lost_N_BIOS
Humm... I'll have to think about it
Just to know, in order to be able to flash from a native DOS environment, what I will have to do is:
1- Boot from EFI shell (grub) to disable bios lock (because the bios re-locks at each power down)
2- Reboot from a DOS environment boot media (with the FPT tools and bios files located somewhere on it)
3- Execute the relevant FPTw command line for flashing

Is that right?

#82 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 07.02.2019 14:29

avatar

@Neutral67fr - BIOS lock stays disabled once you set it from grub using setup_var, it's only re-enabled if you reflash a stock BIOS region.
Yes, you are correct though, if you currently are using stock BIOS region, unlock BIOS lock again, boot to DOS and flash using DOS FPT and see if you get same error. DOS FPT is in package with the windows one, just in DOS folder.
Put all those files on USB along with stock and mod BIOS regions, and then try the FPT flash there instead (No w after FPT in DOS)

#83 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Neutral67fr 07.02.2019 23:06

avatar

@Lost_N_BIOS
OK, one step ahead but still not arrived... I could flash the modded bios file successfully from DOS. So the issue from Windows could be a driver matter.
I then flashed the modded bios (the latest one you have revised built with the small NVMe module inserted as compressed) but the bios doesn't seem to handle the NVMe driver. I have tried to install Windows from my USB install media, but the system can't reboot on the SSD, there is no UEFI boot found.

#84 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 08.02.2019 06:57

avatar

@Neutral67fr - good you were able to finally flash mod BIOS from DOS! So yes, must be a driver or windows version issue.

For NVME system install, you must follow all steps exactly as written in step #4 of this guide, many people suffer issues trying to install and think the mod failed if they do not follow the guide
[Guide] How to get full NVMe support for all Systems with an AMI UEFI BIOS

Do not skip any step, or it will fail. You now have NVME Mod BIOS flashed in successfully, leave it there and ask for help on the thread above, users there will be able to best advise you based on the errors you get or where it stops/fails during installation so be sure to describe exactly what's happening.

#85 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Neutral67fr 08.02.2019 10:37

avatar

@Lost_N_BIOS
I followed the steps of the guide for the install (no other drive connected, boot from an UEFI windows install stick, disabled CSM and secure boot, deleted keys... and so on...) so it must be written somewhere that I don't have to use a NVMe SSD in my laptop
The SSD has returned into its packaging and my older 2.5" Sata SSD retrieved his place ^^
I don't want to have to tinker with the system each time I will have to reinstall the system (it surely will happen) or to let all this stuff to the next owner in case I resell the laptop (which may happen as I'm surely going to buy a ne one)...

Thank you one more time for all your precious time and efforts , but NOW I definitely give up.

#86 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 08.02.2019 10:48

avatar

@Neutral67fr - Once you get it installed you can then image that install and have a clean image NVME ready that you can restore with anytime, so much less hassle then doing a clean install any time in the future.

You're welcome, but sorry you was not able to get this going! I'm sure if you ask in the NVME thread they'll have the answer for you right away.
I've never used NVME, so I'm not a person who can help you with that, which is why I said you needed to ask in that thread for a proper answer now that your BIOS is flashed and NVME ready.

#87 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by pseudolobster 27.02.2019 07:55

Hi everyone! New user here, so, sorry if I ask something that's really obvious, but I've been scouring this forum, MDL, bios-mods, and the wayback version of donovan6000's site for almost a week now and I'm still not 100% sure.

First of all, my end goal is to mod my vBios to undervolt my GPU or and/change its clocks. My GPU starts thermally throttling at 70c, and reduces itself to 1/4 normal performance when that happens.

HP Zbook Studio G3 laptop. I've been able to dump, extract, and modify my vBIOS, and pack it back into a system ROM, but I can't flash using HP's tools, FPTw, or AMIAFU.

I keep reading about RSA signatures, but I'm not 100% sure my BIOS is signed, or if it is, by what mechanism. Andy's Phoenix tool doesn't say anything in SLIC.log about decrypting anything. My ROM I extracted from a BIOS update is a .BIN file, not .FD. I read @CodeRush's russian blog posts on removing RSA checks, but I couldn't find anything that definitely looked like a RSA-1024 key in any of the padding sections, even after a couple hours of staring at the hex.

I think I also read somewhere @Lost_N_BIOS was saying with RSA-verified HP BIOSes, often the Option ROM sections aren't verified, and I've seen people able to make small changes to things like this, so I got sorta encouraged that this might work.

Flashing using HP's tool looks like it works fine in windows, but what it looks like it's doing is copying the ROM file to the EFI partition under \EFI\HP\BIOS\New then rebooting into a EFI program that gives me "Signature Verification Failed" when it tries to actually flash the modified ROM.

FPTw dumps the BIOS fine, but when I try to flash back the unmodified BIOS I just dumped, it gives Error 368. I've checked with MEInfo that there's no Measured Boot, Verified Boot, or Boot Guard. I've checked for such settings in my BIOS using HP BIOS Configuration Utility. I was able to find a few settings there, BIOS Rollback Policy, Lock BIOS Version, BIOS Data Recovery Policy, and SureStart Production Mode. I've set all of these to disabled, but I still get Error 368 from FPTw. I found the Setup DXE and used Universal IFR Extractor on it, but I couldn't find any additional "Lock BIOS" type settings that are hidden in the menus.

Sooo, that's where I'm at. I'm at the point where the only other thing I can think to try is to use a SPI programmer and flash the chip manually. I don't have a CH341A programmer, but I have a raspberry pi and some arduinos, and I'm sure I could solder 8 wires to the winbond w25q128 chip I've identified as probably being my BIOS.

I'd rather not resort to that if I can help it though. Is there anything I've missed in the software world?

And then, if I do flash it with a programmer, what do you suppose the odds are it'll work?

Thanks in advance if anyone can help me!

#88 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 27.02.2019 09:19

avatar

@pseudolobster - undervolting for GPU cannot be done in BIOS usually, change clocks can sometimes if it's the onboard GPU inside the CPU. Otherwise all that is done inside vBIOS for the card, if dedicated (not onboard, inside CPU)
Sounds like you sorted all that out though, sorry was replying while I read your comments

Please link me to your BIOS, preferably your FPT dump of BIOS region (FPTw.exe -bios -d biosreg.bin) That's what you modified correct? If not, modify that now instead, and send me that.
Error 368 in FPT is BIOS lock, so seems like it's set we just need to find

Your mention of HP Sure Start is not a good sign! Often, once you do flash in a mod BIOS on a system that has Sure Start, after reboot Sure Start kicks in and auto recovers stock BIOS back to the chip.
There is a few versions of this though, so not sure how they all act with mod BIOS, but you'll find out soon enough This also applies the same when using a programmer, unfortunately, that's how I first ran into Sure Start, helping someone here on a few HP's with a programmer.

I checked stock BIOS N82, and I can't find your setuputility module, what is it's GUID

#89 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by pseudolobster 27.02.2019 10:16

Zitat von Lost_N_BIOS im Beitrag #88
Please link me to your BIOS, preferably your FPT dump of BIOS region (FPTw.exe -bios -d biosreg.bin) That's what you modified correct? If not, modify that now instead, and send me that.


Sure! See attached. Edit: Hosted here: https://u.teknik.io/aa05o.zip. I've been working with version 1.18 because it's what I've got flashed right now. It's one of the oldest versions I can revert to (in 1.15 there was a change that prevents previous versions) but there's not much change in the layout of future versions. I can flash and redump and remodify a 1.37 copy if needed.

Zitat von Lost_N_BIOS im Beitrag #88

Error 368 in FPT is BIOS lock, so seems like it's set we just need to find

Your mention of HP Sure Start is not a good sign! Often, once you do flash in a mod BIOS on a system that has Sure Start, after reboot Sure Start kicks in and auto recovers stock BIOS back to the chip.
There is a few versions of this though, so not sure how they all act with mod BIOS, but you'll find out soon enough This also applies the same when using a programmer, unfortunately, that's how I first ran into Sure Start, helping someone here on a few HP's with a programmer.

I checked stock BIOS N82, and I can't find your setuputility module, what is it's GUID


If I'm not mistaken it's A0A3FEC9-FE9D-4CE7-8DB4-9C54F3F19E5A_0117.

#90 RE: [GUIDE] Grub Fix Intel FPT Error 368 - BIOS Lock Asus/Other Mod BIOS Flash by Lost_N_BIOS 27.02.2019 10:39

avatar

@pseudolobster - Thanks for the GUID, that only looks like half the BIOS, correct?. What all menu sections do you see in the BIOS? Can you zip me up and image of each one, just a single shot of each main section, maybe with that I can find the rest.
How did you find this GUID anyway? I looked for a while and no luck, but of course I didn't know any exact BIOS settings to use as search terms either, but none of the usual brought up anything good.

Xobor Forum Software von Xobor
Datenschutz