slimbootloader/Platform/CoffeelakeBoardPkg
Vincent Chen 7400d6f0b3 fix the wrong sblopen_dir value in StitchLoader.py and StitchIfwi.py
This patch can reduce the chance of setting SBL_SOURCE when the
SBL root directory is not named as "SblOpen" or when the scripts
are run from the path other than the SBL root directory. Also note
that os.path.abspath() returns the absolute path relative to the
current working directory instead of the real path of __file__.
So in StitchIfwi.py, sblopen_dir was incorrect since the working
directory had been changed before calling stitch().

Signed-off-by: Vincent Chen <vincent.chen@intel.com>
2022-05-05 10:09:21 -07:00
..
AcpiTables [TGL] Update MCFG table template with correct end bus number 2022-02-11 09:48:40 -07:00
CfgData Use LF line endings in the repository 2021-11-10 12:46:42 -08:00
Include Use LF line endings in the repository 2021-11-10 12:46:42 -08:00
Library Revert "[UPX] Disable malfunctioned USB2 port" 2022-04-25 08:58:41 -07:00
Script fix the wrong sblopen_dir value in StitchLoader.py and StitchIfwi.py 2022-05-05 10:09:21 -07:00
VbtBin Use LF line endings in the repository 2021-11-10 12:46:42 -08:00
BoardConfig.py Use LF line endings in the repository 2021-11-10 12:46:42 -08:00
CoffeelakeBoardPkg.dec Use LF line endings in the repository 2021-11-10 12:46:42 -08:00
Readme.md Use LF line endings in the repository 2021-11-10 12:46:42 -08:00

Readme.md

Whiskeylake(WHL)/CoffeeLake(CFL)

Clone source

Building

  • python BuildLoader.py build cfl
  • NOTE: Build target(cfl) is common for both WHL/CFL
  • NOTE: For UEFI payload, please refer to UefiPayloadPkg in edk2 repo. In UefiPayloadPkg/BuildAndIntegrationInstructions.txt, refer to section.

Stitching

  • Prepare/Download UEFI based IFWI for WHL or CFL
  • python Platform/CoffeelakeBoardPkg/Script/StitchLoader.py -i EXISTING IFWI IMAGE -o SBL IFWI IMAGE -s Outputs/cfl/SlimBootloader.bin
  • NOTE: Please make sure that this stitching method will work only if Boot Guard in the base image is not enabled, and the silicon is not fused with Boot Guard enabled.

Flashing

  • Flash generated SBL IFWI IMAGE to the target board using DediProg SF100 or SF600 programmer.