4.11 Stage Enabling Checklist
The following steps should be followed to enable a platform for Stage II.
Update GenerationOpenBoardPkg/BoardXXX
Add Board boot mode detection code in
BoardBootModeDetect ()
, BoardXXX/BoardInitLib/PeiBoardXXXInitPreMemoryLib.c.- The boot mode can be hardcoded. It should reflect actual functionality based upon the feature, such as S3 (silicon register), Capsule (variable), Recovery (GPIO).
Add Board pre-memory initialization code in
BoardInitBeforeMemoryInit ()
andBoardInitAfterMemoryInit ()
, BoardXXX/BoardInitLib/PeiBoardXXXInitPreMemLib.c.It initializes board specific hardware devices, such as GPIO.
It also updates pre-memory policy configuration by using PCD
Add Board policy update code in
SiliconPolicyUpdatePreMemory ()
, BoardXXX/PeiSiliconPolicyUpdateLib/PeiBoardXXXInitPreMemoryLib.c.- The PCD updated in
BoardInitBeforeMemoryInit ()
might be used here.
- The PCD updated in
Ensure all PCDs in the configuration section (DSC files) are correct for your board.
- Set
gMinPlatformPkgTokenSpaceGuid.PcdBootStage
= 2
- Set
Ensure all required binaries in the flash file (FDF files) are correct for your board.
Boot, collect log, verify test point results defined in section 4.9 are correct.