Raspberry Pi 2 in depth with biicode

The new Raspberry Pi 2

  • 900MHz quad-core ARM Cortex-A7 CPU (~6x performance)
  • 1GB LPDDR2 SDRAM (2x memory)
  • Complete compatibility with Raspberry Pi 1

Jake from Adventure Time really like's biicode's analysis of the new Raspberry Pi 2

Last Monday, the new Raspberry Pi 2 arrived. It can run the full range of ARM GNU/Linux distributions, including Snappy Ubuntu Core, as well as Microsoft Windows 10. In this case, we have installed Raspbian.

When you turn on the Raspberry Pi 2, one can see it works better than the Raspberry Pi 1, we never thought we could surf the web, talk through Hangouts and code at the same time without needing more power. The improvements in speed and fluency of the new Raspberry Pi are just amazing. Follow us in this mini-tutorial on how to configure the flashy new Raspberry Pi 2 with biicode.

Step 1: Install native or cross compilation biicode.

Native biicode

Of course, the latest version of biicode works perfectly with the Raspberry Pi 2. In fact we updated the setup:cpp in order to install properly all the tools and provide all the power of biicode to program it.

Download the Raspbian version

Just download biicode’s Raspbian versión from the downloads page.

biicode's download's section where to download raspbian version of biicode

Install biicode and the developer tools

Cross compilation with biicode.

Download the Linux version

If you want to use the default crossbuild tools, you need to use a Debian distribution. Download biicode’s Ubuntu versión from the downloads page.

If you want to use Windows,  you have an example about how to make a cross compilation with biicode from Windows too.

Another section of biicode downloads featuring this time Ubuntu 32 and 64

Install biicode and the development tools.

If you have never used biicode to make a cross compilation or you don’t know what is it,  you can read the biicode support for Raspberry Pi cross compilation section of our documentation.

Raspberry Pi 2 vs Raspberry Pi 1
(Native Compilation)

Both Raspberry Pi 1 and Raspberry Pi 2 are supported by biicode

First test: OpenCV

The first test compared how much time was spent compiling a big library in a Raspberry Pi 1 and a Raspberry Pi 2. The Raspberry Pi 2 spent more than 30 minutes however, the Raspberry Pi 1 spent more than 1 hour and it had only compiled 39% of the library, so we decided to stop the process in order to continue with more productive things.

Raspberry Pi 2

Raspberry Pi 1

Second test: libfreenect

In this test, we compiled the library to use the kinect, libfreenect, and executed the example to see the difference between the two Raspberries Pi.

In the compilation test, the Raspberry Pi 2 spent 42 seconds and the Raspberry Pi 1 spent 2 min (120 seconds), so the  Raspberry Pi 2 was 2.85 times faster than the Raspberry Pi 1.

Raspberry Pi 2

Raspberry Pi 1

Last test: WiringPi

The last test tried to compile WiringPi in the Raspberry Pi 2. The previous version of the WiringPi was obsolete and we needed to update it with the last commits of the official Git repository, git://git.drogon.net/wiringPiIt was easy and painless.

If you want to use the last version, it’s under my namespace david/WiringPi and it’s in GitHub too.


Diagram of a raspberry pi 2

So the conclusion is that the new Raspberry Pi 2 is a brilliant piece of hardware that has considerably improved its main benchmarks. Now that we know what we have between our hands we will start thinking what use should we give it at biicode. If you want to propose any kind of project or experiment please drop the idea in the comments section.
We hope you enjoy this post and don’t forget to check our complete C++ documentation! If you’ve any doubt, contact us through our forum or ask directly in Stackoverflow

Related Posts