I noticed some changes at github regarding the bcm2835_thermal driver on the RaspberryPi 3. For some reason neither of the BCM2709 or BCM2710 targets seem to support the CPU's thermal sensor anymore.
I did install the following modules:
kmod-hwmon-core
kmod-hwmon-bcm2835
But this didn't help.
In LEDE 17.01.4 it worked fine (even without the modules), but in OpenWRT 18.06.0 there is no entry in /sys/class/thermal/
I also tested a RaspberryPi A+ which uses the BCM2708 target, and it did support the thermal sensor.
So my question is, Am I the only one experiencing this? Or did I miss something?
I can confirm that problem still exist in 18.06.1. Installing kmod-hwmon-bcm2835 not resolve the problem. Propably this is caused by kernel config (cpu thermal).
That's what I thought at first. But it is enabled for as far as I can see.
CONFIG_THERMAL is set to "y" in the kernel config. Maybe there is something wrong in the kernel but if so I would assume that more people would complain online.
There is however a "CONFIG_CPU_THERMAL" which is not set. This entry was not in LEDE 17.04 so maybe thats the cause. It is how ever in the bcm2708 config as well and since the raspberryA+ works fine I'm not sure if it actually matters.
On Stijns 4.14 branch I got:
cat /sys/class/thermal/thermal_zone0/temp cat: read error: Invalid argument
But when I set CONFIG_BCM2835_THERMAL=y, it works perfect.
Yes on Stijns kernel 4.14 CPU thermal works on the Raspberry Pi 3+ when is enabled , also CPU frequency works now on statistics, it was not working on 4.9