What is PEI?
Quick note explaining PEI for BIOS/UEFI and embedded firmware readers.
PEI (Pre-EFI Initialization) is the early PI phase that prepares the platform, initializes memory, publishes PPIs, and builds HOBs.
Why it matters
- Explains the core language used in BIOS/UEFI source and logs.
- Helps identify where a concept appears in the boot flow.
- Serves as a bridge between specification terms and real firmware debugging.
Practical example
Example: when reading a boot log, search for PEI-related messages and note which phase produced them before jumping into source code.
Quick checklist
Quick takeaway
PEI is a small concept, but it often becomes important when reading logs or debugging real firmware.
A debugging angle
I try not to treat PEI as a dictionary entry. I read it as part of a firmware path: who produces it, who consumes it, and what symptom appears when it is wrong. That habit makes the note useful during debugging, not only during study.
A small field example
Most firmware concepts become clearer when placed in the right phase. PEI, DXE, BDS, and runtime code have different responsibilities. For PEI, I would ask which module creates it, which protocol/PPI/HOB or variable carries it, and which later component depends on it.
In a real debugging session
For PEI, I usually ask four questions: which firmware phase sees it, which module produces it, which module consumes it, and where the symptom appears when it is wrong. That turns a BIOS/UEFI definition into a useful debug checkpoint.
When a DXE driver does not bind or BDS stops at an unexpected point, avoid staring at one error line only. Walk backward through protocols, handles, device paths, variables, and policy decisions. Firmware failures are usually chained.
Related notes
Public references
Found this useful?
Save it or share it with someone learning firmware, BIOS/UEFI, and embedded systems.
Nội dung liên quan
Một số bài viết, ghi chú hoặc project có liên quan đến nội dung bạn vừa đọc.
What is PEI Fail Checklist?
Quick note explaining PEI Fail Checklist for BIOS/UEFI and embedded firmware readers.
What is HOB?
Quick note explaining HOB for BIOS/UEFI and embedded firmware readers.
What is PPI?
Quick note explaining PPI for BIOS/UEFI and embedded firmware readers.
Biến note thành bài viết hoàn chỉnh
Notes là nơi ghi nhanh khái niệm.