Checked content

Raspberry Pi

Did you know...

SOS Children has tried to make Wikipedia content more accessible by this schools selection. SOS Children works in 45 African countries; can you help a child in Africa?

Raspberry Pi
Raspberry Pi Logo.svg
RaspberryPi.jpg
"Raspberry Pi" Computer Model-B Rev1
Developer Raspberry Pi Foundation
Type Single-board computer
Release date 29 February 2012
Introductory price US$ 25 (model A) and US$ 35 (model B)
Operating system Linux ( Raspbian, Debian GNU/Linux, Fedora, and Arch Linux ARM) RISC OS, FreeBSD, NetBSD, Plan 9
Power 2.5 W (model A), 3.5 W (model B)
CPU ARM1176JZF-S (armv6k) 700  MHz, Raspberry Pis can dynamically increase clockspeeds, and some can temporarily reach speeds up to 1 GHz.
Storage capacity SD card slot
(SD or SDHC card)
Memory 256 MByte (Model A)
512 MByte (Model B rev 2)
256 MByte (Model B rev 1)
Graphics Broadcom VideoCore IV
Website www.raspberrypi.org

The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.

The Raspberry Pi is manufactured through licensed manufacturing deals with Element 14/ Premier Farnell and RS Components. Both of these companies sell the Raspberry Pi online.

The Raspberry Pi has a Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor (The firmware includes a number of "Turbo" modes so that the user can attempt overclocking, up to 1 GHz, without affecting the warranty), VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded to 512MB. It does not include a built-in hard disk or solid-state drive, but uses an SD card for booting and long-term storage. The Foundation's goal is to offer two versions, priced at US$25 and US$35. The Foundation started accepting orders for the higher priced model B on 29 February 2012, and the lower cost model A on 4 February 2013.

The Foundation provides Debian and Arch Linux ARM distributions for download. Also planned are tools for supporting Python as the main programming language, with support for BBC BASIC, (via the RISC OS image or the "Brandy Basic" clone for Linux), C, and Perl.

On 17 December 2012 the Raspberry Pi Foundation, in collaboration with IndieCity and Velocix, opened the "Pi Store", as a "one-stop shop for all your Raspberry Pi (software) needs". Using an application included in Raspbian, users can browse through several categories and download what they want. Software can also be uploaded for moderation and release.

History

An early alpha-test board in operation. Its layout is different from the beta and production boards.

In 2006, early concepts of the Raspberry Pi were based on the Atmel ATmega644 microcontroller. Its schematics and PCB layout are available for public download. Foundation trustee Eben Upton assembled a group of teachers, academics and computer enthusiasts to devise a computer to inspire children. The computer is inspired by Acorn's BBC Micro of 1981. The first ARM prototype version of the computer was mounted in a package the same size as a USB memory stick. It had a USB port on one end and a HDMI port on the other.

Pre-launch

In August 2011, fifty Alpha boards were manufactured. These boards were functionally identical to the planned model B, but were physically larger to accommodate debug headers. Demonstrations of the board showed it running the LXDE desktop on Debian, Quake 3 at 1080p, and Full HD MPEG-4 video over HDMI.

In October 2011, a version of RISC OS 5 was demonstrated in public, and following a year of development the port was released for general consumption in November 2012.

Certificate of authenticity for an auctioned board

In December 2011, twenty-five model B Beta boards were assembled and tested from one hundred unpopulated PCBs. The component layout of the Beta boards was the same as on production boards. A single error was discovered in the board design where some pins on the CPU were not held high; it was fixed for the first production run. The Beta boards were demonstrated booting Linux, playing a 1080p movie trailer and the Rightware Samurai OpenGL ES benchmark.

During the first week of 2012, the first 10 boards were put up for auction on eBay. One was bought anonymously and donated to the museum at The Centre for Computing History in Suffolk, England. The ten boards (with a total retail price of £220) together raised over £16,000, with the last to be auctioned, serial number No. 01, raising £3,500. In advance of the anticipated launch at the end of February 2012, the Foundation's servers struggled to cope with the load placed by watchers repeatedly refreshing their browsers.

Launch

The first batch of 10,000 boards was manufactured in Taiwan and China, rather than in the UK. This is in part because import duty is payable on individual components but not on finished products. Chinese manufacturers also quoted a lead time of four weeks, compared to twelve weeks in the UK.

Shipping delays for the first batch were announced in March 2012, as the result of installation of an incorrect Ethernet port. But the Foundation expects that manufacturing quantities of future batches can be increased with little difficulty if required.

"We have ensured we can get them [the Ethernet connectors with magnetics] in large numbers and Premier Farnell and RS Components [the two distributors] have been fantastic at helping to source components," Upton said.

Initial sales commenced 29 February 2012 at 06:00 UTC;. At the same time, it was announced that the Model A, originally to have had 128 MB of RAM, was to be upgraded to 256 MB before release. The Foundation's website also announced "Six years after the project's inception, we're nearly at the end of our first run of development – although it's just the beginning of the Raspberry Pi story." The web-shops of the two licensed manufacturers selling Raspberry Pi's within the United Kingdom, Premier Farnell and RS Components, had their websites stalled by heavy web traffic immediately after the launch. At one point the webmaster pleaded, "Guys – can you please stop hitting F5 on our website quite so often? You're bringing the server to its knees." Although as yet unconfirmed, reports suggest that there are over two million expressions of interest or pre-orders. The official Raspberry Pi Twitter account reported that Premier Farnell sold out within a few minutes of the initial launch, while RS Components took over 100,000 pre orders on day one. As of September 2012, about 500,000 boards have been sold.

Manufacturers were reported in March 2012 to be taking a "healthy number" of pre-orders.

Post-launch

On 16 April 2012 reports started to appear from the first buyers who had received their Raspberry Pi. As of 22 May 2012 over 20,000 units have been shipped. On 16 July 2012 it was announced that 4000 units were being manufactured per day, allowing Raspberry Pis to be bought in bulk. On 5 September the Raspberry Pi Foundation announced a second revision of the Model B Raspberry Pi. On 6 September 2012 it was announced that in future the bulk of Raspberry Pi units would be manufactured in the UK, at Sony's manufacturing facility in Pencoed, Wales. The Foundation estimates the plant will produce 30,000 units per month, and will create about 30 new jobs. In October 2012 it was reported that some customers of one of the two main distributors had been waiting more than six months for their orders. This was reported to be due to difficulties in sourcing the CPU and conservative sales forecasting by this distributor.

Hardware

Location on the PCB of connectors and major ICs
Block diagram of the Model-B;
in a Model-A the lowest two blocks and the rightmost block are missing (note that these three blocks are in a chip that actually contains a three-port USB hub, with a USB Ethernet adapter connected to one of its ports).
In the Model-A the USB port is connected directly to the SoC.
A Raspberry Pi system running an X server.

Initial sales are of the Model B, with plans to release the Model A in early 2013. Model A has one USB port and no Ethernet controller, and will cost less than the Model B with two USB ports and a 10/100 Ethernet controller.

Though the Model A doesn't have an 8P8C (RJ45) Ethernet port, it can connect to a network by using a user-supplied USB Ethernet or Wi-Fi adapter. There is in reality no difference between a model A with an external Ethernet adapter and a model B with one built in, because the Ethernet port of the model B is actually a built-in USB Ethernet adapter. As is typical of modern computers, generic USB keyboards and mice are compatible with the Raspberry Pi.

The Raspberry Pi does not come with a real-time clock, so an OS must use a network time server, or ask the user for time information at boot time to get access to time and date for file time and date stamping. However, a real-time clock (such as the DS1307) with battery backup can be added via the I²C interface.

On 20 April 2012 the schematics for the Model-A and Model-B were released by the Raspberry Pi Foundation.

Hardware accelerated video ( H.264) encoding became available on 24 August 2012 when it became known that the existing license also covered encoding. Previously it was thought that encoding would be added with the release of the announced camera module. However, for the time being, there is no stable software support for hardware H.264 encoding.

At the same time the Raspberry Pi Foundation released two additional codecs that can be bought separately, MPEG-2 and Microsoft's VC-1. Also it was announced that the Pi will support CEC, enabling it to be controlled with the television's remote control.

On 5 September 2012, a revision 2.0 board was announced, with a number of minor corrections and improvements.

On 15 October 2012, the Raspberry Pi foundation announced that all new Raspberry Pi model B's would be fitted with 512MB RAM chips instead of 256MB chips

Specifications

Model A Model B
Target price: US$ 25 US$ 35
SoC: Broadcom BCM2835 (CPU, GPU, DSP, SDRAM, and single USB port)
CPU: 700 MHz ARM1176JZF-S core ( ARM11 family)
GPU: Broadcom VideoCore IV
OpenGL ES 2.0 (24 G FLOPS)
MPEG-2 and VC-1 (with license), 1080p30 h.264/MPEG-4 AVC high-profile decoder and encoder
Memory (SDRAM): 256 MB (shared with GPU) 512 MB (shared with GPU) as of 15 October 2012
USB 2.0 ports: 1 (direct from BCM2835 chip) 2 (via the built in integrated 3-port USB hub)
Video outputs: Composite RCA (PAL and NTSC), HDMI (rev 1.3 & 1.4), raw LCD Panels via DSI

14 HDMI resolutions from 640×350 to 1920×1200 plus various PAL and NTSC standards.

Audio outputs: 3.5 mm jack, HDMI, and, as of revision 2 boards, I²S audio (also potentially for audio input)
Onboard storage: SD / MMC / SDIO card slot (3,3V card power support only)
Onboard network: None 10/100 Ethernet ( 8P8C) USB adapter on the third port of the USB hub
Low-level peripherals: 8 × GPIO, UART, I²C bus, SPI bus with two chip selects, I²S audio +3.3 V, +5 V, ground
Power ratings: 300 mA (1.5 W) 700 mA (3.5 W)
Power source: volt via MicroUSB or GPIO header
Size: 85.60 mm × 53.98 mm (3.370 in × 2.125 in)
Weight: 45 g (1.6 oz)
Operating systems: Arch Linux ARM, Debian Linux, Fedora, FreeBSD, Plan 9, Raspbian OS, RISC OS, Slackware Linux
Notes
  1. Model A and Model B are cultural references to the original models of the British educational BBC Micro computer, developed by Acorn Computers, who originally developed the ARM processors (the architecture of the Raspberry Pi) and operating system RISC OS, which will also be able to be run on the Raspberry Pi (version 5.17).
  2. On the older beta model B boards, 128 MB was allocated by default to the GPU, leaving 128 MB for the CPU. On the first 256 MB release model B (and Model A), three different splits were possible. The default split was 192 MB (CPU RAM), which should be sufficient for standalone 1080p video decoding, or for simple 3D, but probably not for both together. 224 MB was for Linux only, with just a 1080p framebuffer, and was likely to fail for any video or 3D. 128 MB was for heavy 3D, possibly also with video decoding (e.g. XBMC). Comparatively the Nokia 701 uses 128 MB for the Broadcom VideoCore IV. For the new model B with 512MB RAM initially there were new standard memory split files released( arm256_start.elf, arm384_start.elf, arm496_start.elf) for 256MB, 384MB and 496MB CPU RAM (and 256MB, 128MB and 16MB video RAM). But a week or so later the RPF released a new version of start.elf that could read a new entry in config.txt (gpu_mem=xx) and could dynamically assign an amount of RAM (from 16 to 256MB in 8MB steps) to the GPU, so the older method of memory splits became obsolete, and a single start.elf worked the same for 256 and 512 MB Pis.
  3. Level 2 Cache is 128 kB, used primarily by the GPU, not the CPU.
  4. The ARM11 is based on version 6 of the ARM architecture (ARMv6), which due to its age is no longer supported by several popular versions of Linux, including Ubuntu which dropped support for processors below ARMv7 in 2009.
  5. The Raspberry Pi (model B) also contains a 15-pin MIPI camera interface (CSI) connector, which at the moment is unsupported, but the foundation is planning to release a camera module for it, sometime in the near future.
  6. Support for raw LCD panels is available in hardware through the available DSI connector from the Mobile Industry Processor Interface (MIPI) Alliance. Software support is being planned.
  7. Supported digital video resolutions are: 640 × 350 EGA; 640 × 480 VGA; 800 × 600 SVGA; 1024 × 768 XGA; 1280×720 720p HDTV; 1280 × 768 WXGA Variant; 1280 × 800 WXGA Variant; 1280 × 1024 SXGA; 1366 × 768 WXGA Variant; 1400 × 1050 SXGA+; 1600 × 1200 UXGA; 1680 × 1050 WXGA+; 1920 × 1080 1080p HDTV; 1920 × 1200 WUXGA. Also to be supported are the generation of 576i and 480i composite video signals for PAL-BGHID, PAL-M, PAL-N, NTSC and NTSC-J
  8. Originally the on-board USB ports were designed for USB devices using one "unit load" (100 mA) of current. Devices using more than 100 mA were incompatible with the Raspberry Pi, and for them a self-powered USB hub was required. However, due to user feedback, the RPF, at the end of August 2012, decided to remove the USB polyfuses which largely caused this behaviour. However, the maximum current that can be delivered to a USB port on these modified boards is still limited by the capabilities of the power supply used, and the 1.1 A main polyfuse. Also a disadvantage of the current way the modification is done is that its no longer possible to hot-plug USB devices directly into the PI, when hotplugging is necessary it can be done in a hub.
  9. Newer versions of the firmware contain the option to choose between five overclock ("turbo") presets that when turned on try to get the most performance out of the SoC without impairing the lifetime of the Pi. This is done by monitoring the core temperature of the chip, and the CPU load, and dynamically adjusting clock speeds and the core voltage. So when there is a low demand on the CPU, or it is getting too hot, the performance is throttled down, but if the CPU has much to do, and the chip's temperature allows it, performance is temporarily increased, with clock speeds up to 1 GHz, depending on the individual board, and on which of the "turbo" settings is used. The five settings are:
    1. "None"; 700 MHz ARM, 250 MHz core, 400 MHz SDRAM, 0 overvolt,
    2. "Modest"; 800 MHz ARM, 250 MHz core, 400 MHz SDRAM, 0 overvolt,
    3. "Medium" 900 MHz ARM, 250 MHz core, 450 MHz SDRAM, 2 overvolt,
    4. "High"; 950 MHz ARM, 250 MHz core, 450 MHz SDRAM, 6 overvolt,
    5. "Turbo"; 1000 MHz ARM, 500 MHz core, 600 MHz SDRAM, 6 overvolt

Software

Architecture

Visual diagram of API connections

The Raspberry Pi uses Linux kernel-based operating systems. Raspbian, a Debian-based free operating system optimized for the Raspberry Pi hardware, is the current recommended system, released in July 2012.

The GPU hardware is accessed via a firmware image which is loaded into the GPU at boot time from the SD-card. The firmware image is known as the binary blob, while the associated ARM coded Linux drivers were initially closed source. this part of the driver code was later released, , however much of the actual driver work is done using the closed source GPU code. Application software uses calls to closed source run-time libraries (Open Max, Open GL ES or open VG) which in turn calls an open source driver inside the Linux kernel, which then calls the closed source Videocore IV GPU driver code. The API of the kernel driver is specific for these closed libraries. Video applications use OpenMAX, 3D applications use OpenGL ES and 2D applications use OpenVG which both in turn use EGL. OpenMAX and EGL use the open source kernel driver in turn.

On 19 February 2012, the Raspberry Pi Foundation released its first proof of concept SD card image that could be loaded onto an SD card to produce a preliminary operating system. The image was based upon Debian 6.0 (Squeeze), with the LXDE desktop and the Midori browser, plus various programming tools. The image also runs on QEMU allowing the Raspberry Pi to be emulated on various other platforms.

System software

On 8 March 2012 The Raspberry Pi Foundation released Raspberry Pi Fedora Remix, at the time its recommended Linux distribution, which was developed at Seneca College in Canada. The Foundation intends to create an App Store website for people to exchange programs.

Slackware ARM (formally ARMedslack) version 13.37 and later runs on the Raspberry Pi without modification. The 128–496 MB of available memory on the Raspberry Pi is twice the minimum requirement of 64 MB needed to run Slackware Linux on an ARM or i386 system. (Whereas the majority of Linux systems boot into a graphical user interface, Slackware's default user environment is the textual shell / command line interface.) The Fluxbox window manager running under the X Window System requires an additional 48 MB of RAM.

In addition, work is being done on system-specific light Linux distributions such as IPFire, OpenELEC, Raspbmc and the XBMC open source digital media centre.

Trustee Eben Upton publicly approached the RISC OS Open community in July 2011 to enquire about assistance with a potential port. Adrian Lees at Broadcom has since worked on the port, with his work being cited in a discussion regarding the graphics drivers.

On 24 October 2012 the Raspberry Pi Foundation announced that "all of the VideoCore driver code which runs on the ARM" had been released as free software under a BSD-style license, making it "the first ARM-based multimedia SoC with fully-functional, vendor-provided (as opposed to partial, reverse engineered) fully open-source drivers", although this claim has not been universally accepted.

Operating systems

This is a list of operating systems running, ported or in the process of being ported to Raspberry Pi.

  • Full OS:
    • AROS
    • Haiku
    • Linux
      • Android
        • Android 2.3 (Gingerbread)
        • Android 4.0 (Ice Cream Sandwich)
      • Arch Linux ARM
      • R_Pi Bodhi Linux
      • Debian ARM architecture ports, but not the Debian ARMhf architecture ports (introduced with Debian 7 Wheezy), since these are compiled for ARMv7 and the Raspberry Pi CPU is ARMv6
        • Raspbian (Debian 7 Wheezy ARMhf backported for ARMv6)
      • Firefox OS
      • Gentoo Linux
      • Google Chromium OS
      • PiBang Linux
      • Raspberry Pi Fedora Remix
      • Slackware ARM (formerly ARMedslack)
      • QtonPi a cross-platform application framework based Linux distribution based on the Qt framework
      • WebOS
        • Open webOS
    • Plan 9 from Bell Labs
    • RISC OS
    • Unix
      • FreeBSD
      • NetBSD
  • Multi-purpose light distributions:
    • Moebius, a light ARM HF distribution based on Debian. It uses Raspbian repository, but it fits in a 1 GB SD card. It has just minimal services and its memory usage is optimized to keep a small footprint.
    • OpenWrt "Attitude Adjustment" 12.09
    • Squeezed Arm Puppy, a version of Puppy Linux (Puppi) for the ARMv6 (sap6) specifically for the Raspberry Pi.
  • Single-purpose light distributions:
    • IPFire
    • OpenELEC
    • Raspbmc
    • XBMC
    • XBian

User applications

The following applications can be easily installed on Raspbian via apt-get:

  • Asterisk (PBX), the Open source PBX can be used via IP phones or Wi-Fi softphones
  • BOINC client; however very few BOINC projects deliver ARM compatible client software packages...
  • minidlna, a DLNA compatible home LAN multimedia server
  • Firefly Media Server (new RPiForked-Daapd), an iTunes compatible Open source audio server

Build from sources:

  • Firefly Media Server (original mt-daapd), an iTunes compatible Open source audio server

Accessories

The Foundation reported on its blog in May 2012 about a prototype camera module they have tested. The prototype used a 14 megapixel module, while the released version will be 5 megapixels. The release is scheduled for April 2013.

A number of Raspberry Pi specific peripheral devices and cases are available from third-party suppliers. These include the Raspberry Pi Foundation sanctioned Gertboard, which is designed for educational purposes, and expands the Raspberry Pi's GPIO pins to allow interface with and control of LEDs, switches, analog signals, sensors and other devices. It also includes an optional Arduino compatible controller to interface with the Pi.

Community

The Raspberry Pi community was described by Jamie Ayre of FLOSS software company AdaCore as one of the most exciting parts of the project. Community blogger Russell Davis said that the community strength allows the Foundation to concentrate on documentation and teaching. The community is developing fanzines around the platform, such as The MagPi. A series of community Raspberry Jam events have been held across the UK and further afield, led by Alan O'Donohoe, principal teacher of ICT at Our Lady's High School, Preston, and a teacher-led community from RaspberryJam has started building an crowdsourced Scheme of Work.

Reception and influence

Technology writer Glyn Moody described the project in May 2011 as a "potential BBC Micro 2.0", not by replacing PC compatible machines but by supplementing them. In March 2012 Stephen Pritchard echoed the "BBC Micro successor" sentiment in ITPRO. Alex Hope, co-author of the Next Gen report, is hopeful that the computer will engage children with the excitement of programming. Co-author Ian Livingstone suggested that the BBC could be involved in building support for the device, possibly branding it as the "BBC Nano". Chris Williams, writing in The Register sees the inclusion of programming languages such as Kids Ruby, Scratch and BASIC as a "good start" to equip kids with the skills needed in the future – although it remains to be seen how effective their use will be. The Centre for Computing History strongly supports the Raspberry Pi project, feeling that it could "usher in a new era". Before release, the board was showcased by ARM's CEO Warren East at an event in Cambridge outlining Google's ideas to improve UK science and technology education.

Harry Fairhead, however, suggests that more emphasis should be put on improving the educational software available on existing hardware, using tools such as Google App Inventor to return programming to schools, rather than adding new hardware choices. Simon Rockman, writing in a ZDNet blog, was of the opinion that teens will have "better things to do", despite what happened in the 1980s.

Some open source projects criticized the lack of available hardware documentation (the FAQ on the Raspberry Pi website states that Broadcom does not release a full datasheet for the BCM2835), which would have made porting other operating systems to the Raspberry Pi easier.

In October 2012 the Raspberry Pi won T3's "Innovation of the Year" award, and futurist Mark Pesce cited a (borrowed) Raspberry Pi as the inspiration for his ambient device project MooresCloud. In October 2012 the BCS reacted to the announcement of enhanced specifications by stating, "it's definitely something we'll want to sink our teeth into."

Use

As of January 2012, enquiries about the board in the United Kingdom have been received from schools in both the state and independent sectors, with around five times as much interest from the latter. It is hoped that businesses will sponsor purchases for less advantaged schools. The CEO of Premier Farnell said that the government of a country in the Middle East has expressed interest in providing a board to every schoolgirl, in order to enhance her employment prospects.

Retrieved from " http://en.wikipedia.org/w/index.php?title=Raspberry_Pi&oldid=555394463"