Comments (5)
The structure is the same thankfully. The issue is with that line only. I expect that blocks[i][2] is either 0 (No) or 1 (Yes) but the last section (BU.bin) has a value of 9 (1001b), so the list overflows. That number is probably a 4-bit flags field instead.
I've fixed that internally but commenting out that line should still produce a valid image. And it does, I checked via UT. What do you see that is out of the ordinary?
from biosutilities.
The image doesn't really look valid, i.e. it has ME at the very end of it, and and expected VTF to be there instead.
from biosutilities.
Alright, here is what I've understood about PFAT:
- The BIOS Guard (PFAT) SDK is from Intel. That includes any data within the "PFAT Block Header" & "PFAT Block Script" sections.
- The AMI implementation of the PFAT SDK is called AMIPFAT. That includes any data within the "PFAT Main Header" and "PFAT Block Signature" sections.
This script unpacks AMIPFAT. The next version (3.x) will fully support/unpack the Intel PFAT SDK (Block Header, Script) with the help of BIOS Guard Script tool by @allowitsme (need to verify its license first) for the BGSL section. Example:
AMIPFAT does not have an explicit file/FV order. The AMI BIOS Guard Firmware Update Tool (AFUBGT) updates files/FV based on the Main Header Flags/Parameters (probably /P /N etc) and each file/FV's Entry Flags. The exact contents of these two flag fields are unknown to me so their hex representation is shown instead.
Since no order exists, the extractor will save each file/FV separately (like Dell PFS) and the user will have to pick and choose. However, I also plan to keep 1 merged image of all of them (like before, v2) for whenever that makes sense. Sometimes OEMs wrap an entire SPI image (FD, CSE, BIOS/EC) into an AMIPFAT and in such cases, the merged file is an actual flashable SPI image. But not always, it depends on OEM design during AMIPFAT creation.
Now, regarding any data after AMIPFAT, these will be saved as the last file/"FV" for the user to manually look into. Their contents are not standard and vary depending on OEM design/needs. However, if this extra data includes an additional AMIPFAT, the script will automatically unpack it as well. Example:
In this example, the input PFAT has some files (1_x -- *****.bin) and their merged image (1.bin). However, at its end data (1_10 -- DATA_AFTER_PFAT_1.bin), another PFAT exists so it is automatically extracted as 2.bin and 2_x -- *****.bin accordingly. Any additional PFAT would be 3.bin, 4.bin etc.
Does this look proper to you as well? Also, if anyone has better name suggestions for the merged file (1.bin, 2.bin etc) and the last file when data outside the PFAT exist (DATA_AFTER_PFAT_X), I am all ears (eyes?). 😛
from biosutilities.
Does look better for sure.
from biosutilities.
from biosutilities.
Related Issues (20)
- What tool do I use to decompress HP ProBook 430 G7 Stock EC & BIOS from hp.com? HOT 3
- Dell_PFS_Extract.py script is not working HOT 2
- --input-dir argument HOT 4
- Error: This is not a supported input! HOT 2
- Scripts aren't marked as executable HOT 1
- Input error? HOT 1
- Fujitsu UPC tianocore error HOT 1
- Dell_PFS_Extract.py", line 23 HOT 1
- AMI_PFAT_Extract not working with new METEORLAKE core ultra AMI BIOS Guard protected images HOT 6
- [Suggestion] Intel BIO -> FD converter HOT 2
- Error: This is not an AMI BIOS Guard (PFAT) image! HELP HOT 2
- Panasonic extract script not extracting .bin for CF-33 Mk2 HOT 3
- python 3.12 no error but nothing hapens HOT 2
- Dell PFS Update Extractor - not work in windows 7 HOT 1
- Need help determining what is needed to update my bios HOT 2
- PFAT Extract, input not supported HOT 1
- Error with python, No module named 'common.checksums' HOT 1
- Doesn't seem to work for bios on Acer Nitro 5 HOT 1
- No Output On Asus G16 2024 GU-605MZ . [AMI_PFAT_Extract] HOT 3
- Add Insyde fd packer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biosutilities.