Closed crazyhulk closed 1 year ago
Parsing is perfectly fine in new_engine, but builder is still not ready, so there's currently no way to perform modification with it.
Meanwhile, you can do the following:
In the file you've linked, BIOS region starts at exactly the middle (16Mb mark, offset 0x1000000).
Yes, new_engine parsing perfectly fine and the patch method works, but the 0xE2 will rewrite to 1 when wake from sleep.
In short, the CFG Lock will be enable after wake from sleep.
How did I found this?
Is there something wrong?
@NikolajSchlej
If it gets re-enabled, there's a second piece of code (most likely in PEI or in S3 bootscript) that does that, and it also needs to be patched away. I'm currently traveling and don't have access to the tools required to investigate where that code is, so please remind me in a week about that.
Have a pleasant journey.
Have you finished your trip?
Please take a look at 0xE2 re-enable when you have some time.
@NikolajSchlej
Checked that out, looks like the lock is getting set by CpuPei module during S3 wake. It is covered by BootGuard, so patching it out might make the board unbootable. Needs some testing, and likely can be patched a different way that doesn't trigger it. If you are willing to test (and have a SPI flasher to recover from broken BIOS), ping me here, I'll prepare a modded file.
I am willing to test, but I need another windows machine use SPI flasher to force flash bios. The test may cost more time.
Checked that out, looks like the lock is getting set by CpuPei module during S3 wake. It is covered by BootGuard, so patching it out might make the board unbootable. Needs some testing, and likely can be patched a different way that doesn't trigger it. If you are willing to test (and have a SPI flasher to recover from broken BIOS), ping me here, I'll prepare a modded file.
Ping @NikolajSchlej .
Sorry, this matter has been put on hold for a long time. I can make testing at any time now. Looking forward to your mod file!
Put this on my todo list, will check on one of the next weekends.
Thx, waiting for your good news.
The old engine not work for epc621d8a when I try to unlock 0xE2. And it breaks modified images.
Does the new engine had fix this?
some discussions