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)
Fri, Sep 26, 10:37 AM
Unknown Object (File)
Thu, Sep 25, 6:19 PM
Unknown Object (File)
Thu, Sep 25, 7:14 AM
Unknown Object (File)
Sat, Sep 20, 9:00 PM
Unknown Object (File)
Wed, Sep 17, 1:03 AM
Unknown Object (File)
Sun, Sep 14, 9:32 AM
Unknown Object (File)
Sun, Sep 14, 9:32 AM
Unknown Object (File)
Sun, Sep 14, 9:25 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