Well, my English is very bad, but I will try to explain how the scripts work.
First you need to know what is a shell file. is like a batch file or .bat on Windows, it's just a script. a group of commands we need to run.
Using a shell file you can create some "automatic" tasks.
On the first line -> "#! / bin / sh" is like you are saying to the operating system that you need to run the commands below. for exemple, if you do:
The output of this command is your current cpufreq, as you can see, the CPU frequency is determined by a text file, which means you can modify this file. as "eco 1000000" you're saying to replace your cpu freq real to 1Ghz (or 1000Mhz, or 1,000,000 Hz). Copy the Code
- cat / sys / devices / system / cpu / cpu0 / cpufreq / scaling_max_freq
So if you want to be overclocking your Bpi right at startup, you need to put your script (bash file) in /etc/rc.local
But I recommend that you run the script when you want.
I'm using this for overclock my BPi for 1.2Ghz
Its stable, and using a small heatsink, and small notebook cpu fan blower i cant get 34ºC on full load Copy the Code
- echo ondemand | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo 1200000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
- echo 1200000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo 25 | sudo tee /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- echo 10 | sudo tee /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
and again, sorry for the english.