Difference between pages "BPI-R18-AI(Allwinner SoC-Only 3-Mic Far-Field Dev Kit)" and "Banana Pi BPI-W2"

From Banana Pi Wiki
(Difference between pages)
Jump to: navigation, search
(Resources)
 
(Rasbian)
 
Line 1: Line 1:
 
=Introduction=
 
=Introduction=
  
[[File:BPI-R18-AI_case.jpg|thumb|Overview]]
+
[[File:Banana Pi BPI-W2 1.JPG|thumb|Overview]]
  
BPI-R18-AI Allwinner SoC-Only 3-Mic Far-Field Dev Kit for Amazon AVS with allwnner R18 chip design
+
The Banana Pi BPI-W2 is a router based development board, which can run on a variety of open source operating systems including OpenWrt, Android, and linux. It has 1 Gigabit LAN ports, 1 Gigabit WAN.
  
Allwinner SoC-Only 3-Mic Far-Field Dev Kit is Allwinner’s official development board targeting at audio recognition field, which is certified by Amazon.Powered by Allwinner R18 Quad-core CortexTM-A53, Its rich features and cost-effectiveness make audio intelligence further close to our daily life.  
+
[[File:BPI-W2.jpg]]
  
== Key Features ==
+
==Key Features==
*Integrates all AVS features on a single SoC
 
::Supports for either Linux or Android
 
::High performance with low power consumption
 
*Reserves application headroom for non-AVS applications
 
::Built-in battery-operated designs.
 
::Supports 6 MICs both-side placement,configurable to 6/4/3/2 MICs
 
  
=Hardware=
+
* Realtek RTD1296, Quad-core ARM Cortex-A53
 +
* Mali T820 MP3 GPU
 +
* 2G DDR4 SDRAM
 +
* 8G eMMC flash
 +
* Mini PCIE 2.0 , 1.1 interface ,SDIO,M.2 intereface
 +
* MicroSD slot supports up to 256GB expansion
 +
* 2xMIC int/Audio out
 +
* 2 SATA interface
 +
* 1XGigabit LAN 1x Gigabit WAN
 +
* 1xUSB 3.0 2xUSB 2.0
 +
* HDMI in & HDMI out
 +
* Mini DP
 +
* TYPE C
  
The AVS Developer Kit is a qualified device enables Alexa Voice Service (AVS) that allows developer to interact with Alexa Voice Service hands-free. It includes a 6-mic array and one base board that provides various peripheral interfaces. Services to play music, ask questions, set alarms, play iHeartRadio, news, sports updates, weather and more are available on this kit. With Gmems’s front end algorithm, the developer kit is equipped with most advanced beamforming, noise reduction and echo cancellation technology so that your commands can be easily picked up even under noisy environment or during music is playing.
+
==Getting Start==
  
==hardwares interface==
+
Read more: [[Getting Start with BPI-W2]]
  
Button description:
+
=Hardware=
 +
==Hardware interfact==
  
On mic-board there are 4 buttons, the functionality of each is listed below:
+
[[File:W2interface.jpg]]
  
[[File:R18_pic_7.png]]
+
==Hardware spec==
 +
{| class="wikitable"
 +
|-
 +
| style="background: PaleTurquoise; color: black" colspan="4"| '''HardWare  Specification of Banana pi BPI-W2'''
 +
|-
 +
| Soc || Realtek RTD1296 quad-core ARM A53
 +
|-
 +
| GPU || Mali T820 MP3 GPU
 +
|-
 +
| SDRAM || 2GB DDR4 \(shared with GPU\)
 +
|-
 +
| Power || 12V @ 2A via DC power 5.0mmx2.0mm jack
 +
|-
 +
| Low-level peripherals || 40 Pins Header, 28×GPIO, some of which can be used for specific functions including UART, I2C, SPI, PWM, I2S.
 +
|-
 +
| Onboard Network ||2x 10/100/1000Mbps Ethernet
 +
|-
 +
| Wifi/Bluetooth || **Option** ,not support onboard WIFI & BT
 +
|-
 +
| RGMII || 1 RGMII interface with PIN
 +
|-
 +
| On board Storage || MicroSD \(TF\) card; 2 native SATA 3 6Gbps ;eMMC;SIM card slot
 +
|-
 +
| Display || HDMI \(Type A\) output with HDCP 1.4, resolutions up 1920x1200; MIPI DP
 +
|-
 +
| Video decoder/encode || The Video DSP of RTD1296 is dedicated to manipulating,decoding and encoding of video streams in various formats, e.g. decoding 4K2K H.265,Full HD MPEG1/2/4/H.264/H.264 MVC,AVC/VC-1,VP8,AVS,AVS Plus,HD jpeg,etc.Video decoding and encoding can run simultaneously. support 3D de-intrlacing,video scaling up to 4K2K and so on.
 +
|-
 +
| Aideo decoding ||Audio decoding is carried out by an Audio DSP that is capable of decoding a set of audio formats,e.g. DTS HD,Dolby Digital Plus,TrueHD,and other popular formats.the Audio DSP also performs audio post processing
 +
|-
 +
| Audio || support two audio device HDMI and headphone, also support Audio In/Out with PIN define. support 2 MIC in
 +
|-
 +
| HDMI Out/In || 1* HDMI 2.0a out port and 1* HDMI 2.0a In port
 +
|-
 +
| Audio outputs/Inputs || HDMI, I2S audio,Audio micro out, Audio out/in with PIN define
 +
|-
 +
| M.2 KEY E:PCIE 2.0/USB 2.0 || 1 pcie 2.0 interface
 +
|-
 +
| M.2 KEY E:PCIe 1.1 / SDIO / USB 2.0 || 1 pcie 1.1 and SDIO interface
 +
|-
 +
| USB 3.0 || 1x USB 3.0 host
 +
|-
 +
| USB 2.0 || 2x USB 2.0 OTG, 1 with standard USB port , 1 define with PIN
 +
|-
 +
| M.2 KEY B || 1 * M.2 interface USB 2.0 for 4G with Micro SIM card slot
 +
|-
 +
| Mini DP ||1* Mini DP
 +
|-
 +
| TYPE C || 1 type C interface
 +
|-
 +
| RTC battery || RTC battery power interface
 +
|-
 +
| Buttons || Reset button, Power button, U-boot button
 +
|-
 +
| Leds || Red, Green, Blue
 +
|-
 +
| Other || IR reciever
 +
|-
 +
| Sizes || 148 mm × 100.5mm
 +
|-
 +
| Weight || 100g
 +
|-
 +
|}
  
*VOL- : voluome down;
+
==GPIO PIN define ==
*VOL+ : volume up, force flash;
 
*MUTE : Mute the microphone to enter private mode
 
*POWER : power on/off
 
  
Cable connection:
+
Banana Pi BPI-W2 has a 40-pin GPIO header that matches that of the Model Raspberry Pi 3. Following is the Banana Pi GPIO Pinout:
  
[[File:R18_pic_8.png]]
+
[[File:Gpio define.png]]
  
micro-usb for adb and power supply:
+
{| class="wikitable"
 +
|-
 +
| style="background: PaleTurquoise; color: black" colspan="4"| '''Banana Pi BPI-W2 40-pin GPIO'''
 +
|-
 +
| GPIO Pin Name || Default Function || Function 2:GPIO
 +
|-
 +
| CON1-P01 || VCC-3V3 ||
 +
|-
 +
| CON1-P02 || 5VD ||
 +
|-
 +
| CON1-P03 ||I2C5\_SCL || GPIO13
 +
|-
 +
| CON1-P04 || 5VD ||
 +
|-
 +
| CON1-P05 ||I2C5\_SDA || GPIO14
 +
|-
 +
| CON1-P06 || GND ||
 +
|-
 +
| CON1-P07 || PWM0\_0 || IGPIO21
 +
|-
 +
| CON1-P08 || UR2\_TX || IGPIO3
 +
|-
 +
| CON1-P09 || GND ||
 +
|-
 +
| CON1-P10 || UR2\_RX || IGPIO2
 +
|-
 +
| CON1-P11 || GPIO17 || GPIO17
 +
|-
 +
| CON1-P12 || AO\_BCK || GPIO58
 +
|-
 +
| CON1-P13 ||I2C3\_SDA || GPIO25
 +
|-
 +
| CON1-P14 || GND ||
 +
|-
 +
| CON1-P15 ||I2C3\_SCL || GPIO27
 +
|-
 +
| CON1-P16 || UR2\_RTS || IGPIO5
 +
|-
 +
| CON1-P17 || VCC-3V3 ||
 +
|-
 +
| CON1-P18 || UR2\_CTS || IGPIO4
 +
|-
 +
| CON1-P19 || G\_MOSI || GPIO7
 +
|-
 +
| CON1-P20 || GND ||
 +
|-
 +
| CON1-P21 || G\_MISO || GPIO4
 +
|-
 +
| CON1-P22 || IR\_TX || IGPIO9
 +
|-
 +
| CON1-P23 || G\_SCK || GPIO5
 +
|-
 +
| CON1-P24 || G\_CS || GPIO6
 +
|-
 +
| CON1-P25 || GND ||
 +
|-
 +
| CON1-P26 || GPIO8 || GPIO8
 +
|-
 +
| CON1-P27 || I2C4\_SDA || GPIO12
 +
|-
 +
| CON1-P28 || I2C4\_SCL || GPIO11
 +
|-
 +
| CON1-P29 || GPIO100 || GPIO100
 +
|-
 +
| CON1-P30 || GND ||
 +
|-
 +
| CON1-P31 || AI\_CK || GPIO21
 +
|-
 +
| CON1-P32 || SPDIF || GPIO54
 +
|-
 +
| CON1-P33 || AO\_CK || GPIO59
 +
|-
 +
| CON1-P34 || GND ||
 +
|-
 +
| CON1-P35 || AO\_LRCK || GPIO57
 +
|-
 +
| CON1-P36 || AI\_BCK || GPIO22
 +
|-
 +
| CON1-P37 || AI\_LRCK || GPIO23
 +
|-
 +
| CON1-P38 || AI\_SDO || GPIO24
 +
|-
 +
| CON1-P39 || GND ||
 +
|-
 +
| CON1-P40 || AO\_D0 || GPIO60
 +
|-
 +
|}
  
[[File:R18_pic_9.png]]
+
UART specification:
  
serial comm with Allwinner TF-card uart debugger
+
Theheader CON3 is the UART interface. For developers of Banana Pi, this is an easy way to get the UART console output to check the system status and log message.
  
== Hardware Spec==
+
{| class="wikitable"
[[File:Bpi-r18-avs_SPEC.png]]
+
|-
 +
| style="background: PaleTurquoise; color: black" colspan="4"| '''BPI-W2 Debug UART(CON3)'''
 +
|-
 +
| CON2-P1 || GND
 +
|-
 +
| CON2-P2 || UART0-RX
 +
|-
 +
| CON2-P3 || UART0-TX
 +
|-
 +
|}
  
==Dimensions==
+
==RGMII Interface with PIN define==
[[File:Bpi-r18-avs_Maintop.jpg]]
 
  
== BPI-R18-AI Kit ==
+
BPI-W2 support RGMII Interface with PIN define:
Allwinner SoC-Only 3-Mic Far-Field Dev Kit comes with three components - mainboard,MIC board,Flexible interconnection ribbon cable and copper pillars, power adapter is not included.
 
  
[[File:BPI-r18-avs_kit.JPG]]
+
[[File:Rgmii_interface.png]]
  
=Software=
+
voltage domain is RGMII.
  
==AVS quick start guide==
+
[[File:Rgmii_interface_1.png]]
  
The AVS Developer Kit is a qualified device enables Alexa Voice Service (AVS) that allows developer to interact with Alexa Voice Service hands-free. It includes a 6-mic array and one base board that provides various peripheral interfaces. Services to play music, ask questions, set alarms, play iHeartRadio, news, sports updates, weather and more are available on this kit. With Gmems’s front end algorithm, the developer kit is equipped with most advanced beamforming, noise reduction and echo cancellation technology so that your commands can be easily picked up even under noisy environment or during music is playing.
+
=Software=
  
[[File:Bpi-r18-avs_ai.png]]
+
=Development=
  
*Get start with common tools
+
==Basic Development==
  
1.Via adb
+
=Resources=
  
adb is Android debug bridge. Typeadb shell in command line(windows) or Terminal(MacOS or Linux) to enter debug mode,developers can type commands here.:
+
==Source code==
  
[[File:R18_pic_1.png]]
+
*Source code on github:https://github.com/BPI-SINOVOIP/BPI-W2-bsp
  
2.Via serial Com
+
==Documents==
  
on windows, you need tools like SecureCRT or putty or MobaXterm to use serial port. On Ubuntu, minicom is the most popular application to debug via serial comm. This is the setting on MobaXterm:
+
*BPI-W2 Realtek 1296 documents download link
 +
::[[File:1296_doc.png]]
 +
:: google drive :https://drive.google.com/file/d/1PLlU5d0INA2U6Er5unEC7-FpnAmkSh7x/view?usp=sharing
 +
:: baidu cloud :https://pan.baidu.com/s/1geV5JNl
 +
*SATA-RSM-C052-X22XX spec
 +
**download link: https://drive.google.com/file/d/0B4PAo2nW2KfncWNYV1l5MkpiQTQ/view?usp=sharing
  
[[File:R18_pic_2.png]]
+
=Image Release=
 
 
3.push and pull files
 
 
 
adb push and adb pull commands can push data from PC to developer kit and pull data from developer kit to PC.
 
 
 
[[File:R18_pic_3.png]]
 
 
 
just drag the file to command line tool, it will display the directory automatically.
 
 
 
Connect to Internet:
 
 
 
Without internet, developer can’t enjoy the Alexa Voice Service. Type the command below to connect to Internet: wifi_connect_ap_test “ssid” “passwd” ssid and passwd are your network name and your password respectively.
 
 
 
[[File:R18_pic_4.png]]
 
 
 
'''Use SampleApp:'''
 
 
 
SampleApp is the application integrated with voice recording, Sensory’s wake word engine, Gmems’s front end algorithm and Alexa Voice Service. Developer can start hands-free experience with AVS Developer Kit by following commands:
 
  
TZ=UTC SampleApp /etc/avs/test.json /etc/avs/ DEBUG9
+
==Android==
 +
===Android 7.1.1===
  
/etc/avs/test.json is the configuration file includes device registration information and user CA certificates.
+
* Image Link:
 +
**This release is for banana pi W2 board which is based on Realtek RTD1296, and it is based on Android 7.1.1 peration system.
 +
**Baidu cloud:https://pan.baidu.com/s/1WP_TRe9PeNZvfi5bEJy0AQ
 +
**Google Drive:
 +
* Forum thread:
 +
** http://forum.banana-pi.org/t/bpi-w2-new-image-android-7-1-1-v0-1-beta-2018-5-29/5867
  
[[File:R18_pic_5.png]]
+
===Android 6.0.1===
 +
* Image Link:
 +
**This release is for banana pi W2 board which is based on Realtek RTD1296, and it is based on Android 6.0 Operation system.
 +
**Baidu cloud:https://pan.baidu.com/s/1i-J71bup8jr8ML7pSN3wtw
 +
**Google Drive:https://drive.google.com/file/d/16DRWS1FcdduG3c_4YWnbGXj_ayLmdsoN/view?usp=sharing
 +
* Forum thread:  
 +
** http://forum.banana-pi.org/t/banana-pi-bpi-w2-with-realtek-new-image-release-android-6-0-v1-0/5394
 +
** video demo on youtube: https://www.youtube.com/watch?v=jePsbqgp2zk&feature=youtu.be
  
'''Link SampleApp with your Amazon account:'''
+
==OpenWRT==
 +
*Image Link:
 +
**Baidu Drive: https://pan.baidu.com/s/1Rs9F46wNJibORaeCfVh4wg  PinCode:1w4w
 +
**Google Drive:https://drive.google.com/file/d/10kfP142Jw0sA92uwaIYZt7CeXcDKelO1/view?usp=sharing
 +
* Forum thread:
 +
**http://forum.banana-pi.org/t/bpi-w2-new-image-burn-openwrt-with-linux-kernel-4-4-2018-4-25/5510
  
1.adb pull /etc/avs/test.json /home/AVS
+
==Ubuntu ==
 +
*2018-09-17 update.This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Ubuntu 18.04 operation system with kernel 4.9.119.
 +
*Image Link:
 +
::W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map
 +
::Baidu Drive: https://pan.baidu.com/s/1iLOa1MOgtSqY6dVsQ_SyQg
 +
::Google Drive:https://drive.google.com/open?id=1PQO9tA4w_wJvDIz64xJrXzSNS1g4GSlB
 +
* Forum thread: http://forum.banana-pi.org/t/bananapi-w2-ubuntu-18-04-new-image-release-2018-09-17/6790
 +
**http://forum.banana-pi.org/t/bpi-w2-new-image-how-to-make-and-run-the-64-bit-ubuntu-16-04-on-sd-card-2018-4-28/5546
  
pull the default test.json file to /home/AVS/ directory.
+
==Debian ==
 +
*2018-09-18 update.This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Debian 9 operation system with kernel 4.9.119.
 +
*image Link:
 +
::W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map#Debian_9
 +
::Baidu Drive:https://pan.baidu.com/s/1bmTektF0ufRL9_FOpdoO2w
 +
::Google Drive:https://drive.google.com/open?id=1z1l56qX7BhsD44ha4IGDBhi-_ZqwCjoC
 +
::Forum pthread: http://forum.banana-pi.org/t/banana-pi-bpi-w2-new-image-debian-9-linux-image-release-2018-09-18/6797
  
The test.json layout is as follows:
+
==Rasbian==
 +
*2018-09-17 uptate ,This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Raspbian 9.4 operation system with kernel 4.9.119.
 +
::BPI-W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map#Raspbian_9.4
 +
::Baidu Drive:https://pan.baidu.com/s/1aL5ZsHIRwM-1rvnZDiR3EA
 +
::Google Drive:https://drive.google.com/open?id=11-WbfJK0jNVgutg9UVKfiIIJtfHXi-9j
 +
::Forum pthread : http://forum.banana-pi.org/t/banana-pi-bpi-w2-new-image-raspbian-9-4-new-image-release-2018-09-17/6824
  
{
+
==OpenSUSE==
"authDelegate":{
+
*2018-09-25 uptate,This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on OpenSUSE operation system with kernel 4.9.119.
"clientSecret":"<Client Secret for your device from the Amazon Developer Portal>",
+
::BPI-W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map
"deviceSerialNumber":"<A unique value that you create, similar to a SKU or UPC. E.g. "123456">",
+
::Baidu Drive:https://pan.baidu.com/s/1UZl-UFUugPhCPaFHBB9_GA
"refreshToken":"${SDK_CONFIG_REFRESH_TOKEN}",
+
::Google Drive: https://drive.google.com/open?id=1j_486I9v2VuPXslWyk9OlmOIPMxcxZGs
"clientId":"<Client ID for your device from the Amazon Developer Portal>",
+
::Forum pthrad:http://forum.banana-pi.org/t/bananapi-bpi-w2-new-image-opensuse-release-2018-09-25/6851
"productId":"<Product ID for your device from the Amazon Developer Portal>"
 
},
 
"alertsCapabilityAgent":{
 
"databaseFilePath":"/<absolute-path-to-db-directory>/<db-file-name>",
 
"alarmSoundFilePath":"/<absolute-path-to-alarm-sound>/alarm_normal.mp3",
 
"alarmShortSoundFilePath":"/<absolute-path-to-short-alarm-sound>/alarm_short.wav",
 
"timerSoundFilePath":"/<absolute-path-to-timer-sound>/timer_normal.mp3",
 
"timerShortSoundFilePath":"/<absolute-path-to-short-timer-sound>/timer_short.wav"
 
},
 
"settings":{
 
"databaseFilePath":"/<absolute-path-to-db-directory>/<db-file-name>",
 
"defaultAVSClientSettings":{
 
"locale":"en-US"
 
}
 
},
 
"certifiedSender":{
 
"databaseFilePath":"/<absolute-path-to-db-directory>/<db-file-name>"
 
}
 
}
 
  
NOTE: The deviceSerialNumber is a unique identifier that you create. It is not provided by Amazon or Allwinner.
+
==RPiTC==
 
+
*2018-09-03 update :RPiTCv3_1.12-demo-bpi-w2-beta with Linux kernel 4.9.119
The refreshToken is the only parameter related to your own account, please follow below steps to create your own refreshToken.
+
*image download:
You can keep other parameters same as the default test.json.
+
::google drive:https://drive.google.com/open?id=1sWjMuKncqDDsb3cGmg22oJs-U2fZjOv0
 
+
::baidu cloud: https://pan.baidu.com/s/1sd9hoOwyfAxWlGroDMOj4A
::1. You can keep other parameters same as the default test.json.
+
::more abot RPiTC : http://rpitc.blogspot.com/
::2. install python and pip on your Linux environment, then install Flask and requests: pip install flask requests if there is any other missing python packages.please install them in the similar way.
+
::Forum pthread:http://forum.banana-pi.org/t/bpi-w2-new-iamge-rpitcv3-1-12-demo-bpi-w2-beta-2018-09-03/6686
::3. Keep the same product ID, client ID and client secret in the default test.json, put the test.json under the same directory of AuthServer.py
 
::4. start AuthServer by running: python AuthServer.py, You should see a message that indicates the server is running.
 
::5. Open your favorite browser and navigate to: [http://localhost:3000](http://localhost:3000)
 
::6. Follow the on-screen instructions.
 
::7. After you've entered your credentials, the server should terminate itself, and test.json will be populated with your refresh toke
 
::8. adb push C:\test.json /etc/avs/ push the new test.json to reference kit.
 
::9. run SampleApp again and enjoy your iHeartRadio or Kindle or Amazon music.
 
 
 
'''Offline quick test tools:'''
 
 
 
sample-wakeup is an offline tool to test wake-up rate for “Alexa” wake word. The purpose of this tool is to avoid network issue for Chinese developers. Developers can quickly test the performance of front end algorithm and Sensory’s Alexa wake word engine without connecting to Internet. Alexa Voice Service is not supported under offline mode. 
 
To use it, simply type the following commands:
 
 
 
sample-wakeup /etc/avs
 
 
 
[[File:R18_pic_6.png]]
 
 
 
'''Flash the recovery image:'''
 
 
 
Necessary tools:
 
 
 
1.PhoenixSuit--------Flash tool on windows
 
 
 
1.LiveSuit-------------Flsh tool on Ubuntu
 
 
 
2.adb driver
 
 
 
3.mini-USB cable
 
 
 
4.recovery.iso------------firmware image
 
 
 
 
 
Steps:
 
 
 
1.install the software, please see Livesuit.doc and PhoenixSuitUserManualV1.0.doc for more information.
 
 
 
2.download the image from our website, select the image in PhoenixSuit and Livesuit.
 
 
 
3.Unplug power cable and mini-USB from the board, press the VOL+ button and hold it until plug in the mini-USB cable to PC, release the button, it should ask if format the device is necessary before start flashing.
 
 
 
Note: documents, configuration file, software, scripts, drivers mentioned in this guide are shipped with the User guide.
 
 
 
==amazon AVS project==
 
[[File:BPI-R18-AVS_10.jpg]]
 
 
 
https://developer.amazon.com/alexa-voice-service/dev-kits/allwinner-3-mic
 
 
 
==Allwinner ==
 
 
 
[[File:Allwinner.png]]
 
 
 
http://allwinnertech.com/index.php?c=market&a=index&id=59
 
 
 
=Resources=
 
*Allwinner SoC-Only 3-Mic Far-Field Dev Kit quick start document:http://www.banana-pi.org/images/r18avs/AVS-quickstartguide.pdf
 
*R18 chip brief:http://www.allwinnertech.com/uploads/pdf/2017081109410263.pdf
 
*AVS project on amazon : https://developer.amazon.com/alexa-voice-service/dev-kits/allwinner-3-mic
 
*AVS project on allwinner official: http://www.allwinnertech.com/index.php?c=market&a=index&id=59
 
*BPI-R18-AVS MIC AVS A/V demo ,use ubuntu 16.04 linux kernel 4.4.89:https://www.youtube.com/watch?v=TN02Q1pWM0I&feature=youtu.be
 
*[https://pt.aliexpress.com/store/product/Placa-de-desenvolvimento-com-Allwinner-SoC-Allwinner-oficial-Apenas-3-Mic-Far-Dev-Kit-de-Campo/302756_32848216408.html?spm=a2g03.12010612.0.0.32177559gDfJw5 Easy to buy sample from aliexpress]
 
 
 
=Image Release=
 
==zmazon AVS image ==
 
  
*2018-05-17 update Allwinner SoC-Only 3-Mic Far-Field Dev Kit image
+
=FAQ=
::how to use please see : 3.1 AVS quick start guide
 
::tina_tulip-noma_card0 2018-05-17.img
 
::google driver download link:https://drive.google.com/file/d/1ApEv0g1fD7n3kZh6j_m2Skb8WcEd5sKO/view?usp=sharing
 
::baidu cloud download link:https://pan.baidu.com/s/1s8rPzzxnTTE0BlS7Z9I0xA
 
::forum pthread:http://forum.banana-pi.org/t/bpi-r18-new-image-allwinner-soc-only-3-mic-far-field-dev-kit-image-20180206/4860
 
  
 +
*1. Now we support to '''use bpi-copy to burn image to sd card''', before this, we need to update our spi rom code, please watch the attachment to update your W2 spi rom code.
 +
* SPI ROM Tool:
 +
::Baidu Drive:https://pan.baidu.com/s/1017nmgw6ZVb5_NgLDz54HQ
 +
::Google Drive: https://drive.google.com/open?id=1pq4MDKZi0KhyERB5xNGjTynhFWjXN_jm
  
*2018-02-06 update Allwinner SoC-Only 3-Mic Far-Field Dev Kit image
+
* SPI ROM Image:
::how to use please see : 3.1 AVS quick start guide
+
::Baidu Drive:https://pan.baidu.com/s/1rpfpWK8eoOdPhKwyWoR2Tw
::R18 tina_tulip-noma_uart0_wufan_camera_20180206
+
::Google Drive: https://drive.google.com/open?id=1Ziz436kDL0kdojECB5bejVd9krzKp0z9
::google driver download link:https://drive.google.com/file/d/1yugHTuX2OXHQkggb52FQfHOVUVrtjKDH/view?usp=sharing
 
::baidu cloud download link:https://pan.baidu.com/s/1ghjcQsV
 
::forum pthread:http://forum.banana-pi.org/t/bpi-r18-new-image-allwinner-soc-only-3-mic-far-field-dev-kit-image-20180206/4860
 
  
==Ubuntu==
+
* How-To Update W2 SPI ROM:
===kernel 4.4===
+
::Baidu Drive:https://pan.baidu.com/s/1CZdY_4yFk5r5MSxoog9uOg
*2018-4-17 update Ubuntu 16.04.4 with linux kernel 4.4.89
+
::Google Drive: https://drive.google.com/open?id=1kXaI5eYJ4cNLnhfr4rTwUVrENbMc1q-E
::image name:2018-04-17-ubuntu-16.04-mate-desktop-demo3-k4.4.89-vdpau-3-mic-docker-bpi-r18-avs-aarch64-sd-emmc.img.zip
 
::Google Drive: https://drive.google.com/open?id=1dlfo9LGNcrc-_cpKd1uJnrNx0PdonBnK
 
::MD5: 4b7e163d260e58a39ba8905e7ed39943
 
::Forum pthread:http://forum.banana-pi.org/t/bpi-r18-avs-new-image-ubuntu-16-04-4-with-linux-kernel-4-4-89-2018-4-17/5435
 

Revision as of 22:18, 24 September 2018

Introduction

Overview

The Banana Pi BPI-W2 is a router based development board, which can run on a variety of open source operating systems including OpenWrt, Android, and linux. It has 1 Gigabit LAN ports, 1 Gigabit WAN.

File:BPI-W2.jpg

Key Features

  • Realtek RTD1296, Quad-core ARM Cortex-A53
  • Mali T820 MP3 GPU
  • 2G DDR4 SDRAM
  • 8G eMMC flash
  • Mini PCIE 2.0 , 1.1 interface ,SDIO,M.2 intereface
  • MicroSD slot supports up to 256GB expansion
  • 2xMIC int/Audio out
  • 2 SATA interface
  • 1XGigabit LAN 1x Gigabit WAN
  • 1xUSB 3.0 2xUSB 2.0
  • HDMI in & HDMI out
  • Mini DP
  • TYPE C

Getting Start

Read more: Getting Start with BPI-W2

Hardware

Hardware interfact

W2interface.jpg

Hardware spec

HardWare Specification of Banana pi BPI-W2
Soc Realtek RTD1296 quad-core ARM A53
GPU Mali T820 MP3 GPU
SDRAM 2GB DDR4 \(shared with GPU\)
Power 12V @ 2A via DC power 5.0mmx2.0mm jack
Low-level peripherals 40 Pins Header, 28×GPIO, some of which can be used for specific functions including UART, I2C, SPI, PWM, I2S.
Onboard Network 2x 10/100/1000Mbps Ethernet
Wifi/Bluetooth **Option** ,not support onboard WIFI & BT
RGMII 1 RGMII interface with PIN
On board Storage MicroSD \(TF\) card; 2 native SATA 3 6Gbps ;eMMC;SIM card slot
Display HDMI \(Type A\) output with HDCP 1.4, resolutions up 1920x1200; MIPI DP
Video decoder/encode The Video DSP of RTD1296 is dedicated to manipulating,decoding and encoding of video streams in various formats, e.g. decoding 4K2K H.265,Full HD MPEG1/2/4/H.264/H.264 MVC,AVC/VC-1,VP8,AVS,AVS Plus,HD jpeg,etc.Video decoding and encoding can run simultaneously. support 3D de-intrlacing,video scaling up to 4K2K and so on.
Aideo decoding Audio decoding is carried out by an Audio DSP that is capable of decoding a set of audio formats,e.g. DTS HD,Dolby Digital Plus,TrueHD,and other popular formats.the Audio DSP also performs audio post processing
Audio support two audio device HDMI and headphone, also support Audio In/Out with PIN define. support 2 MIC in
HDMI Out/In 1* HDMI 2.0a out port and 1* HDMI 2.0a In port
Audio outputs/Inputs HDMI, I2S audio,Audio micro out, Audio out/in with PIN define
M.2 KEY E:PCIE 2.0/USB 2.0 1 pcie 2.0 interface
M.2 KEY E:PCIe 1.1 / SDIO / USB 2.0 1 pcie 1.1 and SDIO interface
USB 3.0 1x USB 3.0 host
USB 2.0 2x USB 2.0 OTG, 1 with standard USB port , 1 define with PIN
M.2 KEY B 1 * M.2 interface USB 2.0 for 4G with Micro SIM card slot
Mini DP 1* Mini DP
TYPE C 1 type C interface
RTC battery RTC battery power interface
Buttons Reset button, Power button, U-boot button
Leds Red, Green, Blue
Other IR reciever
Sizes 148 mm × 100.5mm
Weight 100g

GPIO PIN define

Banana Pi BPI-W2 has a 40-pin GPIO header that matches that of the Model Raspberry Pi 3. Following is the Banana Pi GPIO Pinout:

Gpio define.png

Banana Pi BPI-W2 40-pin GPIO
GPIO Pin Name Default Function Function 2:GPIO
CON1-P01 VCC-3V3
CON1-P02 5VD
CON1-P03 I2C5\_SCL GPIO13
CON1-P04 5VD
CON1-P05 I2C5\_SDA GPIO14
CON1-P06 GND
CON1-P07 PWM0\_0 IGPIO21
CON1-P08 UR2\_TX IGPIO3
CON1-P09 GND
CON1-P10 UR2\_RX IGPIO2
CON1-P11 GPIO17 GPIO17
CON1-P12 AO\_BCK GPIO58
CON1-P13 I2C3\_SDA GPIO25
CON1-P14 GND
CON1-P15 I2C3\_SCL GPIO27
CON1-P16 UR2\_RTS IGPIO5
CON1-P17 VCC-3V3
CON1-P18 UR2\_CTS IGPIO4
CON1-P19 G\_MOSI GPIO7
CON1-P20 GND
CON1-P21 G\_MISO GPIO4
CON1-P22 IR\_TX IGPIO9
CON1-P23 G\_SCK GPIO5
CON1-P24 G\_CS GPIO6
CON1-P25 GND
CON1-P26 GPIO8 GPIO8
CON1-P27 I2C4\_SDA GPIO12
CON1-P28 I2C4\_SCL GPIO11
CON1-P29 GPIO100 GPIO100
CON1-P30 GND
CON1-P31 AI\_CK GPIO21
CON1-P32 SPDIF GPIO54
CON1-P33 AO\_CK GPIO59
CON1-P34 GND
CON1-P35 AO\_LRCK GPIO57
CON1-P36 AI\_BCK GPIO22
CON1-P37 AI\_LRCK GPIO23
CON1-P38 AI\_SDO GPIO24
CON1-P39 GND
CON1-P40 AO\_D0 GPIO60

UART specification:

Theheader CON3 is the UART interface. For developers of Banana Pi, this is an easy way to get the UART console output to check the system status and log message.

BPI-W2 Debug UART(CON3)
CON2-P1 GND
CON2-P2 UART0-RX
CON2-P3 UART0-TX

RGMII Interface with PIN define

BPI-W2 support RGMII Interface with PIN define:

Rgmii interface.png

voltage domain is RGMII.

Rgmii interface 1.png

Software

Development

Basic Development

Resources

Source code

Documents

  • BPI-W2 Realtek 1296 documents download link
1296 doc.png
google drive :https://drive.google.com/file/d/1PLlU5d0INA2U6Er5unEC7-FpnAmkSh7x/view?usp=sharing
baidu cloud :https://pan.baidu.com/s/1geV5JNl

Image Release

Android

Android 7.1.1

Android 6.0.1

OpenWRT

Ubuntu

  • 2018-09-17 update.This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Ubuntu 18.04 operation system with kernel 4.9.119.
  • Image Link:
W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map
Baidu Drive: https://pan.baidu.com/s/1iLOa1MOgtSqY6dVsQ_SyQg
Google Drive:https://drive.google.com/open?id=1PQO9tA4w_wJvDIz64xJrXzSNS1g4GSlB

Debian

  • 2018-09-18 update.This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Debian 9 operation system with kernel 4.9.119.
  • image Link:
W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map#Debian_9
Baidu Drive:https://pan.baidu.com/s/1bmTektF0ufRL9_FOpdoO2w
Google Drive:https://drive.google.com/open?id=1z1l56qX7BhsD44ha4IGDBhi-_ZqwCjoC
Forum pthread: http://forum.banana-pi.org/t/banana-pi-bpi-w2-new-image-debian-9-linux-image-release-2018-09-18/6797

Rasbian

  • 2018-09-17 uptate ,This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on Raspbian 9.4 operation system with kernel 4.9.119.
BPI-W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map#Raspbian_9.4
Baidu Drive:https://pan.baidu.com/s/1aL5ZsHIRwM-1rvnZDiR3EA
Google Drive:https://drive.google.com/open?id=11-WbfJK0jNVgutg9UVKfiIIJtfHXi-9j
Forum pthread : http://forum.banana-pi.org/t/banana-pi-bpi-w2-new-image-raspbian-9-4-new-image-release-2018-09-17/6824

OpenSUSE

  • 2018-09-25 uptate,This release is for banana pi W2 board which is based on realtek RTD1296, and it is based on OpenSUSE operation system with kernel 4.9.119.
BPI-W2 Features Map: http://wiki.banana-pi.org/W2_Image_Map
Baidu Drive:https://pan.baidu.com/s/1UZl-UFUugPhCPaFHBB9_GA
Google Drive: https://drive.google.com/open?id=1j_486I9v2VuPXslWyk9OlmOIPMxcxZGs
Forum pthrad:http://forum.banana-pi.org/t/bananapi-bpi-w2-new-image-opensuse-release-2018-09-25/6851

RPiTC

  • 2018-09-03 update :RPiTCv3_1.12-demo-bpi-w2-beta with Linux kernel 4.9.119
  • image download:
google drive:https://drive.google.com/open?id=1sWjMuKncqDDsb3cGmg22oJs-U2fZjOv0
baidu cloud: https://pan.baidu.com/s/1sd9hoOwyfAxWlGroDMOj4A
more abot RPiTC : http://rpitc.blogspot.com/
Forum pthread:http://forum.banana-pi.org/t/bpi-w2-new-iamge-rpitcv3-1-12-demo-bpi-w2-beta-2018-09-03/6686

FAQ

  • 1. Now we support to use bpi-copy to burn image to sd card, before this, we need to update our spi rom code, please watch the attachment to update your W2 spi rom code.
  • SPI ROM Tool:
Baidu Drive:https://pan.baidu.com/s/1017nmgw6ZVb5_NgLDz54HQ
Google Drive: https://drive.google.com/open?id=1pq4MDKZi0KhyERB5xNGjTynhFWjXN_jm
  • SPI ROM Image:
Baidu Drive:https://pan.baidu.com/s/1rpfpWK8eoOdPhKwyWoR2Tw
Google Drive: https://drive.google.com/open?id=1Ziz436kDL0kdojECB5bejVd9krzKp0z9
  • How-To Update W2 SPI ROM:
Baidu Drive:https://pan.baidu.com/s/1CZdY_4yFk5r5MSxoog9uOg
Google Drive: https://drive.google.com/open?id=1kXaI5eYJ4cNLnhfr4rTwUVrENbMc1q-E