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, Jul 11, 6:12 AM
Unknown Object (File)
Sat, Jul 4, 11:29 AM
Unknown Object (File)
Thu, Jul 2, 10:54 PM
Unknown Object (File)
Thu, Jul 2, 10:37 PM
Unknown Object (File)
Thu, Jul 2, 8:36 PM
Unknown Object (File)
Wed, Jul 1, 7:28 AM
Unknown Object (File)
Tue, Jun 30, 9:26 AM
Unknown Object (File)
Sun, Jun 28, 1:52 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