You are on page 1of 23

Raspberry Pi

Raspberry Pi Linux .
, Raspberry Pi (RPi) ( ),
Linux
ARM . 1
RPi.

1: Raspberry Pi (512MB RAM)

Raspberry Pi

.
Raspberry Pi
, Arduino, . ,

. 1-1 ,
.

1-1. Raspberry Pi

A. . Raspberry Pi
iPhone 3G Kindle 2, Raspberry Pi
. 32 , 700 MHz
, ARM11 . ARM
, ,

. 512MB RAM,
A 256MB. ( RAM 256MB.)
. (Secure Digital (SD)
Card). Pi . SD .
SD
, , SD
.
. USB . USB 2.0 , A .
Raspberry Pi
. USB 500mA.
Pi 100mA ,
USB 2.0 .
(
1-2 ). ,
Raspberry Pi. ,
.
. . RJ45 .
, USB
( USB ).
WiFi USB .
. HDMI . HDMI
. 14 , HDMI
DVI ( ), (
RCA ), SCART (
- ) .

1-2. ()
USB . (),
().

. (LED). Pi
(LED) ( 1-1).
ACT

PWR

SD (
OK)
3.3V

FDX

LNK

100

100Mbps (

10M)

1-1. LED-.

. . 3,5
mm (
). ;
, HDMI
HDMI.
, .
. . RCA
NTSC PAL .
HDMI. HDMI ,
.
. . Pi
. USB
( USB ; ).
USB USB
.

/ (IO) Raspberry Pi
1-3 / (IO)
Raspberry Pi, .
A. (GPIO) .
GPIO
LED-,
.
B. (Display Serial Interface DSI). 15
LCD OLED .
C. (Camera Serial Interface CSI).
.
D. P2 P3 . JTAG
Broadcom (P2) LAN9512 (P3).
Broadcom,
.

1-3. Raspberry Pi


Raspberry Pi .
35
.

?
Raspberry Pi
.
, ,
Raspberry Pi , .
Raspberry Pi:


Raspberry Pi , ,
. ,
,
. , ,
(LibreOffice)
.


Raspberry Pi
,

. Scratch,
MIT. , Python
. Scratch Python.
Raspberry Pi , C,
Ruby, Java Perl.


Raspberry Pi ,
. Raspberry Pi LED AC

.

Raspberry Pi
,
. ,
, Arduino, ,
. (System on a
Chip), Raspberry Pi,
. , Raspberry Pi
Arduino.
Raspberry Pi ,
. ,
, Arduino Uno
.

,
Raspberry Pi.
, , ,
. Raspberry Pi Arduino
.


Raspberry Pi HDMI ,
.
.
, ,
XBMC, Raspberry Pi. XBMC
,
. XBMC
Raspberry Pi .


,
, Windows, Mac OS ,
Raspberry Pi - Linux.
?
, .

.

Raspberry Pi
Arcade Game Coffee Table

Instructables, grahamgelding,
Raspberry
Pi. Pi, MAME
( ), ,
,
. , 24- LCD
Raspiberry Pi HDMI, GPIO
Pi, .

RasPod

, ,
Raspberry Pi 2012.
Raspod, Raspberry Pi MP3 .

Python , Raspod
Raspberry Pi
, ,
. Raspberry Pi,

.

Raspberry Pi Raspberry Pi Supercomputer




.
64 Raspberry Pi
.


, .
, Raspberry
Pi, 6
.

Raspberry Pi
Based Beowulf Cluster Raspberry Pi

RPi
.

.


. ,

( ),
, LAN.


.
, ()
,
,
. MPI
( ), TCP/IP

. MPI
API .

,
,
.

( Onyx ), . Onyx
32 , 3.1GHz Intel Xeon E3-1225
RAM 8GB.
.
Onyx,
Raspberry Pi? . , Onyx
, .
, Onyx ,
. RPi
MPI Java
. , RPi
I2C, SPI, UART GPIO.

. , ,
. ,
. ,
, . , RPi !
RPi 32
. RPi 8GB SD 45 . ,
Onyx 1.000 1.500 . ,

PC , Raspberry Pi 32 !
,
. RPi
x86 PC . RPi ARM1176 (ARMv6)
, 700MHz ( ). ,
RPi ARM , PC ,
, ARM vs x86. , MPI x86
RPi . ,
, . ,
, RPi
. ,
.
, ,
.
, , ,
( ).
,
RPi .


:
, Linux
OS, MPI , . ,
RPi . 2 (a)
. 32 RPi , 48- 10/100 , Arch
Linux ARM MPICH3. 2 ().
Linux
RPi: Raspbian ( Ubuntu 11.10) Arch Linux ARM (
) (raspberrypi.org). Raspbian , .

ARM ,
.
,
. Raspbian,
Java Development Kit (JDK)/Java Virtual Machine (JVM) Oracle ARM.
Oracle JDK Java ,
.
,
. , OpenJDK
Java Linux , Raspbian
Arch. Arch Linux ARM .

(a) RPi

()
2:

Linux RPi?
Linux. Raspbian
LXDE ( ), Debian,
RPi. Linux ,
, RPi. .
,
. ,

.
Arch Linux , .
~150MB. 10 .
. ,
(CLI)
. ,
.

( )
Linux, Arch Linux. , Arch Linux
Linux.
Arch Linux (Arch Linux Beginners Guide).
, Arch Linux RPi .
MPI , MPICH
( OpenMPI).
Raspbian, MPI :
$ sudo apt-get install mpich2
. , MPICH Arch Linux
AUR . AUR MPICH
( gcc).
. mpich.org. OpenMPI Arch Linux
:
$

sudo pacman -Syy openmpi

MPICH,
700MHz. Core i7 Quad-Core
? : QEMU. QEMU CPU
. ARM RPi.
RPi x86 x86_64 !
, RPI QEMU QEMU
RPi .
Linux , (patch)
RPi,
. 5 i7
. Git (~1.5GB).
QEMU RPI
. : Raspberry Pi QEMU
Raspberry Pi Archlinux QEMU. ,
RPi
.
RPi /dev/mmcblk0p2,
/dev/mmcblk0p1. QEMU ,
/dev/sda mmcblk0 .
RPi ,
QEMU :
$ qemu-system-arm -kernel ./zImage -cpu arm1176 -m 256 -M versatilepb -no-rebootserial stdio -append "root=/dev/sda2 panic=0 rw" -hda archlinux-hf-2013-02-11.img

(zImage) QEMU,

RPi . RPi QEMU


RPi. ,
QEMU. 3
Arch Linux ARM QEMU.
Arch Linux QEMU
,
MPICH , x86 Linux .
QEMU .
QEMU,
RPi SD ( IP ,
).

3: Arch Linux ARM QEMU

Arch Linux
: :
# passwd
:
# pacman -Syyu
,
MPICH NFS OpenMPI:

# pacman -S nfs-utils base-devel openmpi sudo adduser nano vim gdb bc


minicom
Set the local timezone:
# timedatectl set-timezone America/Boise
...<user> ( , ,
, uucp ):
# adduser <user>

:
# chmod 600 /etc/sudoers
# nano /etc/sudoers

( : %wheel = ... )
# logout

( MPI)
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
$ ssh-keygen -t edsa

,
SSH .
Arch Linux:
/etc/exports
/etc/idmapd.conf
/etc/hosts
/etc/hostname
/etc/fstab
/etc/network.d/ethernet-static
/etc/conf.d/netcfg


, RPi.

.
MPI .
MPI
. pi
Monte Carlo. , ,
pi. pi
( . , 100%
).

(, ). ,

prand, -
.
1
.

1:

4 900 Monte Carlo


pi (PMCPI).

4: MPI 1
1

MPI ,
.

4, 14,6 Onyx
. 3,85
. , 3,90 .
RPi, 456 .
.
5 6
RPi ,
.

5: (1-32 )

6: 1

5 6,
, .


, ,
.
, ,
RPi PCB-to-PCB
.

,
. , RPi
.

32 . 7 (a)
.
RPi EagleCAD,
LED PCB. 7 () .
RPi. RPi USB
USB
. RPi
USB USB ,
. . ,
I/O RPi 5V
.
.
PCB I/O RGB LED (
, , LED-
). 8 (a) () PC B .

(a) RPi PCB

() (/ RPi )

(a) RPi /LED

() RPi /LED PC B
8: RPi /LED

8 (a), RGB LED ,


(PF1).
. RPi USB
5V. 5V
. JP1 5V RPi .
LED ,
5V
. RPi 400mA 5V (2W),
13A 5V (65W) ( ).
, 5V ,
PC
. PC
5V . 430W (430W 5V,
12V, ) 30A 5V (150W) 36 .

.


, RPi .
RAM 512MB GPU CPU,
RAM GPU .
/boot/config.txt.
,
ARM 1GHz, (SDRAM )
500MHz. (~30%)
. , GPU
RAM 48MB. 48MB
RAM GPU Arch Linux ARM RPi (
).


ARM
. , RPi
2W ( 700MHz).
RPi .

.
1GHz 500MHz SDRAM .,
. 9 (a) ()
( ) ()
( 1GHz).

(a) RPi ()

() RPi ()
9: RPi

9 (), 15%
CPU. , 12%

(
120mm).
167W. .
, SoC 60C 100%
, SoC 85C. , SoC
35C. SoC
( ).

, RPi .
, RPi .

.

... :

You might also like