HomeFreeBSD

Add serial-number to hw.fdt sysctl area if found in fdt.

Description

Add serial-number to hw.fdt sysctl area if found in fdt.

Add serial-number sysctl if that fdt property exists and is a printable
string. While here, ensure that the hw.fdt sysctl values fit in the
buffers provided so that they will be NUL-terminated. Tested on
Raspberry Pi 3B+ and 4.

Reviewed by: manu imp
Differential Revision: https://reviews.freebsd.org/D34356

(cherry picked from commit b8b0c65e8a43cab95b97e28d3e3d73fc7d9c0a5e)

Details

Provenance
karelsAuthored on Feb 23 2022, 8:42 PM
Reviewer
manu
Differential Revision
D34356: Add serial-number to hw.fdt sysctl area if found in fdt.
Parents
rGcaa14c7b600d: fdt: Expose the model, compatible and freebsd dts brandind as sysctl
Branches
Unknown
Tags
Unknown