Do you want to safely overclock your Raspberry Pi? This article will teach you how to achieve high frequency. There are also some other articles about how to overclock, but I have never tried it. So after doing some experiments, I found the correct method, which can save your time.
Determine the current CPU frequency
There are many ways to determine the CPU frequency that Raspberry Pi is currently running, most of which are running at 700 Mhz. You can verify it using the following command:
Cat/proc/cpuinfo
After running, you will see the following output information:
Processor: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS: 697.95
Features: swp half thumb fastmult vfp edsp java tls
CPU implementer: 0x41
CPU architecture: 7
CPU variant: 0x0
CPU part: 0xb76
CPU revision: 7
Hardware: BCM2708
Revision: 000f
Serial: commandid 35dfc68c
Note that the value displayed for "BogoMIPS" is 697.95. You can also run the following command:
Cat/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
The frequency can be displayed in Hz. The value is 700000.
The best method is:
Vcgencmd get_config arm_freq
The running result is as follows:
Arm_freq= 700
* Note: It may also display arm_freq = 0. I have seen such an output, but ignore it.
The benchmark frequency shown here is 700 Mhz, which is also the Default Frequency of Raspberry Pi, but can it be faster?
How to overclock Raspberry Pi
You can use software to overclock Raspberry Pi, but some warning information must be provided to you. Below are some inaccurate information that you must read before the overclock:
Please note that if you set force_turbo = 1, your device's warranty terms will be invalid
-Eben Upton
The first thing to do is to modify the configuration file config.txt.
Sudo nano/boot/config.txt
The GPU reads the config.txt file before ARM core initialization and can be used to set different system configuration parameters, such as overclocking information.
In this file, you need to add the following two lines of Configuration:
Arm_freq= 800
Sdram_freq = 500.
Note: I have found that many settings can be used to obtain the maximum speed and stability. Your situation may be different and can be combined at will. Someone is also running at 1 Ghz and stable, but I am trying not to work here.
Now, you can modify your configuration and restart the device, but the modified configuration does not always work. For example, I cannot do it here. Then I find some suggestions in Stack Overflow and need to execute the following command:
Sudo sync
Sudo sh-c "echo 3>/proc/sys/vm/drop_caches"
Sudo cp config.txt. save
Sudo cp config.txt. save.1
Sudo sync; exit
This will cause you to exit the terminal window, re-open the terminal window, and then execute:
Sudo sync;
Sudo shutdown-h now
Now your Raspberry Pi can be shut down, unplug the power, and re-insert it.