Raspberry Pi 2 Overclock – config.txt example

Updated: 09/22/15 – After 6 months of testing the Raspberry Pi 2 Overclock with OpenElec, ArchWipi and Arch LEMP I’ve made some optimizations to the recommended configuration changes below. These have proven to be more stable. Also, you should no longer experience freezing or reset even when force_turbo is enabled. enjoy!

SEE ALSO: My Ultimate Raspberry Pi 2 Starter Kit! (Important if you’re overclocking!) and the Raspberry Pi 3 overclocks

Some of you might remember my old overclocking post for Raspberry Pi. I am still obsessed with performance. This Raspberry Pi 2 Overclock Post Wants to Overclock the Raspberry Pi 2 Model B, Squeezing out some extra performance without compromising on stability. It is highly recommended that you use a capable power supply with 2 amps or better. i recommend something like this Dual Port 2.1A Power Supply, (See also: What to Buy for Your Raspberry Pi) Now, Next /boot/config.txt edits.

Raspberry Pi 2 Overclock – config.txt

Increase performance by overclocking the RPi 2 board’s core frequency and RAM while leaving the voltage defaults for stability:

sdram_freq=450
core_freq=450

Now, if you’re running the Raspberry Pi 2 in a hot environment, here are some settings to help lower temperatures (your Raspberry Pi 2 will only clock 900 MHz if needed). Make sure the force_turbo line is off (set to 0) or just remove that line entirely as ‘off’ is the default:

arm_freq_min=400
sdram_freq_min=200
core_freq_min=200
initial_turbo = 30 #Does not affect warranty and speeds up boot.

Overvolting with Raspberry Pi 2 Overclock

The arm_freq setting adds a lot of heat to the board while still pushing. You can improve performance without overclocking arm_freq by using the following:

sdram_freq=500
core_freq=500
over_voltage=2

Raspberry Pi 2 Overclock – CPU to 1.0GHz

arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
temp_limit=80 #Will throttle to default clock speed if hit.

…or use force_turbo at your own risk for even more noticeable performance gains!…

force_turbo=1 #Voids Warranty!
boot_delay=1 #helps to avoid sdcard corruption when force_turbo is enabled.
arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
temp_limit=80 #Will throttle to default clock speed if hit.

Now even at 1000 MHz overclock there is an additional 100 MHz on the 4 CPU cores. As with the previous Model B adding 300MHz to a core would result in 1000MHz. On the Pi 2, with 1000MHz x4 overclock that is much better than the first gen RPi B+ @ 1000MHz. Ultimately, the developers opted to give us 4 CPU cores instead of say a single core with a much higher clock speed, as it is more suited for different tasks. The ‘force_turbo=1’ option helps to get rid of the performance lag.

Raspberry Pi 2 gpu_mem (1GB memory) allocation

gpu_mem (GPU memory) is measured in megabytes and sets the memory split between CPU and GPU; The CPU gets the remaining memory. The minimum value is 16. If you are using for example Raspberry Pi 2 as a gaming emulator, media player or desktop environment (LXDE, XFCE,). Maynard, etc) then you’ll want to increase the gpu_mem to at least 256. On the other hand, if you are using the Raspberry Pi as a web server, a drone or simply to build a console-based project then you should reduce the gpu_mem to 16. In other words, if your requirements are graphical then increase the memory of the GPU, if not, reduce it to a minimum.

For example web servers, wireless access points, firewalls, weather stations, etc.

gpu_mem=16

Or for GUI use, e.g. OpenELEC, Raspbmc, RetroPie, XFCE, etc.

gpu_mem=320

raspberry pi 2 overclock options

  • arm_freq– ARM’s frequency in MHz. (Raspberry Pi 2 overclocked)
  • core_freq – Frequency of GPU processor cores in MHz. This has an impact on the performance of ARM as it drives the frequency of SDRAM in L2 cache.sdram_freq – MHz.
  • over voltage – ARM/GPU core voltage adjusted. Values ​​above 6 are allowed only if force_turbo or current_limit_override are specified (which set the warranty bit).
  • force_turbo – Disables the dynamic cpufreq driver and the minimum settings below. void warranty.
  • initial_turbo – Enables turbo mode from boot to the given value in seconds (up to 60) or until cpufreq sets a frequency. default 0
  • arm_freq_min – Minimum value of arm_freq to be used for dynamic clock.
  • core_freq_min – The minimum value of core_freq to be used for dynamic clocking.
  • sdram_freq_min – The minimum value of sdram_freq to be used for dynamic clocking.
  • temp_limit – overheat protection. Sets the clocks and voltages to default when the SOC reaches this Celsius value. Setting it to exceed default voids warranty. default 85
  • disabled_splash – If set to 1, avoids rainbow splash screen on boot.
  • boot_delay – Wait for x number of seconds in start.elf before loading the kernel. default 1
  • gpu_mem – GPU memory in megabytes. Sets the memory split between the ARM and the GPU. ARM gets the rest of the memory.

Raspberry Pi 2 Model B Specifications

  • SoC – Broadcom BCM2836 900MHz Quad-core ARM Cortex-A7 CPU
  • 1GB RAM LPDDR2
  • 4 USB Ports
  • 40 GPIO pins
  • full hdmi port
  • Ethernet port
  • Combined 3.5mm audio jack and composite video
  • Camera Interface (CSI)
  • Display Interface (DSI)
  • micro sd card slot
  • Videocore IV 3D Graphics Core
  • Power – 5V via micro USB port.
  • Dimensions – 85 x 56 mm

I’d love to hear your Raspberry Pi 2 overclock configuration and the power supply amperage you’re running. I’m looking forward to trying more extreme clock settings, but I need at least two of these boards so that I can confirm some measure of stability.

Updated: 12 June 2019

Leave a Comment