Banana Pi BPI-M2+ User manual

1.1
1.2
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.10
1.2.11
1.2.12
1.2.13
1.2.14
1.2.15
1.2.16
1.2.17
1.2.18
1.3
1.3.1
1.3.2
1.3.2.1
1.3.3
1.3.3.1
1.3.3.2
1.3.3.2.1
1.3.3.3
1.3.3.3.1
1.3.3.3.2
1.3.4
1.3.4.1
1.3.5
1.3.6
1.3.7
1.3.7.1
1.3.7.2
1.3.7.3
TableofContents
AboutBPI-M2+(M2plus)
BPI-M2+hardware
BPI-M2+hardwareinterface
BPI-M2+hardwarespec
BPI-M2+Pindefine
BPI-M2+microSDcardslot
BPI-M2+GigELAN
BPI-M2+eMMCflash
BPI-M2+WIFIinterface
BPI-M2+wifiantennaslot
BPI-M2+bluetoothinterface
BPI-M2+IRinterface
BPI-M2+HDMIinterfact
BPI-M2+USBinterface
BPI-M2+OTGinterface
BPI-M2+UARTport
BPI-M2+CSIcamerainterface
BPI-M2+Powerinterface
BPI-M2+schematicdiagram
BPI-M2+DXFand3Ddesign
BPI-M2+software
BPI-M2+QuickStart
Androidsoftware
HowtoburnandroidimagetoeMMC
Linuxsoftware
HowtoburnLinuximagetoeMMC
LinuxforKernel3.4image
howtouseBPI-M3imageonBPI-M2+,usebpi-bootsel
mainlineLinux
uboot
mainlinekernel
Armbian
BuildarmbianimageforBPI-M2+
BPI-M2+WiringPi
OpenWRT
BPI-tools
bpi-bootselcommand
bpi-getcommand
bpi-copycommand
1

1.3.7.4
1.3.8
1.3.9
1.3.10
1.3.11
1.4
1.4.1
1.4.2
1.4.3
1.5
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.5.6
1.5.7
1.5.8
1.6
1.6.1
1.6.2
1.6.3
1.6.3.1
1.6.3.2
1.6.3.3
1.6.3.4
1.6.3.5
1.6.3.6
1.6.4
1.7
1.8
1.9
bpi-update
Openelec
LakkaTV
Dietpi
RetrOrangePi
BPI-M2+sourcecodeongithub
BPI-M2+fixrootmydeviceissueforSecurityAlert
Howtosetupdockerenv.tobuildgithubsourcecode
HowtocompileBPI-M2+BSPandbootimage
Referencedocuments
H3Linux-sunxiwiki
H3Manualbuildhowto
BPI-M2+linux-sunxiwiki
Bananapiwikipediawiki
BPI-M2+onlinevideo
AllwinnerGPL_Violations
Linuxmainliningeffort
Allwinnerchipdocuments
BPI-M2+qualityguarantee
BPI-M2+BT4.0Labtest
BPI-M2+WIFILabtest
BPI-M2+validationtestreport
HDMI720Pvalidationreport
HDMI1080Pvalidationreport
WIFI&BTvalidationreport
SamsungDDRvalidationreport
USBvalidationreport
Powervalidationreport
BPI-M2+CE,FCCRoHSCertification
AllBananaPiSBCComparison
Allbananapiproduct
BPI4.0customizedServer
2

AboutbananapiBPI-M2+(M2plus)
BananaPIBPI-M2+istheopensourcehardwareplatform,BananaPIBPI-M2+isanquadcoreversionofBananaPi,it
supportWIFIonboard.useAlliwnnerH3chiponboard.andminisizeonly65mm*65mm
BananaPiBPI-M2+seriesrunAndroid,Debianlinux,Ubuntulinux,RaspberryPiimageandothersimage.BananaPIPBI-
M2hardware:1GhzARM7quad-coreprocessor,1GBDDR3SDRAM,8GeMMCflashonboard,andSDIOwifimoduleon
board.
BananaPIBPI-M2+withGigabitethernetport,ItcanrunwithAndroid4.4smoothly.itcaneasilyrunwiththegameit
support1080Phighdefinitionvideooutputand4Ksupport,theGPIOcompatiblewithRaspberryPiB+andcansupport
raspbianImagedwonloadfromourwebsite
Note:
BananaPiBPI-M2+notsupportsataport,soyouneeduseUSBforhardisk
BananapiBPI-M2+notsupportLCDinterface..
Forcostdownversion,wemayremove8GeMMCandonboardwifimodule.so,everyonecanfreeDIYonthisboard.
forum:http//www.banana-pi.org
forum:http://www.bananapi.com
product:http://www.banana-pi.com
AboutBPI-M2+(M2plus)
3

FirstLookBPI-M2+
BPI-M2+hardware
4

BPI-M2+Eduversion:
1,DDRform1Gto512M2,eMMCflashremove5,WIFI&BTmoduleremove.
otherallissameasBPI-M2+.
BPI-M2+hardware
5

BPI-M2+hardwareinterface
BPI-M2+Eduhardwareinterface
BPI-M2+hardwareinterface
6

BPI-M2+hardwareinterface
7

BPI-M2+(BPI-M2plus)hardwarespec
Hardwarespecification
CPU H3Quad-coreCortex-A7H.265/HEVC4K
GPU Mali400MP2GPU@600MHz,SupportsOpenGLES2.0
Memory
(SDRAM) 1GBDDR3(sharedwithGPU)
Onboard
Storage TFcard(Max.64GB)/MMCcardslot,upto2Ton2.5SATAdisk,8GBEMMCFlash
Onboard
Network 10/100/1000MEthernetRJ45
Onboard
WIFI SDIOAP6212(optionAP6181、AP6335)
Video
Input
ACSIinputconnectorCamera:1Supports8-bitYUV422CMOSsensorinterface,2SupportsCCIR656
protocolforNTSCandPAL,3SupportsSMpixelcamerasensor,4Supportsvideocapturesolutionup
to1080p@30fps
Video
Outputs
SupportsHDMIoutputwithHDCP,SupportsHDMICEC,SupportsHDMI30function,Integrated
CVBS,SupportssimultaneousoutputofHDMIandCVBS
Audio
Output HDMI
Power
Source DCinputcansupplypower,butUSBOTGinputdon’tsupplypower
USB2.0
Ports twoUSB2.0HOST,oneUSB2.0OTG
Buttons PowerButton,RecoveryButton,UbootButton
Low-level
peripherals 40PinsHeader,compatiblewithRaspberryPiB+
uart
GPIO(1x3)
pin
UART,ground
LED Powerled&Statusled
IR IRinputonboard
Supported
OS Android,Ubuntu,Debian,RasberryPiImage
Product
size 65mm×65mm
Weight 48g
BPI-M2+hardwarespec
8

BPI-M2+Pindefine
BananaPiBPI-M2+40-pinGPIO
BananaPiBPI-M2+hasa40-pinGPIOheaderthatmatchesthatoftheModelB+RaspberryPi.FollowingistheBananaPi
GPIOPinout:
BPI-M2+Pindefine
9

BPI-M2+Pindefine
10

GPIOPinName DefaultFunction Function2:GPIO Function3
CON2-P01 VCC-3V3
CON2-P02 VCC-5V
CON2-P03 TWI0-SDA PA12-EINT12
CON2-P04 VCC-5V
CON2-P05 TWI0-SCK PA11-EINT11
CON2-P06 GND
CON2-P07 PWM1 PA6-EINT6
CON2-P08 UART3-TX PA13-EINT13 SPI1-CS
CON2-P09 GND
CON2-P10 UART3-RX PA14-EINT14 SPI1-CLK
CON2-P11 UART2-RX PA1-EINT1
CON2-P12 UART3-CTS PA16-EINT16 SPI1-MISO
CON2-P13 UART2-TX PA0-EINT0
CON2-P14 GND
CON2-P15 UART2-CTS PA3-EINT3
CON2-P16 UART3-RTS PA15-EINT15 SPI1-MOSI
CON2-P17 VCC-3V3
CON2-P18 PC4 PC4
CON2-P19 SPI0-MOSI PC0
CON2-P20 GND
CON2-P21 SPI0-MISO PC1
CON2-P22 UART2-RTS PA2-EINT2
CON2-P23 SPI0-CLK PC2
CON2-P24 SPI0-CS PC3
CON2-P25 GND
CON2-P26 PC7 PC7
CON2-P27 TWI1-SDA PA19-EINT19
CON2-P28 TWI1-SCK PA18-EINT18
CON2-P29 PA7-EINT7 PA7-EINT7
CON2-P30 GND
CON2-P31 PA8-EINT8 PA8-EINT8
CON2-P32 PL2-S-EINT2 PL2-S-EINT2
CON2-P33 PA9-EINT9 PA9-EINT9
CON2-P34 GND
CON2-P35 PA10-EINT10 PA10-EINT10
CON2-P36 PL4-S-EINT4 PL4-S-EINT4
BPI-M2+Pindefine
11

CON2-P37 PA17-EINT17 PA17-EINT17 SPDIF-OUT
CON2-P38 PA21-EINT21 PA21-EINT21
CON2-P39 GND
CON2-P40 PA20-EINT20 PA20-EINT20
CSICameraConnectorspecification:
TheCSICameraConnectorisa24-pinFPCconnectorwhichcanconnectexternalcameramodulewithpropersignalpin
mappings.ThepindefinitionsoftheCSIinterfaceareshownasbelow.ThisismarkedontheBananaPiboardas“CSI″.
CSIPinName DefaultFunction Function2:GPIO
CN3-P01 NC
CN3-P02 GND
CN3-P03 CSI0-SDA PE13
CN3-P04 CSI0-AVDD
CN3-P05 CSI0-SCK PE12
CN3-P06 CSI0-Reset PE14
CN3-P07 CSI0-VSYNC PE3
CN3-P08 CSI0-PWDN PE15
CN3-P09 CSI0-HSYNC PE2
CN3-P10 CSI0-DVDD
CN3-P11 CSI0-DOVDD
CN3-P12 CSI0-D7 PE11
CN3-P13 CSI0-MCLK PE1
CN3-P14 CSI0-D6 PE10
CN3-P15 GND
CN3-P16 CSI0-D5 PE9
CN3-P17 CSI0-PCLK PE0
CN3-P18 CSI0-D4 PE8
CN3-P19 CSI0-D0 PE4
CN3-P20 CSI0-D3 PE7
CN3-P21 CSI0-D1 PE5
CN3-P22 CSI0-D2 PE6
CN3-P23 GND
CN3-P24 CSI0-DOVDD
UARTspecification:
ThejumperCON3istheUARTinterface.FordevelopersofBananaPi,thisisaneasywaytogettheUARTconsoleoutput
tocheckthesystemstatusandlogmessage.
BPI-M2+Pindefine
12

CON3PinName DefaultFunction GPIO
CON3P03 UART0-TXD PA4
CON3P02 UART0-RXD PA5
CON3P01 GND
BPI-M2+Pindefine
13

BPI-M2+SDcardslot
BPI-M2+havesupportaTFcardslot.youcanburnimagetoTFcard,anduseitbootBPI-M2+sameasraspberrypi.
Note:
support8G16G32G64G
pleasechooseclass10TFcardforbananapi.
BPI-M2+microSDcardslot
14

BPI-M2+GigELAN
BananaPIBPI-M2+withoneGigabitethernetport,useRTL8211Echiponboard.
BPI-M2+GigELAN
15

BPI-M2+eMMCflash
BPI-M2+havesupport8GeMMCflashonboardbydefaults.forcustomizationuser,wecanadd4-64Gemmconboard.
So,youcanburnyourimagetoeMMCflashandbootfromeMMCflash.
HowtoburnAndroidimagetoeMMC
pleasereadthisbook:
2.2.1HowtoburnandroidimagetoeMMC
HowtoburnLinuximagetoeMMC
pleasereadthisbook:
2.3.1HowtoburnlinuximagetoeMMC
Note:
thefirstbootisfrommicroSDcard.ifyouwanttobootfromeMMCflash,pleaseremovemicroSDcardfromBPI-M2+
microSDcardslots.
BPI-M2+eMMCflash
16

BPI-M2+wifiantennaslot
bananapiBPI-M2+havesupportap6212wifi&BTmoduleonboard
BPI-M2+havewifiantennaslotonboard
wifiextendantennaslotspec:
soyoucanuse3DB/5DBwifiantennaonBPI-M2+
BPI-M2+wifiantennaslot
18

BPI-M2+bluetoothinterface
BPI-M2+haveAP6212WiFi&Bluetoothonbaord.sameasBPI-M3.itsupportbluetoothfunctionbydefaults.
BPI-M2+bluetoothinterface
19

BPI-M2+IRinterface
BPI-M2+supportIRinterfaceonboard.youcanuseitasremotecontrol.
1,installlirc
apt-getinstalllirc
apt-getinstallevtest
2,edit/etc/lirc/hardware.confasbelow:
nano/etc/lirc/hardware.conf
#/etc/lirc/hardware.conf
#
#Argumentswhichwillbeusedwhenlaunchinglircd
LIRCD_ARGS="--uinput"
#Don'tstartlircmdevenifthereseemstobeagoodconfigfile
#START_LIRCMD=false
#Don'tstartirexec,evenifagoodconfigfileseemstoexist.
#START_IREXEC=false
#Trytoloadappropriatekernelmodules
LOAD_MODULES=true
#Run"lircd--driver=help"foralistofsupporteddrivers.
DRIVER="UNCONFIGURED"
#usually/dev/lirc0isthecorrectsettingforsystemsusingudev
DEVICE="/dev/input/event0"
MODULES="sunxi-ir"
ctrl+Osaveandctrl+xexit.
3,testlirc
servicelircstart
4testremote-controlunit
evtest
BPI-M2+IRinterface
20
Other manuals for BPI-M2+
1
This manual suits for next models
1
Table of contents
Other Banana Pi Computer Hardware manuals