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)
Sun, Apr 12, 6:57 AM
Unknown Object (File)
Sun, Apr 12, 2:23 AM
Unknown Object (File)
Sat, Apr 11, 7:27 PM
Unknown Object (File)
Sat, Apr 11, 8:19 AM
Unknown Object (File)
Tue, Apr 7, 11:20 AM
Unknown Object (File)
Tue, Apr 7, 12:13 AM
Unknown Object (File)
Mon, Apr 6, 12:08 PM
Unknown Object (File)
Mon, Apr 6, 10:03 AM

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