HomeFreeBSD

stand: Parse BIOS revision from SMBIOS

Description

stand: Parse BIOS revision from SMBIOS

Add a smbios.bios.revision kenv, which contains the system BIOS revision
as defined in SMBIOS specification, section 3.3.1.
Since the revision is stored in two separate byte fields,
the smbios_setenv helper can't be used.
Read and construct the kenv manually instead.

Approved by: mw(mentor)
Sponsored by: Stormshield
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D36413

(cherry picked from commit 66c73af7ea59382ce5ca7cfb2eedb0491790276c)

Details

Provenance
kdAuthored on Sep 2 2022, 11:08 AM
impCommitted on Jan 24 2023, 9:49 PM
Differential Revision
D36413: stand: Parse BIOS revision from SMBIOS
Parents
rG63284e7d6ac7: kboot: List sources one per line to make merges easier
Branches
Unknown
Tags
Unknown