Raspberry Pi

最後更新: 2017-06-14

介紹

 

架構: armhf

http://wiki.debian.org/ArmHardFloatPort

GPIO: General purpose input/output.

floating-point unit (FPU)

Application Binary Interface (ABI)

mapping between low-level concepts in high-level languages

EABI: embedded-application binary interface

 

目錄

  •  

Hardware:

 

Raspberry Pi 1 Model A & Model B

  • Model A has 256MB RAM, 1 USB port and no Ethernet (network connection)
  • Model B has 512MB RAM, 2 USB port and an Ethernet port

Model B Size and weighs

size: 85.60mm x 56mm x 21mm
weighs: 45g

HW

  • Broadcom BCM2835(Processor: Single-core ARM1176JZF-S)
  • 700Mhz, and a Videocore 4 GPU.
  • GPU is capable of 1Gpixel/s
  • cannot boot without an SD card.
  • GPIO pins
  • RAM is a POP(Package on package) package on top of the SoC (X add extra memory)

Power Supply

  • 4 x AA rechargeable cells (1.2V X 4 ~ 5V)
  • Power Supply: 700mA
  • USB Out:  < 300mA

 


Compile Kernel

 

# 平均能節省20個CPU週期

gcc 的編譯參數上 -mfloat-abi=hard -mfpu=vfp

-mfloat-abi=

soft: Full software floating point.

softfp: Use the FPU, but remain compatible with soft-float code.

hard: Full hardware floating point.

-mfpu= option can be used to select a VFP/NEON (or FPA or Maverick) variant.

ARMv5 an optional floating point instruction set known as Vector Floating Point

 


Support OS

 

  • raspbian ( Debian )
  • Razdroid ( Android 4.0 )
  • XBian ( XBMC + Raspbian )

raspbian

它是由 Debian(Wheezy armhf) 修改後的產物來

主要不同的地方是它完全用了 hard float (-march=armv6 -mfpu=vfp -mfloat-abi=hard)

所以不能混合原本的 Debian packages 來用 !!

http://www.raspbian.org/

建議用 dd 來安裝

因為安裝時會有以下問題:

A minimal install of Raspbian to an SD card can take 90 minutes or longer.

10,000's of small files the installer writes to various locations on the root file system. ("network" installer)

注意: 千萬不要 dd 錯目的地 !!

 * dd if=/path/to/image of=/dev/sdx bs=1m

 


First Boot

 

OS: 2017-04-10-raspbian-jessie-lite

wait it boot up about 3 minute

Default:

Network: DHCP

SSH: Disable (In the past, SSH was enabled by default)

Login: pi / raspberry

 


開機

 

没有插 SD Card 時, 開機(插電)後, Mon 不會有任何的反應

 


Partition

 

/dev/mmcblk0p1 on /boot type vfat

/dev/mmcblk0p2 on / type ext4

swap on /var/swap # 100M      <- dphys-swapfile swap[on|off]  for that

 


其他配件

 

 

 

 

 

Creative Commons license icon Creative Commons license icon