Banana Pi BPI-R1 User manual

Type
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.2.19
1.2.20
1.2.21
1.2.22
1.3
1.3.1
1.3.2
1.3.3
1.3.3.1
1.3.3.1.1
1.3.3.2
1.3.4
1.3.4.1
1.3.4.2
1.3.4.3
1.3.5
1.3.6
1.3.7
1.3.8
TableofContents
AboutbananapiBPI-R1
BPI-R1hardware
BPI-R1hardwareinterface
BPI-R1hardwarespec
BPI-R1GPIOPindefine
BPI-R1SDcardslot
BPI-R1CANBus
BPI-R1WIFIinterface
BPI-R1wifiantennaslot
BPI-R1MIC
BPI-R1Audio
BPI-R1IRinterface
BPI-R1USBinterface
BPI-R1OTGinterface
BPI-R1SATAinterface
BPI-R1HDMIinterfact
BPI-R1Camerainterface
BPI-R1RGBDSIinterface
BPI-R15GbEEthernetports
BPI-R13.7Vlithiumbatteryinterface
BPI-R1DCPowerinterface
BPI-R1schematicdiagram
BPI-R13DandDXFfile
BPI-R1CE,FCCRoHSCertification
BPI-R1Software
BPI-R1quickstart
BPI-R1androidsoftware
BPI-R1Linuxsoftware
Linuxkernel3.4BSPimage
CompulsivemodificationofHDMIoutputresolution
Linuxmainlinekernelimage
BPI-R1OpenWRT
OfficealOpenWRT
LamoboOpenwrtimage
HowtobuildOpenWRTimagefromgithub
AsteriskonBPI-R1
BPI-R1OpenBSD
ArmbianLinux
BananianLinux
1
1.3.9
1.3.9.1
1.3.9.2
1.4
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.5
1.6
BPI-R1WiringPi
WiringPipython
Pi4JProject
Referencedocuments
linux-sunxiwiki
ManualforHWsetupandbasicrouterfunctionalities
NetBSD\/evbarmonAllwinnerTechnologySoCs
DavidBentham\/openwrt-bpi-r1-prebuilt
Linuxmainliningeffort
Allwinnerchipdocuments
Allbananapiproduct
BPI4.0customizedServer
2
AboutBananapiBPI-R1
ThebananapiBPI-R1isa300MbpsWirelessNRouterwithbothwiredandwirelessnetworkconnectionsdesigned
specificallyforsmarthomenetworkinguse.With2T2RMIMOTechnologyandtwodetachableantennas.
theBPI-R1isthedualcoreAndroid4.4productwhichmorebetterthanLinuxproduct.ItcanrunwithAndroid4.4smoothly
andwith5Gigabitethernetport,SATASocket.alsosupportLinuxOS,andOpenwrtos.
itcaneasilyrunwiththegameandsupport1080Phighdefinitionvideooutput.
BananaPiRouter:NAS,routerortrash?//Review
https://www.youtube.com/watch?v=tvzXhbcgo2k
BananaPiR1SmartOpensourceWirelessRouter
https://www.youtube.com/watch?v=bDkn_UM8DwQ
forum:http://www.banana-pi.org
forum:http://www.bananapi.com
product:http://www.banana-pi.com
AboutbananapiBPI-R1
3
FirstChapter
GitBookallowsyoutoorganizeyourbookintochapters,eachchapterisstoredinaseparatefilelikethisone.
BPI-R1hardware
4
BPI-R1hardwareinterface
BPI-R1hardwareinterface
Front:
Back:
BPI-R1hardwareinterface
5
Hardwareconnectsketchmap
Front:
Back:
BPI-R1hardwareinterface
6
BPI-R1hardwareinterface
7
BPI-R1hardwarespec
BPI-R1hardwarespec
8
BPI-R1GPIOPindefine
GPIOdefine
WecancheckR1PINdefinitioninthisthread,includingCON1,CON2,CON3,J12andJ13.
J13containsthedefaultserialportUART0(UART0-RX,UART0-TX).UATR0isconfiguredtobeusedforconsole
input/output.Whilstthisisusefulifyouwanttologinusingtheserialport.SoitisthemostcommonusedPIN.
J12alsocontainsserialport.CON3containsCANbus,SPIbus,PWM,serialportandetc.Itcanbeconfiguredtobeused
forkindsofperipherals.
CON1isaCSIcameraconnector.
CON2isaDSIdisplayconnector.
PicturesandtablesbelowshowthespecificlayoutanddefinitionofPIN.
BPI-R1GPIOPindefine
9
CSICameraConnectorPinspecification:
theCSICameraConnectorisa40-pinFPCconnectorwhichcanconnectexternalcameramodulewithpropersignalpin
mappings.ThepindefinitionsoftheCSIinterfaceareshownasbelow.
PIN PINdefine GPIO
CON1-P01 LINEINL
CON1-P02 LINEINR
CON1-P37 HPL
CON1-P36 HPR
CON1-P07 FMINL
CON1-P09 FMINR
CON1-P04 ADC_X1
CON1-P06 ADC_X2
CON1-P08 ADC_Y1
CON1-P10 ADC_Y2
CON1-P13 LRADC0
CON1-P15 LRADC1
CON1-P33 RESET#
CON1-P17 CSI0-D0 PE4
BPI-R1GPIOPindefine
10
CON1-P19 CSI0-D1 PE5
CON1-P21 CSI0-D2 PE6
CON1-P23 CSI0-D3 PE7
CON1-P25 CSI0-D4 PE8
CON1-P27 CSI0-D5 PE9
CON1-P29 CSI0-D6 PE10
CON1-P31 CSI0-D7 PE11
CON1-P20 CSI0-PCLK PE0
CON1-P24 CSI0-MCLK PE1
CON1-P28 CSI0-VSYNC PE3
CON1-P30 CSI0-HSYNC PE2
CON1-P18 CSI0-STBY-EN PH19
CON1-P26 CSI0-RESET# PH14
CON1-P32 CSI1-STBY-EN PH18
CON1-P34 CSI1-RESET# PH13
CON1-P14 TWI1-SDA PB19
CON1-P16 TWI1-SCK PB18
CON1-P12 CSI0-FLASH PH17
CON1-P22 CSI0-PWR-EN PH16
CON1-P35 CSI-IO0 PH11
CON1-P38 IPSOUT
CON1-P40 IPSOUT
CON1-P05 GND
CON1-P11 GND
CON1-P39 GND
CON1-P03 VCC-CSI
LVDSPinspecification
LVDS(LCDdisplayinterface)
TheLVDSConnectorisa40-pinFPCconnectorwhichcanconnectexternalLCDpanel(LVDS)andtouchscreen(I2C)
moduleaswell.Thepindefinitionsofthisconnectorareshownasbelow.
CON2-P09 LCD0-D00 PD0
CON2-P11 LCD0-D01 PD1
CON2-P13 LCD0-D02 PD2
CON2-P15 LCD0-D03 PD3
CON2-P17 LCD0-D04 PD4
CON2-P19 LCD0-D05 PD5
CON2-P21 LCD0-D06 PD6
BPI-R1GPIOPindefine
11
CON2-P23 LCD0-D07 PD7
CON2-P25 LCD0-D08 PD8
CON2-P27 LCD0-D09 PD9
CON2-P29 LCD0-D10 PD10
CON2-P31 LCD0-D11 PD11
CON2-P33 LCD0-D12 PD12
CON2-P35 LCD0-D13 PD13
CON2-P37 LCD0-D14 PD14
CON2-P39 LCD0-D15 PD15
CON2-P40 LCD0-D16 PD16
CON2-P38 LCD0-D17 PD17
CON2-P36 LCD0-D18 PD18
CON2-P34 LCD0-D19 PD19
CON2-P32 LCD0-D20 PD20
CON2-P30 LCD0-D21 PD21
CON2-P28 LCD0-D22 PD22
CON2-P26 LCD0-D23 PD23
CON2-P22 LCD0-CLK PD24
CON2-P20 LCD0-CS PH6
CON2-P18 LCD0-HSYNC PD26
CON2-P16 LCD0-VSYNC PD27
CON2-P14 LCD0-DE PD25
CON2-P12 LCD0-IO2 PH9
CON2-P10 PWM0 PB2
CON2-P08 LCD0-IO1 PH8
CON2-P06 LCD0-IO0 PH7
CON2-P04 TWI3-SCK PI0
CON2-P02 TWI3-SDA PI1
CON2-P01 IPSOUT
CON2-P03 IPSOUT
CON2-P05 GND
CON2-P24 GND
CON2-P07 VCC-3V3
BPI-R1hasa26-pinGPIOheaderthatmatchesthatoftheModelRaspberryPi.FollowingistheBananaPiGPIOPinout:
BPI-R1GPIOPindefine
12
CON3-P18 CAN_RX PH21
CON3-P16 CAN_TX PH20
CON3-P23 SPI0_CLK PI11
CON3-P21 SPI0_MISO PI13
CON3-P19 SPI0_MOSI PI12
CON3-P24 SPI0_CS0 PI10
CON3-P26 SPI0_CS1 PI14
CON3-P05 TWI2-SCK PB20
CON3-P03 TWI2-SDA PB21
CON3-P15 UART2_CTS PI17
CON3-P22 UART2_RTS PI16
CON3-P11 UART2_RX PI19
CON3-P13 UART2_TX PI18
CON3-P10 UART3_RX PH1
CON3-P08 UART3_TX PH0
CON3-P12 PH2 PH2
CON3-P07 PWM1 PI3
CON3-P01 VCC-3V3
CON3-P17 VCC-3V3
CON3-P02 VCC-5V
CON3-P04 VCC-5V
CON3-P09 GND
CON3-P25 GND
CON3-P06 GND
CON3-P14 GND
CON3-P20 GND
BPI-R1UARTdefine
J12-P03 PH5 PH5
J12-P05 PH3 PH3
J12-P04 UART7_RX PI21
J12-P06 UART7_TX PI20
J12-P01 VCC-5V
J12-P02 VCC-3V3
J12-P07 GND
J12-P08 GND
BPI-R1GPIOPindefine
13
J13-P01 UART0-RX PB23
J13-P02 UART0-TX PB22
BPI-R1GPIOPindefine
14
BPI-R1SDcardslot
BPI-R1havesupportaTFcardslot.youcanburnimagetoTFcard,anduseitbootBPI-R1sameasraspberrypi.
BPI-R1SDcardslot
15
BPI-R1CANBus
Inordertoportcan4linuxtotheBananaPi,theCANmoduledescriptionisneededfromtheA20hardwaremanual.
can4linuxisacharacter-driver-basedLinuxdriverusedalreadyondesktopPCsandembeddedplatformslikeFreescale
FlexCAN(thei.MXseriesofmicrocontrollers)orXilinyZynq.
ThereisamoredetaileddocumentaboutCANontheA20athttps://dl.linux-sunxi.org/A20/CAN%20Bus1.pdf
ThisisatutorialforusingCANBUSonbananapiwithbananian15-01
Thankselqcirsharethisexample:
Downloadandinstall"bananian-1501.img"into8GBSDCard.
Expandtherootfilesystemusing"bananian-config"
Installmissingpackage:
apt-getinstallgit
apt-getupdate
apt-getupgrade
reboot
Getlastbananianavailable,andcontinutoinstallmissingpackage:
gitclonehttps://github.com/Bananian/linux-bananapi
apt-getinstallbuild-essentialu-boot-toolsuboot-mkimage
apt-getinstalllibusb-1.0-0libusb-1.0-0-devgitwgetfakerootkernel-packagezlib1g-devlibncurses5-dev
apt-getinstallsubversion
Buildkernel:
cdlinux-bananapi
makemenuconfig
Exitwithoutsavingwhenmenuappears
zcat/proc/config.gz>/root/linux-bananapi/.config
makeuImagemodules
makeINSTALL_MOD_PATH=outputmodules_install
Atthisstep,kernelshouldbecompiledand"Module.symvers"shouldbeavailable
ThenrenamemodulesandfirmwareprovidebyBananian,andreplacebythenewone.
mv/lib/modules/lib/modules.old
mv/lib/firmware/lib/firmware.old
mv/root/linux-bananapi/output/lib/modules/lib/modules
mv/root/linux-bananapi/output/lib/firmware/lib/firmware
SameforuImage:
mount/dev/mmcblk0p1/mnt
cd/mnt
mvuImageuImage.old
mv/root/linux-bananapi/arch/arm/boot/uImage/mnt
reboot
Createlinkforfurtherbuild:
BPI-R1CANBus
16
cd/lib/modules/3.4.104/
ln-s/root/linux-bananapibuild
cd~
GetCan4Linuxandbuildit:
svncheckouthttps://svn.code.sf.net/p/can4linux/code/trunkcan4linux-code
cd/root/can4linux-code/can4linux/
makeTARGET=BANANAPI
Installmoduleforeachstartupoftheboard:
insmodcan4linux.ko
cpcan4linux.ko/lib/modules/3.4.104/kernel/net/can/
depmod-A-v
modprobe-vcan4linux
echo"">>/etc/modules;echo"can4linux">>/etc/modules
reboot
BuildCANexample
apt-getinstallswig
apt-getinstallpython-dev
cdcan4linux-code/can4linux-examples/
UpdateCANspeedanddeviceinfile"pyCan-example.py"
ex:
#settingthedevicenumber
device=0
defaultBaudrate='250'
ConnectCANtransceiverandCANbus,andcheckwithforexample:
pythonpyCan-example.py
That'sall
Withthismethod,kernelversionis"Linuxbananapi3.4.104"insteadof"Linuxbananapi3.4.104+",becauseiwasunableto
findsamesourcesthanBananian15-01,butCANbuswork!
Feelfreetocommentorupdate.
BPI-R1CANBus
17
BPI-R1WIFIinterface
bananapiBPI-R1havesupportrtl8192CU2T2Rwifimoduleonboard.itsupport802.11/b/g/nwifi.
BPI-R1WIFIinterface
18
BPI-R1wifiantennaslot
bananapiBPI-R1havesupportrtl8192CU2T2Rwifimoduleonboard
so,itneed2extendantennaline,youcanuse3DB/5DBextendantennaline.
wifiextendantennawifislotspec:
BPI-R1wifiantennaslot
19
BPI-R1MIC
thankchaos.dennisdothistest:
iwriteaboutthis,becauseifoundveryfewsourcesandhadtotumblealotaroundtogetitworking.Thisisaquickwalk
throughtogiveyouahintwheretostart.Iasumeforsimplicitythatyoustayalwaysin/rootdirectoryasrootuser.If
somethingfails,lookifthefilesarewrittenandpathsareright.Itisadressedformoreadvanceduserswhoknowwhatthey
arebasicallydoing.
Thisisdonewithbananian15.08onKernel3.4.Otherkernels<4.4donotwork.ItisaheadlessserverwithnoHDMI
plugedin.
A.BasicSetup
Installalsa(renovepulseaudioifpresent):
#apt-getinstallalsa-basealsa-utils
Configureasound.conf
#nano/etc/asound.conf
Shouldlooklike:
pcm.!default{
typehw
card0#forheadphone,turn1to0
device0
}
ctl.!default{
typehw
card0#forheadphone,turn1to0
}
Shutdown,makeacoldboot
Callthealsamixer
#alsamixer
PressF5.Yourchannelsshouldbesetupliketheattachedfileatthebottomofthispost,orcompareittoamixer
output:
#amixer
Simplemixercontrol'Master',0
Capabilities:pvolumepvolume-joined
Playbackchannels:Mono
Limits:Playback0-63
Mono:Playback45[71%]
Simplemixercontrol'MasterCaptureMute',0
Capabilities:pswitchpswitch-joined
Playbackchannels:Mono
Mono:Playback[off]
Simplemixercontrol'LineL',0
Capabilities:pswitchpswitch-joined
Playbackchannels:Mono
Mono:Playback[on]
Simplemixercontrol'LineR',0
Capabilities:pswitchpswitch-joined
Playbackchannels:Mono
Mono:Playback[on]
Simplemixercontrol'LineinPre-AMP',0
Capabilities:volumevolume-joined
Playbackchannels:Mono
Capturechannels:Mono
Limits:0-7
BPI-R1MIC
20
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93

Banana Pi BPI-R1 User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI