OpenWRT build - modules needed for cpu_freq
Posted: Mon Jun 24, 2019 11:19 pm
Hello,
We have needed to build our own OpenWRT firmware for the Neo2 (working well). We are not sure what module(s) we need loaded to have /usr/bin/cpu_freq functional. We notice that in the FriendlyARM compiled firmware that cpu_freq is functional and we need it to measure cpu temperature in our code. We do not have luci or collectd loaded in our build. We have tried simply copying the binary across from a Neo2 running the FriendlyARM build but no luck (the measurement process is missing):
Current frequency(KHz):
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor': No such file or directory
cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq': No such file or directory
CPU0 online=1 temp=C governor= freq=sh: invalid number ''
0KHz
If anyone could help with this it would be very much appreciated.
Cheers
Rob
We have needed to build our own OpenWRT firmware for the Neo2 (working well). We are not sure what module(s) we need loaded to have /usr/bin/cpu_freq functional. We notice that in the FriendlyARM compiled firmware that cpu_freq is functional and we need it to measure cpu temperature in our code. We do not have luci or collectd loaded in our build. We have tried simply copying the binary across from a Neo2 running the FriendlyARM build but no luck (the measurement process is missing):
Current frequency(KHz):
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor': No such file or directory
cat: can't open '/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq': No such file or directory
CPU0 online=1 temp=C governor= freq=sh: invalid number ''
0KHz
If anyone could help with this it would be very much appreciated.
Cheers
Rob