Author: Pieter-Jan Plaisier
It took a while for me to jump on board of the Raspberry Pi wagon. For one, I am not a software guy and have very little understanding of Linux. Two, the Raspberry Pi is so small that overclocking almost seems impossible. However, because Frederik – RichBa5tard, owner of HWBOT – is so enthusiastic about the Raspberry Pi and the overclocking fun it brings along, I decided to go ahead and try it out anyway. With the HWBOT Prime application ready for cross-platform performance comparison, I already had a tool to benchmark the Raspberry Pi and see the performance scaling when overclocking.
In the end, the Raspberry Pi went up from about 160PPS (“Primes per Second”) at stock frequency to the current high of 568PPS. Of course, the process of performance increase does not only involve hardware tweaking – “Overclocking” – but also software tweaking. In this editorial, I will describe my Raspberry Pi experience and provide a basic guide for those who want to get involved in Raspberry Pi and ARM overclocking!
Page1: Step1 – Gathering all components.
Page1: Step2 – Installing the software.
Page1: The Operating System: Raspbian “wheezy”
Page1: Setting up the operating system
Page1: HWBOT Prime and Java installation
Page1: How to save and submit with HWBOT Prime?
Page1: How to save and submit with HWBOT Prime?
Step1 – Gathering all components.
This step is not too difficult. The following components are necessary to get started with Raspberry Pi overclocking:
Raspberry Pi unit
SD-Card, preferably Class10 grade
Optional: LAN-connection and external PSU
You can buy the Raspberry Pi through a couple of resellers. I found one in the local Guang Hua computer department store. The official price is USD $25 for Model A and USD $35 for Model B, but this excludes shipping and reseller charges. Model A has 256MB RAM, one USB port and no Ethernet (network connection), whereas Model B has 512MB RAM, two USB ports and an Ethernet port. I would definitely recommend acquiring Model B as it makes the entire overclocking process a lot easier. I did not buy an external PSU because I am using a nearby PC system as power source via USB. This seems to work very well and since I am not planning to use the Raspberry Pi for anything else than overclocking, I figured I do not need a separate power source.
Once you found all the components, it is easy to assemble. Plug in all the connectors and you are done!
Step2 – Installing the software.
When I first assembled the Raspberry Pi, I figured this would be the most difficult part of getting started. It turns out it’s actually quite simple as long as you follow the instructions and are not scared of doing a little bit of debugging work. Even though Frederik argued otherwise, Linux is not as easy as Windows to get started with. There are many ways to get your RPi up and running, but I will just stick to what worked for me. You know, this is just a guide to get started.
The Operating System: Raspbian “wheezy”
Following the instructions at the official Raspberry Pi website (http://www.raspberrypi.org/downloads), I opted for the recommended Linux distribution Raspbian Wheezy. As the site states, “It is a reference root filesystem from Alex and Dom, based on the Raspbian optimised version of Debian, and containing LXDE, Midori, development tools and example source code for multimedia functions.” Honestly speaking, I have no idea what that all means. Here are the tools necessary to install the operating system:
Once you have everything downloaded, do the following.
1) Insert the SD-Card
2) Open Win32DiskImager
3) Load the .IMG from the downloaded .ZIP file into Win32DiskImager
4) Select the correct device (!)
5) Press Write
The image will now be written onto the SD Card. Depending on the speed of your system and the SD Card, this can take a couple of minutes. Note that you can also read an SD Card. This is a particularly handy feature to save your overclocking configuration and software installation when you found the magic settings. I have made an image file of the operating system I achieved my highest score with.
For more information on the SD Card preparation, refer to this page: http://elinux.org/RPi_Easy_SD_Card_Setup. Their guide helped me figure it out the first time.
Once the flash has finished, you are ready to boot up the Raspberry Pi!
Setting up the operating system
When booting up the Raspberry Pi for the first time, a very basic looking configuration setup awaits you. If you are not interested in configuring the Raspberry Pi at this moment, you can skip this by pressing Escape. I would recommend doing the following adjustments:
Expand Filesystem – this option will make the entire SD Card storage space available to Raspberry Pi. I forgot this once and ran out of storage when installing other software.
Enable Boot To Desktop – No. I find the command line to be much easier to use when overclocking the RPi. Not only is it easier to configure the overclock, it also seems more efficient and thus better for benchmark scores.
You will also find an overclocking section with pre-defined overclocking profiles. There is no need to choose any of those profiles, as we will be doing the overclocking manually later. Just select finish and reboot. After the reboot, enter the credentials to log into your Raspberry Pi. The default credentials are:
Once you logged in, you can start installing the software for benchmarking. Before we continue, I would like to give you a couple of commands that might be useful throughout the guide.
sudo su: enables superuser rights
shutdown -r now: command to reboot the Raspberry Pi if Super User mode enabled. You can also reboot with CTRL+ALT+DEL.
startx: starts the GUI operating system that comes with the Raspbian Wheezy
wget [x]: command to download the file from the URL [x]
As mentioned earlier, for overclocking and benchmarking we will be using the command line. For uploading the result later on, we can use the GUI mode. I will explain how to later on. First, let us install all the software we need for overclocking.
HWBOT Prime and Java installation
As you know from our regular overclocking, there are three things needed when benchmarking: a benchmark, drivers, and an overclocking tool. For our day-to-day overclocking endeavours, that can be: SuperPI, Intel chipset drivers and the BIOS. For this particular guide, we will need these tools:
HWBOT Prime V0.8.3
First things first, let us install the HWBOT Prime. It is very easy. Just type the following command:
$ wget http://downloads.hwbot.org/hwbotprime.jar
Once finished, you can type ‘dir’ and press enter to check if the file was actually downloaded in the folder. Next up is the Java JDK for Linux. To make it easy, let us start with installing the official version first. This is V1.7. To download and install this version, use the following command:
$ sudo apt-get install openjdk-7-jre
Do not forget to confirm the download by pressing ‘Y’. The total size is about 47MB, so it will take a bit longer to install than HWBOT Prime. Once downloaded, confirm that the Java JDK has been installed correctly with the following command:
If the command is not recognised, try the update command, followed by another install command.
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jre
Once again, try if Java has been installed correctly. Everything should be working now. For your convenience, I have uploaded a Raw image of the Raspbian Wheezy operating system with HWBOT Prime 0.8.3 and Java JDK7 pre-installed. You can download it here. I would recommend trying the manual way first, if not out of pride at least to familiarize yourself with the Linux environment and commands.
Since everything is working, it is time to start benchmarking. To get the first reference benchmark score at default frequencies, run the following command:
$ java -jar hwbotprime.jar
Once the benchmark is finished, you will see your score
How to save and submit with HWBOT Prime?
HWBOT Prime is an internal benchmark we prepared to demonstrate our new open API for benchmark applications. The central idea of the open API is to allow benchmark developers to submit benchmark data files securely to HWBOT. Not only do they have easy rankings for their benchmarks, the secured data file prevents easy tampering with screenshots. As data file submission is central in this approach, the only way to submit an HWBOT Prime benchmark result is via data file. We do this by either saving a file and uploading it manually later, or submitting directly from the application. Both can be done from the command line.
When submitting from the command line, you can obviously not open a browser. So HWBOT Prime will give you a link you can enter in your browser to retrieve your score. Honestly speaking, this is not too user-friendly and it is very likely that we will update this feature in the future. When overclocking via the command line mode, it is easier to submit via the GUI operating system. Just save your benchmark to a file, press ‘q’ and open the GUI with this command:
The operating system comes with a browser called ‘Midori’. This browser allows you to submit a result to HWBOT in the way you know all too well. When selecting the data file, make sure to browse to the right folder. If you followed the instructions of this guide, the file is saved under /home/pi. Select, upload, and enjoy your new benchmark score! We are now ready to start overclocking and really push this little thing.