The Minimum Platform is a software architecture that guides uniform delivery of Intel platforms enabling firmware solutions for basic boot functionality with extensibility built-in. Please see the EDK II Minimum Platform Draft Specification for more details.
Package maintainers for the Minimum Platform projects are listed in Maintainers.txt.
The key elements of the architecture are organized into a staged boot approach where each stage has requirements and
functionality for specific use cases. The generic control flow through the boot process is implemented in the
MinPlatformPkg
.
The generic nature of the tasks performed in MinPlatformPkg lends to reuse across all Intel platforms with no
source modification. Details for any particular board are made accessible to the MinPlatformPkg through a well-defined
statically linked board API. A complete platform solution then consists of the MinPlatformPkg and a compatible board
package.
The board packages supported by Intel follow the naming convention <xxx>OpenBoardPkg where xxx refers to the
encompassing platform name for a particular platform generation. For example, the KabylakeOpenBoardPkg
contains the
board code for Intel KabyLake reference systems. Intel uses the moniker "OpenBoardPkg" to indicate that this package
is the open source board code. A closed source counterpart may exist which simply uses "BoardPkg". Both directly use
the MinPlatformPkg from edk2-platforms.
Stage selection is controlled via the PCD gMinPlatformPkgTokenSpaceGuid.PcdBootStage
in MinPlatformPkg.dec
.
The stage should be configured in the board package DSC file to the appropriate value. For example, a board may disable
all advanced features by setting this value to 4 instead of 6. This may be used to improve boot time for a particular
use case. Decrementing the stage can also be used for debug since only the actions required for that stage objective
should be executed. As an example, ACPI initialization is not required for a Stage 3 boot.
The stages are defined as follows:
Stage | Functional Objective | Example Capabilities |
---|---|---|
I | Minimal Debug | Serial port output, source debug enabled, hardware debugger enabled |
II | Memory Functional | Basic hardware initialization necessary to reach memory initialization, permanent memory available |
III | Boot to UI | Simple console input and output to a UI, UEFI shell |
IV | Boot to OS | Boot an operating system with the minimally required features |
V | Security Enable | UEFI Secure Boot, TCG measured boot, DMA protections |
VI | Advanced Feature Enable | Firmware update, power management, non-essential I/O |
A UEFI firmware implementation using MinPlatformPkg is constructed using the following pieces.
EDK II |
Intel(r) FSP |
Minimum Platform (MinPlatformPkg ) |
Board Support (<xxx>OpenBoardPkg) |
- The
KabylakeOpenBoardPkg
contains board implementations for KabyLake systems. - The
SimicsOpenBoardPkg
contains board implementations for the Simics hardware simulator. - The
WhiskeylakeOpenBoardPkg
contains board implementations for WhiskeyLake systems. - The
CometlakeOpenBoardPkg
contains board implementations for CometLake systems.
Machine Name | Supported Chipsets | BoardPkg | Board Name |
---|---|---|---|
UP Xtreme | Whiskey Lake | WhiskeylakeOpenBoardPkg | UpXtreme |
Intel Reference and Validation Platform
Machine Name | Supported Chipsets | BoardPkg | Board Name |
---|---|---|---|
RVP 3 | SkyLake, KabyLake, KabyLake Refresh | KabylakeOpenBoardPkg | KabylakeRvp3 |
WHL-U DDR4 RVP | WhiskeyLake | WhiskeylakeOpenBoardPkg | WhiskeylakeURvp |
CML-U LPDDR3 RVP | CometLake V1 | CometlakeOpenBoardPkg | CometlakeURvp |
Note: RVP = Reference and Validation Platform
Machine Name | Supported Chipsets | BoardPkg | Board Name |
---|---|---|---|
Simics Quick Start Package | Nehalem | SimicsOpenBoardPkg | BoardX58Ich10 |
Galago Pro Laptop
Machine Name | Supported Chipsets | BoardPkg | Board Name |
---|---|---|---|
galp2 | KabyLake | KabylakeOpenBoardPkg | GalagoPro3 |
galp3 & galp3-b | KabyLake Refresh | KabylakeOpenBoardPkg | GalagoPro3 |
The board package follows the standard EDK II package structure with the following additional elements and guidelines:
- Only code usable across more than one board at the root level.
- Board-specific code in a directory. The directory name should match that of the board supported.
- Features not essential to achieve stage 5 or earlier boots are maintained in edk2-platforms/Features/Intel.
Shared resources in the package root directory can include interfaces described in header files, library instances, firmware modules, binaries, etc. The UEFI firmware implementation is built using the process described below from the board-specific directory.
A board package must implement the board APIs defined in the MinPlatformPkg even if a "NULL" implementation is used to return back to the minimum platform caller.
- GIT client: Available from https://git-scm.com/downloads
- Microsoft Visual Studio.
- Visual Studio 2015 recommended and is used in the examples below.
- ASL compiler: Available from http://www.acpica.org
- Install into
C:\ASL
to match default tools_def.txt configuration.
- Install into
- NASM assembler: Available from: http://www.nasm.us/
- Install into
C:\NASM
to match default tools_def.txt configuration.
- Install into
- Python 3.7.3: Available from: https://www.python.org/downloads/release/python-373/
- Other versions of Python 3.x should be compatible.
- It is recommended to use the Python launcher to ensure the Python build script is launched using Python 3.
- E.g. "py -3.7 build_bios.py -l"
- Set up a EDK II build environment for Linux following the instructions in Using EDK II with Native GCC.
- Proceed to the Common EDK II build instructions for Linux to verify your basic EDK II build environment is set up properly.
-
Create a new directory for the EDK II WORKSPACE.
-
Download below repository to this WORKSPACE:
-
edk2 repository
git clone https://github.com/tianocore/edk2.git
-
edk2-platforms repository
git clone https://github.com/tianocore/edk2-platforms.git
-
edk2-non-osi repository
git clone https://github.com/tianocore/edk2-non-osi.git
-
FSP repository
git clone https://github.com/IntelFsp/FSP.git
Building with the python script
- Open command window, go to the workspace directory, e.g. c:\Edk2Workspace or ~/Edk2Workspace in the case of a linux OS
- If using a linux OS
- Type "cd edk2"
- Type "source edksetup.sh"
- Type "cd ../" to go back to the workspace directory
- Type "cd edk2-platforms/Platform/Intel
- Type "python build_bios.py -p REPLACE_WITH_BOARD_NAME"
-
build_bios.py arguments:
Argument Function -h, --help show this help message and exit --platform, -p the platform to build --toolchain, -t tool Chain to use in build process --DEBUG, -d debug flag --RELEASE, -r release flag --TEST_RELEASE, -tr test Release flag --RELEASE_PDB, -rp release flag --list, -l lists available platforms --cleanall cleans all --clean cleans specified platform --capsule capsule build enabled --silent silent build enabled --performance performance build enabled --fsp fsp wrapper build enabled --fspapi API mode fsp wrapper build enabled --hash Enable hash-based caching --binary-destination create cache in specified directory --binary-source Consume cache from directory -
For more information on build options
- Type "python build_bios.py -h"
-
Note
-
The Python build scripts were compatible with Python 2.7.16. But Python 2.x support is no longer maintained or recommended.
-
This python build script has been tested on Windows 10 and Ubuntu 18.04.1 LTS.
-
Unless otherwise noted, all boards build with the following components and versions:
- Linux build: Ubuntu 18.04.1 LTS with GCC version 5.4.0
- Windows build: Windows 10 with the Microsoft Visual Studio 2015 compiler
- iASL version: 20190816
- NASM version: 2.12.02
-
Unless otherwise noted all boards have been tested for boot to Windows 10 x64 RS3.
-
-
Configuration Files
- The edk2-platforms\Platform\Intel\build.cfg file contains the default settings used by build_bios.py
- The default settings are under the DEFAULT_CONFIG section
- Each board can have a settings file that will override the edk2-platforms\Platform\Intel\build.cfg settings
- An example of a board specific settings:
- edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3\build_config.cfg
-
Workspace view of the build scripts
-
WORKSPACE |------edk2 |------edk2-non-osi |------edk2-platforms | |---Platform | | |--Intel | | |------build.cfg: Default build settings. These are overridden by | | | platform specific settings (build_config.cfg) and | | | then command-line settings. | | | | | |------build_bios.py: Main build script. Generic pre-build, build, | | | post-build, and clean functions. | | | | | |------KabylakeOpenBoardPkg | | | |------GalagoPro3 | | | | |---build_config.cfg: System 76 Galago Pro 3 specific build | | | | settings environment variables. | | | |------KabylakeRvp3 | | | |---build_config.cfg: KabylakeRvp3 specific | | | | build settings, environment variables. | | | |---build_board.py: Optional board-specific pre-build, build | | | and clean post-build functions. | | | | | |------SimicsOpenBoardPkg | | | |------BoardX58Ich10 | | | |---build_config.cfg: BoardX58Ich10 specific | | | build settings, environment variables. | | | | | |------WhiskeylakeOpenBoardPkg | | | |------UpXtreme | | | |---build_config.cfg: UpXtreme specific build | | | settings environment variables. | | | |------WhiskeylakeURvp | | | |---build_config.cfg: WhiskeylakeURvp specific build | | | settings environment variables. | | | | | |------CometlakeOpenBoardPkg | | | |------CometlakeURvp | | | |---build_config.cfg: CometlakeURvp specific build | | | settings environment variables. | | | |------FSP
-
KabylakeOpenBoardPkg GalagoPro3
- The firmware project has not been tested on the Galago Pro 3B.
KabylakeRvp3
- This firmware project has only been tested for Microsoft Windows 10 x64 boot with AHCI mode and Integrated Graphic Device.
SimicsOpenBoardPkg
- This firmware project has only been tested booting to Microsoft Windows 10 x64 and Ubuntu 17.10 with AHCI mode.
WhiskeylakeOpenBoardPkg
- This firmware project has mainly been tested booting to Microsoft Windows 10 x64 with AHCI mode and Integrated Graphic Device.
- UP Xtreme boards might hang during Windows 10 boot.
- The UP Xtreme boards below boot to x64 windows 10 home edition and Ubuntu 18.04
- UP Xtreme Intel(R) Core(TM) i3-8145UE CPU @ 2.20GHz with 8GB RAM
- UP Xtreme Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz with 16GB RAM
- UP Xtreme Intel(R) Core(TM) i7-8665UE CPU @ 1.70GHz with 16GB RAM
- UP Xtreme Intel(R) Celeron(R) CPU 4305UE @ 2.00GHz with 4GB RAM
CometlakeOpenBoardPkg
- This firmware project has been tested booting to Microsoft Windows 10 x64 with AHCI mode and External Graphic Device.
- This firmware project has been also tested booting to Ubuntu 17.10 with AHCI mode and Integrated Graphic Device.
In some cases, such as BoardModulePkg, a package may provide a set of functionality that is included in other packages. To test the build of the whole package, the "build" command should be used following the instructions below.
- Execute edksetup.bat (Windows) or edksetup.sh (Linux).
- Verify the "WORKSPACE" environment variable is set to the edk2 directory in your workspace.
- Set the "PACKAGES_PATH" environment variable to include the edk2-platforms/Platform/Intel, edk2-platforms/Silicon/Intel,
and edk2-platforms/Features/Intel directories.
- Windows example: set PACKAGES_PATH=c:\Edk2Workspace\edk2-platforms\Platform\Intel; c:\Edk2Workspace\edk2-platforms\Silicon\Intel;c:\Edk2Workspace\edk2-platforms\Features\Intel
- Build the package by specifying the package DSC as the platform build target from the Platform/Intel or Silicon/Intel directory: "build -p BoardModulePkg/BoardModulePkg.dsc -a IA32 -a X64"
The full Intel firmware image on a flash device is called the Integrated Firmware Image (IFWI). Users with access to the Intel proprietary FITC tool and ME ingredients can build full IFWI images that may be flashed (Descriptor, UEFI FW, ME FW, etc.).
Users without such access can directly flash a custom built UEFI FW image over the highest area of the flash region directly. It is always recommended to have a hardware flash programmer accessible to recover the firmware image. The original full flash image should always be backed up so it may be flashed again for recovery. Please be aware that if a system supports a technology that authenticates the initial firmware boot image such as Boot Guard, it will fail to boot with a custom firmware image that is not signed properly.
- Expand Intel's open source platform code presence through new platform and board support.
- Expand advanced feature code and quality.
- Support open source community continuous integration for Minimum Platform compliant boards.
If you would like to help but are not sure where to start some areas currently identified for improvement include:
- Adding board ports for more motherboards and systems
- Adding Clang support
Please feel free to contact Isaac Oram (isaac.w.oram at intel.com) if you would like to discuss contribution ideas.