Introducing The Raspberry Pi 2 Model B
Introducing The Raspberry Pi 2 Model B
https://learn.adafruit.com/introducing-the-raspberry-pi-2-model-b
Overview 3
Didn't think the Raspberry Pi could get any better? You're in for a big surprise! The
Raspberry Pi 2 Model B is out and it's amazing! With an upgraded ARMv7 multicore
processor, and a full Gigabyte of RAM, this pocket computer has moved from being a
'toy computer' to a real desktop PC
The big upgrade is a move from the BCM2835 (single core ARMv6) to BCM2836
(quad core ARMv7). The upgrade in processor types means you will see ~2x
performance increase just on processor-upgrade only. For software that can take
advantage of multiple-core processors, you can expect 4x performance on average
and for really multi-thread-friendly code, up to 7.5x increase in speed!
That's not even taking into account the 1 Gig of RAM, which will greatly improve
games and web-browser performance!
Please note: The new processor on the Pi 2 means that you will need to update your
existing SD card or create a new SD card with your operating system (Raspbian, Arch,
XBMC, NooBs, etc) because you cannot plug in olderscards from a Pi 1 into a Pi 2
without upgrading with sudo apt-get upgrade on the Pi 1 first.
The Raspberry Pi 2 Model B looks *a lot* like a Raspberry Pi Model B+! Look for
the chip on the bottom to identify the Pi 2
• The 4 mounting holes are in the same location and are the same size
• The USB, Ethernet, A/V, HDMI, micro SD and microUSB connectors are int the
same exact locations and are the same size
• The Camera, Display and 40-pin GPIO connectors are in the same exact
locations and are the same size
One exception is some Pibow cases which have a layer that has cutouts for the
specific location of the processor. ()Pimoroni has informed us that they will have a
new case design that is compatible with both. Check the description of any case to
make sure it is compatible with both Raspberry Pi Model B+ and Raspberry Pi 2 Model
B
However, your existing Raspberry Pi SD card images may not work because the
firmware and kernel must be recompiled/adapted for the new processor.
If you have a Raspberry Pi 2, and you are trying to upgrade your existing SD card, you
will need to upgrade your installation. To do that, log into your Pi 1 and at a console or
terminal type in sudo apt-get upgrade to perform the upgrade procedure. You'll need
your Pi to be on the Internet to do this. Once upgraded, the card will work on both Pi 1
and Pi 2 computers
Power Draw
Quad-core ARMv7 processor means higher current draw.
Just having the Pi 2 Model B running idle (no HDMI, graphics, ethernet or wifi just
console cable) the Pi 2 draws 200mA
When doing the heaviest computational tasks, we added about 200-250mA more
current. So if you're really using your Pi 2 and you have a WiFi dongle, expect to need
650mA @ 5V, at least. More if you have stuff connected to the GPIO connector, other
USB devices, Ethernet as well, etc!
If you're still running with a cheap 5V 700mA power supply, we really recommend
upgrading to a 5V @ 2000mA!
The Pi 2 has 4 processors in one chip (the B+ has only one), an ARMv7 core vs an
ARMv6, and 1 Gig of RAM vs 512 MB for the model B and B+
OK but how much faster is the Pi 2 vs the Model B+? While it strongly depends on
what you're doing, you should see at least 85% improvement (single-core processes
that just depend on the ARMv7 vs ARMv6 upgrade. For anything that can take
advantage of multi-core processors, you can see up to 7x increase in speed!
Using the Pi as a computer feels fast and 'desktop like' - not sluggish! Particularly for
developers, compiling code on the Pi 2 is 4x faster and the extra RAM helps a lot too,
so most programs can now be compiled directly on the Pi. We still recommend our Pi
Kernel-O-Matic for cross-compiling kernels since you need a lot of space & RAM ()
We provide nbench numbers below that you can compare to the other computers
until we update that tutorial...
nbench on Pi 2 @ 900MHz
TEST : Iterations/sec. : Old Index : New Index
: : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 444.24 : 11.39 : 3.74
STRING SORT : 36.251 : 16.20 : 2.51
BITFIELD : 1.2604e+08 : 21.62 : 4.52
FP EMULATION : 69.824 : 33.50 : 7.73
FOURIER : 4728.6 : 5.38 : 3.02
ASSIGNMENT : 6.7648 : 25.74 : 6.68
IDEA : 1297.9 : 19.85 : 5.89
HUFFMAN : 654.5 : 18.15 : 5.80
NEURAL NET : 6.2233 : 10.00 : 4.21
nbench @ 950MHz
TEST : Iterations/sec. : Old Index : New Index
: : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 481.57 : 12.35 : 4.06
STRING SORT : 37.6 : 16.80 : 2.60
BITFIELD : 1.1826e+08 : 20.29 : 4.24
FP EMULATION : 87.4 : 41.94 : 9.68
FOURIER : 5126 : 5.83 : 3.27
ASSIGNMENT : 7.6138 : 28.97 : 7.51
IDEA : 1450.7 : 22.19 : 6.59
HUFFMAN : 705.88 : 19.57 : 6.25
NEURAL NET : 6.3669 : 10.23 : 4.30
LU DECOMPOSITION : 242.49 : 12.56 : 9.07
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX : 21.639
FLOATING-POINT INDEX: 9.082
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU : 4 CPU ARMv7 Processor rev 5 (v7l)
L2 Cache :
OS : Linux 3.18.1-v7+
C compiler : gcc-4.7
libc : libc-2.13.so
MEMORY INDEX : 4.359
INTEGER INDEX : 6.341
FLOATING-POINT INDEX: 5.037
Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38
* Trademarks are property of their respective holder.
For comparison-geeks, note that if you overclock the Pi 2 to 900-1000 MHz it's
essentially the same processing speed as a BeagleBone Black (also an ARMv7), but
with the improved Floating Point capabilities. There's a lot of reasons to go with a
BBB vs Pi2 so please note it's not that the Pi 2 is a 'replacement' for the BBB!
Threads started!
Done.
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 523.7231/0.00
Threads started!
Done.
Threads fairness:
events (avg/stddev): 2500.0000/1.22
execution time (avg/stddev): 522.9960/0.04
Note that both tests take 523 seconds, because the B+ is a single-core processor,
there is no improvement for having 4 threads vs 1 (all 4 threads are one one
processor)
Threads started!
Done.
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 298.6632/0.00
298 seconds vs 523 for a single thread, so even without taking advantage of
multicore, there's a 523/298 = 75% increase. That's nearly double just by having a
ARMv7 doing the computation
If running with 4 threads, one on each processor, we see another big improvement
Number of threads: 4
Threads started!
Done.
Threads fairness:
events (avg/stddev): 2500.0000/7.38
execution time (avg/stddev): 76.1039/0.01
The first test we did is called Octane, you can run it by visiting here () - it runs in your
webbrowser and does a series of tests.
On a B+, we actually couldn't get the test to finish without crashing, but before it
crashed we got the following:
Compare to the Pi 2 which did at least finish and gave us these numbers:
You can tell that depending on the tests, the Pi 2 is at least 2x as fast, and in most
cases is 4x as fast.
============================================
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total: 9477.4ms +/- 0.4%
--------------------------------------------
============================================
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total: 2476.9ms +/- 0.7%
--------------------------------------------
In this case, lower numbers are better. Again, you can see that all tests are at least 2x
faster on a Pi 2 vs a B+ and most are about 4x faster!
Other tests!
OK we'll be doing more tests, but one thing we did get going was playing around with
emulators. Of course the Pi 2 is much speedier than the B+ and by overclocking to