Page MenuHomeFreeBSD

fdt: Expose the model, compatible and freebsd dts brandind as sysctl
ClosedPublic

Authored by manu on Jul 17 2021, 3:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 1, 3:01 PM
Unknown Object (File)
Sat, Sep 26, 1:14 AM
Unknown Object (File)
Fri, Sep 11, 4:49 PM
Unknown Object (File)
Fri, Sep 11, 4:48 PM
Unknown Object (File)
Sep 6 2026, 6:58 PM
Unknown Object (File)
Sep 5 2026, 5:11 PM
Unknown Object (File)
Sep 5 2026, 2:19 PM
Unknown Object (File)
Sep 5 2026, 1:29 PM

Details

Summary

This make it easier for script to get the hardware on which they are running.

MFC after: 1 month
Sponsored by: Diablotin Systems

Test Plan

root@nanopi-m1-plus:~ # sysctl hw.fdt
hw.fdt.freebsd-version: 5.13
hw.fdt.compatible: friendlyarm,nanopi-m1-plus allwinner,sun8i-h3
hw.fdt.model: FriendlyArm NanoPi M1 Plus

root@:/ # sysctl hw.fdt
hw.fdt.freebsd-version: 5.13
hw.fdt.compatible: pine64,sopine-baseboard pine64,sopine allwinner,sun50i-a64
hw.fdt.model: SoPine with baseboard

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable