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)
Sat, Dec 20, 12:42 AM
Unknown Object (File)
Fri, Dec 12, 10:18 AM
Unknown Object (File)
Fri, Dec 12, 2:50 AM
Unknown Object (File)
Mon, Dec 8, 7:37 PM
Unknown Object (File)
Sun, Dec 7, 3:01 PM
Unknown Object (File)
Thu, Dec 4, 4:02 PM
Unknown Object (File)
Thu, Nov 27, 4:52 PM
Unknown Object (File)
Nov 20 2025, 11:26 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