Menu

c7rpiMyth_Pi2_overclock

TESTING UPDATED METHOD(s):
Only tested on a Pi2

config.txt
and the kernel governer(s) must be applied
we are working with this :
(bcm2835-cpufreq: min=600000 max=1000000)

TESTING, Unconfirmed.
It appears you can apply just the cpu "performance" governor without config.txt, but to get the 1GHz min freq, you may need
the config.txt. It appears to me that without the config.txt the min gov will be read only, /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq

The previous config.txt method by itself was not changing my cpuinfo as intended, I found the kernel govnr was enabled, though on arm we dont have the actual "cpupower" binary yet.
So we can just set our values manually as needed till we get the utility and use /etc/default, etc. If we ever get that. It appears to be part of the kernel-tools package on x86_64 but not here so far in the rpi.

*You need a config.txt in place with the overclock settings applied as well. One of these methods may not work alone, you may need use both. If you uncomment the "double commented" stanza's in the config.txt, then this will work with the settings below.

*TEMP, rc.local starts unreliably timed after everything else. THis needs a bettter option.

If it wont start/restart properly, Just exec it manually with , sh /etc/rc.local

cat >> /etc/rc.local << EOF
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo 1000000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq

EOF

systemctl daemon-reload *maybe not needed
systemctl enable rc-local
systemctl start rc-local

*Now if you check cat /proc/cpuinfo on a rpi2, it should read about "64" under BogoMIPS

This may work on other pi's but I wouldnt recommend settting the minimum freq to high, else it might get hot.

watch cat /sys/devices/virtual/thermal/thermal_zone0/temp

  • a better long term method will be to adapt for use cpupower or just create a dedicated unit file with scripts

References:

https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md

https://github.com/raspberrypi/linux/blob/rpi-4.1.y/Documentation/cpu-freq/governors.txt