Thanks Stuart, that works for me!

# sysctl hw
hw.machine=amd64
hw.model=AMD GX-412TC SOC
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:47e18331a1a8156e
hw.diskcount=1
hw.sensors.km0.temp0=59.38 degC
hw.cpuspeed=998
hw.setperf=100
hw.vendor=PC Engines
hw.product=apu2
hw.version=1.0
hw.serialno=123456789
hw.physmem=4261081088
hw.usermem=4261056512
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=manual

On 04/11/15 18:47, Stuart Henderson wrote:
this will probably get you a cpu temperature sensor.

Index: km.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/km.c,v
retrieving revision 1.10
diff -u -p -r1.10 km.c
--- km.c        14 Mar 2015 03:38:48 -0000      1.10
+++ km.c        4 Nov 2015 17:44:25 -0000
@@ -72,7 +72,8 @@ static const struct pci_matchid km_devic
        { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_14_MISC },
        { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_15_0x_MISC },
        { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_15_1x_MISC },
-       { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_16_MISC }
+       { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_16_MISC },
+       { PCI_VENDOR_AMD, PCI_PRODUCT_AMD_AMD64_16_3X_MISC }
  };

Reply via email to