OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Other
  • Assigned To No-one
  • Operating System All
  • Severity Critical
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by dunkeng - 09.05.2019

FS#2276 - The path to read temperature in needs to be updated.

[openwrt/openwrt.git] / target / linux / mvebu / base-files / sbin /

CPU_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input`
DDR_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input`
WIFI_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input`

These three paths are wrong, I found these three:
CPU_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input`
DDR_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input`
WIFI_TEMP=`cut -c1-2 /sys/class/hwmon/hwmon0/temp2_input`

anomeome commented on 11.05.2019 18:33

I'm not seeing this path change in an install of a master image on a mamba.

Project Manager
Matthias Schiffer commented on 13.05.2019 21:06

hwmon device numbers may depend on the loaded drivers, or their load order.

I would recommend accessing them through a stable path under /sys/devices with a wildcard for the hwmon number. I don't have an mvebu device at hand to recommend concrete paths - on my x86 system I would use something like "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input".


Available keyboard shortcuts


Task Details

Task Editing