Since its introduction in 2005, the Unified Extensible Firmware Interface (UEFI) has become the primary standard for firmware development. As the industry continues to develop Embedded Development Kit II (EDK II) as a core UEFI component, we are also supporting test frameworks to accelerate firmware validation.
My colleagues will present an overview of a MicroPython-based UEFI test framework at the Spring 2018 UEFI Plugfest (March 26-30 in Bellevue, WA). This framework provides scripts with access to UEFI and EDK II interfaces, along with access to hardware resources. We also see this as an ideal environment for rapid prototyping of UEFI applications, and replacing legacy applications still used in manufacturing environments. MicroPython also extends support for existing UEFI CPython scripts, since the Python 2.7 tree is scheduled for end-of-life in 2020.
Using MicroPython for a firmware test framework leverages Python experience from validation engineers and a Python interpreted optimized for execution in constrained environments. There aren’t many unified EDK II testing frameworks optimized for both development and validation engineers. Extending the Python model adopted by CHIPSEC to a common framework expands validation capabilities for open source UEFI firmware.