1.Build script will not copy FSP, VBT and Microcode bin files from repository
if it finds these files existing in taget folders.
Above step keeps them from unintentional update in series of build process.
Adding a board name to clean command helps to get latest binaries from repository
in next build.
2.Ignore empty board name from loading BoardConfig*.py
Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
Since OsLoader will never be exercised on S3 resume, there
is no need to check if boot mode is S3 resume before logging
TPM events in OsLoader
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
This change ensures that consistent APIs are called to
determine if a hash gets extended to TPM PCRs
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
Test config on CRB:
Set PchHdaEnable=1 in CfgData_GpuConfig.yaml
Linux OS, test by speaker-test -c 2 -D hw:0,7
Signed-off-by: Randy <randy.lin@intel.com>
This change only sets the GFX framebuffer cache type to Write-combining
when not booting the UEFI payload. The UEFI payload PCI hostbridge driver
will override the WC setting anways for the whole PCI root bridge memory
range, so it wasn't gaining the write-combining performance bonus, and was
causing a CPU exception in this particular case for RPL-P.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
platforms
Update Build scripts to take a different file path and Name
for
-- microcode_inf_file
-- fsp_inf_file
Signed-off-by: Barnes <kimberly.d.barnes@intel.com>
platforms
Update Build scripts to take a different file path and Name
for
-- microcode_inf_file
-- fsp_inf_file
Signed-off-by: Barnes <kimberly.d.barnes@intel.com>
Added Null template for FusaConfigLib. Platforms supporting FuSa should
follow this template for enabling FuSa configuration prior to FSP-M and
FSP-S.
Added ADL/RPL CfgData fields for FuSa according to SBL FuSa software
requirements, and dlt file for enabling FuSa and related configuration.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
Update copyright years
Initialize pointers to NULL
Check pointers for NULL before de-reference
Standardize debug logs
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
* [ADL] Update TPM event logging to match BIOS
If measured boot disabled via BtG profile but enabled via SBL
config flag, skip logging startup locality TPM event
If measured boot enabled via BtG profile or SBL config flag, log
CRTM version TPM event
Set startup locality based off startup locality on ACM policy status
Log detail and authority PCR events based off SCTRM status on ACM
policy status
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
* Initialize startup locality and remove measured boot check
Initialize startup locality variable used in setting up event
log
Remove measured boot check as it is not seen in BIOS and it
occurs at higher level
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
---------
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
This Patch add the support to set UFS clock frequency.
- Added the function to read or write specified attribute of a UFS device
- Shifted function which switch the link power mode and gear after ref_clock setting
because if an unsuported clock frequency being set, it won't be able to overwrite
the corrupted UFS attributes.
Signed-off-by: Aakash Panwar <aakash.panwar@intel.com>
New CrashLog support design is for FSP to collect CrashLog info and report
in HOB. Bootloader responsibility is just to populate ACPI BERT with FSP
collected CrashLog Data now. That way bootloader has no Silicon code.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
When building HelloWorld, it would build failure since SBL core
package is missing in PayloadPkg.dsc since
In general, the payload should not depend on BootloaderCorePkg.
Currently PcdAcpiEnabled is used in the payload entry module and
it is defined in the BootloaderCorePkg. This patch updates the
code to remove the dependency.
Signed-off-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Atharva Lele <atharva.lele@intel.com>
ADL boards come with emmc as an in-built boot media.
Add EMMC option in the default list in order for the OS to boot
up when using OS loader payload.
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
The PCH decodes MMIO accesses to the top of 4GB to SPI flash for a maximum
window size of 16MB. For SBL images larger than 16MB, this PostTempRamInit
hook was causing the MTRR to overlap with NEM stack set up by FSP-T,
causing a hang.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
Add support for Up Xtreme i12 ADLP based board.
The PCIe M.2 slot CN12 on the board is able to detect NVMe SSD.
Debug output is enabled at header CN9 on the board(e.g. UART1)
Tested to boot with OS loader payload and UEFI payload.
To stitch the SlimBootloader.bin with IFWI uses StitchLoader.py script with '-p' as given below:
python Platform/AlderlakeBoardPkg/Script/StitchLoader.py -i <BIOS_IMAGE_NAME> -s Outputs/adlp/SlimBootloader.bin -o sbl_upx12_ifwi.bin -p 0xAA000104
Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
Firmware update got failed when verified boot was turned off.
While fwupdate capsule is always generated with signing key,
it should be verified only when verified boot is enabled.
Otherwise, raise a warning to inform that the capsule is not
authenticated.
Signed-off-by: Vincent Chen <vincent.chen@intel.com>
Whenever EV_EFI_VARIABLE_DRIVER_CONFIG is specified as TPM event type,
the data that accompanies it is expected to be an UEFI variable in the
appropriate format
This change fixes an erroneously typed TPM event so that the tpm2_eventlog
command works in Linux
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
The type for SBL config MrcSafeConfig is missing.
Missing type will cause this item is not shown
from ConfigEditor tool.
Signed-off-by: Guo Dong <guo.dong@intel.com>
Currently, FlashMap.txt is generated *after* the output files are copied.
This results in FlashMap.txt being missing from the output folder on a
clean build. On subsequent rebuilds, the FlashMap.txt is from the previous
build so any layout changes are not reflected.
Signed-off-by: Atharva Lele <atharva.lele@intel.com>
SBL config data PlatformMemorySize is used to set FSP UPD
PlatformMemorySize which is used by FSP to check available
memory range size for FSP reserved memory.
A too small size might cause FSP to use a small available
memory range used for other purpose. So change the default
value of PlatformMemorySize to 64MB.
Since default value change, remove unnecessary override.
Signed-off-by: Guo Dong <guo.dong@intel.com>
BIOS region has been protected at an earlier place in this file
based on the boot mode. Removing these hard-coded values
as these override the previous behavior. Tested with UEFI payload
and see no boot issues.
Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
* OsLoader: set default status to EFI_UNSUPPORTED when parsing a boot image
This was set to EFI_SUCCESS which resulted in ParseBootImages() returning
EFI_SUCCESS even if the boot image was not a container or a component.
Thus, the boot would continue and fail at a later stage due to the
LoadedImage structure not being populated correctly.
Setting it to EFI_UNSUPPORTED will result in ParseBootImages() returning
EFI_UNSUPPORTED if a non-supported boot image is provided and OsLoader
will attempt to boot the next entry in the boot options list.
Signed-off-by: Atharva Lele <atharva.lele@intel.com>
* Remove PcdContainerBootEnabled PCD
SBL requires boot images to be packaged as a container or a component
Signed-off-by: Atharva Lele <atharva.lele@intel.com>
---------
Signed-off-by: Atharva Lele <atharva.lele@intel.com>
On platforms where only serial console input is enabled, enabling
source debug will lead to an infinite loop in ConsoleRead(). Newer
compilers detect this and generate a build error.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
In BIOS, all stage measurements are of type
EV_EFI_PLATFORM_FIRMWARE_BLOB. This change aligns SBL
with BIOS.
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>