A Specification Is Being Discussed For Passing Firmware/Bootloader Logs To The OS

Written by Michael Larabel in Standards on 15 November 2020 at 03:32 AM EST. 12 Comments
STANDARDS
Stemming from a GRUB bootloader inquiry and discussion that started over one year ago, a new specification is being proposed for possible adoption by the Linux kernel in being able to pass bootloader or system firmware logs to the operating system kernel for in turn exposing them to user-space.

An Akamai engineer inquired over a year ago to the GRUB development community about being able to debug remote hardware without a KVM. The desire arose for being able to read GRUB bootloader messages from within the running Linux environment. After discussing among GRUB developers and an early specification they began debating earlier this year, Oracle's Daniel Kiper has taken to the Linux kernel mailing list to gauge upstream kernel interest in such a specification and ultimately supporting it.

The goal would be to allow the OS kernel to either process such firmware/boot logs and where relevant to expose them to user-space. The specification is designed to be platform agnostic and self-contained.

The "bf_log" would contain arbitrary messages to pass to the booted kernel. The specification is around defining that format and related details. But still to be settled upon is for how to present such logs to the operating system. The likely path for passing such information would be UEFI config tables and other similar avenues available on ACPI and DeviceTree platforms.

If the ability to access bootloader / early system firmware logs from a booted Linux kernel are of possible interest to you, the specification proposal is worth looking into. Right now the developers are working to settle the spec before going through and working out the actual patches for the likes of GRUB and the Linux kernel.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week