Banana Pi BPI-M2 Series 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.2.1.1
1.3.2.1.2
1.3.2.2
1.3.2.2.1
1.3.2.2.1.1
1.3.2.2.2
1.3.2.2.2.1
1.3.2.2.2.2
1.3.2.2.3
1.3.2.2.4
1.3.2.2.5
1.3.3
1.3.4
1.4
1.4.1
TableofContents
Introduction
BPI-M2hardware
BPI-M2Hardwareinterface
BPI-M2hardwarespec
BPI-M2GPIOPindefine
BPI-M2microSDcardslot
BPI-M2GigELAN
BPI-M2WIFIinterface
BPI-M2wifiantennaslot
BPI-M2USBinterface
BPI-M2HDMIinterface
BPI-M2Camerainterface
BPI-M2RGBDSIinterface
BPI-M2IRinterface
BPI-M2OTGinterface
BPI-M2CEFCCRoHSCertification
BPI-M23.7Vlithiumbatteryinterface
BPI-M2DCPowerinterface
BPI-M2schematicdiagram
BPI-M2DXFand3Ddesign
BPI-M2software
BPI-M2quickstart
BPI-M2Software
Androidsoftware
HowtobuildAndroid4.4.2ImageforBPI-M2
ABDdriver
LinuxSoftware
Linuxkernel3.3
HowtobuildingaMinimalsystem
mainlineLinux
uboot
mainlinekernel
Armbianlinux
Bananianlinux
OpenSuse
OpenWRT
BPI-M2WiringPi
BPI-M2sourcecodeongithub
Howtosetupdockerenv.tobuildgithubsourcecode
1

1.4.2
1.5
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.6
1.7
1.8
BPI-M2BuildingaMinimalSystem
Referencedocuments
BPI-M2linux-sunxiwiki
A31Manualbuildhowto
NetBSD/evbarmonAllwinnerTechnologySoCs
Linuxmainliningeffort
Allwinnerchipdocuments
AllBananaPiSBCComparison
Allbananapiproduct
BPI4.0customizedServer
2

BananapiBPI-M2
BananaPIBPI-M2istheopensourcehardwareplatform,BananaPIBPI-M2isanquadcoreversionofBananaPi,Banana
PIBPI-M2isthequadcoremorebetterthantheBananaPiBPI-M1,itsupportWIFIonboard.useAlliwnnerA31Schipon
board.
BananaPiBPI-M2seriesrunAndroid,Debianlinux,Ubuntulinux,RaspberryPiimageandothersimage.BananaPIPBI-M2
hardware:1GhzARM7quad-coreprocessor,1GBDDR3SDRAM,
BananaPIBPI-M2withGigabitethernetport,ItcanrunwithAndroid4.4smoothly.ThesizeofBananaPIBPI-M2sameas
bananapiM1,itcaneasilyrunwiththegameitsupport1080Phighdefinitionvideooutput,theGPIOcompatiblewith
RaspberryPiB+andcansupportraspbianImage
Note:BananaPiBPI-M2notsupportsataport,soyouneeduseUSBforhardisk
forum:http://www.banana-pi.org
forum:http://www.bananapi.com
produce:http://www.banana-pi.com
Introduction
3

BPI-M2hardwareinterface:
BPI-M2Hardwareinterface
4

BPI-M2Hardwareinterface
5

BPI-M2Hardwareinterface
6

BPI-M2hardwarespec:
BPI-M2hardwarespec
7

BPI-M2GPIOPindefine
BananaPihasa40-pinGPIOheaderthatmatchesthatoftheModelB+RaspberryPi.FollowingistheBananaPiGPIO
Pinout:
GPIOPinName DefaultFunction Function2:GPIO
CN7-P01 VCC-3V3
CN7-P02 VCC-DC
CN7-P03 TWI2-SDA PH19
CN7-P04 VCC-DC
CN7-P05 TWI2-SCK PH18
CN7-P06 GND
CN7-P07 PWM1-P PH9
CN7-P08 UART5_TX PE4
CN7-P09 GND
CN7-P10 UART5_RX PE5
CN7-P11 UART2_RX PG7
CN7-P12 PWM1-N PH10
CN7-P13 UART2_TX PG6
CN7-P14 GND
CN7-P15 UART2_CTS PG9
CN7-P16 PWM2-P PH11
BPI-M2GPIOPindefine
8

CN7-P17 VCC-3V3
CN7-P18 PWM2-N PH12
CN7-P19 SPI1_MOSI PG15
CN7-P20 GND
CN7-P21 SPI1_MISO PG16
CN7-P22 UART2_RTS PG8
CN7-P23 SPI1_CLK PG14
CN7-P24 SPI1_CS0 PG13
CN7-P25 GND
CN7-P26 SPI1_CS1 PG12
CN7-P27 TWI3-SDA PB6
CN7-P28 TWI3-SCK PB5
CN7-P29 I2S-MCLK PB0
CN7-P30 GND
CN7-P31 I2S-BCLK PB1
CN7-P32 I2S-DI PB7
CN7-P33 I2S-LRCK PB2
CN7-P34 GND
CN7-P35 I2S-DO0 PB3
CN7-P36 UART5_RTS PE6
CN7-P37 I2S-DO1 PB4
CN7-P38 UART5_CTS PE7
CN7-P39 GND
CN7-P40 1WIRE PM2
CSICameraConnectorPinspecification:
theCSICameraConnectorisa40-pinFPCconnectorwhichcanconnectexternalcameramodulewithpropersignalpin
mappings.ThepindefinitionsoftheCSIinterfaceareshownasbelow.ThisismarkedontheBananaPiboardas“CN6″.
CSIPinName DefaultFunction Function2:GPIO
CN6-P01 LINEINL
CN6-P02 LINEINR
CN6-P03 VCC-CSI
CN6-P04 AVDD-CSI
CN6-P05 GND
CN6-P06 VDD-CSI
CN6-P07 MIC2P
CN6-P08 VCC-CSI
CN6-P09 MIC2N
BPI-M2GPIOPindefine
9

CN6-P10 AFVCC-CSI
CN6-P11 GND
CN6-P12 CSI-IO0 PM0
CN6-P13 LRADC0
CN6-P14 TWI0-SDA PH15
CN6-P15 MIC-MBIAS
CN6-P16 TWI0-SCK PH14
CN6-P17 CSI-D4 PE8
CN6-P18 CSI0-STBY-EN PH27
CN6-P19 CSI-D5 PE9
CN6-P20 CSI-PCLK PE0
CN6-P21 CSI-D6 PE10
CN6-P22 CSI0-PWR-EN PG18
CN6-P23 CSI-D7 PE11
CN6-P24 CSI-MCLK PE1
CN6-P25 CSI-D8 PE12
CN6-P26 CSI0-RESET# PH26
CN6-P27 CSI-D9 PE13
CN6-P28 CSI-VSYNC PE3
CN6-P29 CSI-D10 PE14
CN6-P30 CSI-HSYNC PE2
CN6-P31 CSI-D11 PE15
CN6-P32 CSI1-STBY-EN PH25
CN6-P33 AP-RESET#
CN6-P34 CSI1-RESET# PH24
CN6-P35 CSI-IO1 PM1
CN6-P36 HPR
CN6-P37 HPL
CN6-P38 IPSOUT
CN6-P39 GND
CN6-P40 IPSOUT
LVDSPinspecification
LVDS(LCDdisplayinterface)
TheLVDSConnectorisa40-pinFPCconnectorwhichcanconnectexternalLCDpanel(LVDS)andtouchscreen(I2C)
moduleaswell.Thepindefinitionsofthisconnectorareshownasbelow.ThisismarkedontheBananaPiboardas“CN9″.
DSIPinName DefaultFunction Function2:GPIO
CN9-P01 IPSOUT
BPI-M2GPIOPindefine
10

CN9-P02 TWI1-SDA PH15
CN9-P03 IPSOUT
CN9-P04 TWI1-SCK PH16
CN9-P05 GND
CN9-P06 TP-INT PG0
CN9-P07 LCD-PWR-EN PG4
CN9-P08 TP-RST PG1
CN9-P09 LCD0-D00 PD0
CN9-P10 LCD0-PWM PH13
CN9-P11 LCD0-D01 PD1
CN9-P12 LCD0-BL-EN PG3
CN9-P13 LCD0-D02 PD2
CN9-P14 LCD0-DE PD25
CN9-P15 LCD0-D03 PD3
CN9-P16 LCD0-VSYNC PD27
CN9-P17 LCD0-D04 PD4
CN9-P18 LCD0-HSYNC PD26
CN9-P19 LCD0-D05 PD5
CN9-P20 LCD0-CS PG2
CN9-P21 LCD0-D06 PD6
CN9-P22 LCD0-CLK PD24
CN9-P23 LCD0-D07 PD7
CN9-P24 GND
CN9-P25 LCD0-D08 PD8
CN9-P26 LCD0-D23 PD23
CN9-P27 LCD0-D09 PD9
CN9-P28 LCD0-D22 PD22
CN9-P29 LCD0-D10 PD10
CN9-P30 LCD0-D21 PD21
CN9-P31 LCD0-D11 PD11
CN9-P32 LCD0-D20 PD20
CN9-P33 LCD0-D12 PD12
CN9-P34 LCD0-D19 PD19
CN9-P35 LCD0-D13 PD13
CN9-P36 LCD0-D18 PD18
CN9-P37 LCD0-D14 PD14
CN9-P38 LCD0-D17 PD17
CN9-P39 LCD0-D15 PD15
BPI-M2GPIOPindefine
11

CN9-P40 LCD0-D16 PD16
UARTPinspecification:
TheheaderCON4istheUARTinterface.FordevelopersofBananaPi,thisisaneasywaytogettheUARTconsoleoutput
tocheckthesystemstatusandlogmessage.
CN8PinName DefaultFunction GPIO
CN8P03 UART0-TXD PH20
CN8P02 UART0-RXD PH21
CN8P01 GND
BPI-M2GPIOPindefine
12

BPI-M2microSDcardslot
BPI-M1+havesupportaTFcardslot.youcanburnimagetoTFcard,anduseitbootBPI-M1+sameasraspberrypi.
Note:
support8G16G32G64G
pleasechooseclass10TFcardforbananapi.
BPI-M2microSDcardslot
13

BPI-M2GigELAN
BananaPIBPI-M2withoneGigabitethernetport,useRTL8211Echiponboard.
BPI-M2GigELAN
14

BPI-M2WIFIinterface
BPI-M2supportAP6181wifimoduleonboard.itsupport802.11/b/g/nwifi.
useSDIOinterface,notconnectwithUSB
BPI-M2WIFIinterface
15

BPI-M2wifiantennaslot
bananapiBPI-M2havesupportap6212wifi&BTmoduleonboard
BPI-M2havewifiantennaslotonboard
wifiextendantennaslotspec:
soyoucanuse3DB/5DBwifiantennaonBPI-M2
BPI-M2wifiantennaslot
16

BPI-M2USBinterface
BPI-M2have4USB2.0interfaceonboard.soyoucanconnectKeyboard,mouse,USBcameraand...onBPI-M2
BPI-M2USBinterface
17

BPI-M2HDMIinterface
BPI-M2hasastandardHDMI1.4interface.soWecanuseHDMI-to-HDMIcabletoconnectBPI-M2tothedisplaymonitor
thathasHDMIinterface.
ButIfthedisplaymonitordoesn'thaveHDMIinterface,onlyVGAorDVIport.WeshoulduseHDMI-to-VGAorHDMI-to-DVI
cabletoconnecttheBPI-M2tothedisplaymonitor.
Note:iftheHDMI-to-VGA/DVIcableisabadqualitycable,itwillgowrongonthemonitordisplay.pleasechooseagood
qualitycableforBPI-M2
BPI-M2HDMIinterface
18

BPI-M2Camerainterface
BPI-M2CSICameraConnectorisa40-pinFPCconnectorwhichcanconnectexternalcameramodulewithpropersignal
pinmappings.ThepindefinitionsoftheCSIinterfaceareshownasbelow.ThisismarkedontheBananaPiboardas“CSI”.
CSIpindefine:
pleasesee:BPI-M2GPIOpinedefine
BPI-M2CSIcameraaccessories
https://bananapi.gitbooks.io/bpi-accessories/content/bpim1m1+m2camera.html
BPI-M2Camerainterface
19

BPI-M2RGBDSIinterface
RGBDSI(DisplaySerialInterface):
ThedisplayConnectorisa40-pinFPCconnectorwhichcanconnectexternalLCDpanel(RGBDSI)andtouchscreen
(I2C)moduleaswell.Thepindefinitionsofthisconnectorareshownasbelow.ThisismarkedontheBananaPiboardas
“DSI”.
DSIpindefine:
pleasesee:BPI-M2GPIOpinedefine
BPI-M2LCDtouchpanelaccessories
https://bananapi.gitbooks.io/bpi-accessories/content/bpi70lcdtouchpanel.html
note:thetouchpanelaccessoriessupportRGBinterfaceandMIPIinterface,whenyouuseBPI-M1,pleasechoose
RGBinterface.
BPI-M2RGBDSIinterface
20
Other manuals for BPI-M2 Series
1
Table of contents
Other Banana Pi Motherboard manuals