VIA Technologies VAB-820 Development Manual

  • Hello! I am an AI chatbot trained to assist you with the VIA Technologies VAB-820 Development Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
DEVELOPMENT GUIDE
VIA VAB-820
Android BSP v5.0.9
1.00-12202018-135700
Copyright
Copyright © 2018 VIA Technologies Incorporated. All rights reserved.
No part of this document may be reproduced, transmied, transcribed, stored in a retrieval system, or translated into any language, in any
form or by any means, electronic, mechanical, magnec, opcal, chemical, manual or otherwise without the prior wrien permission of
VIA Technologies, Incorporated.
Trademarks
All brands, product names, company names, trademarks and service marks are the property of their respecve holders.
Disclaimer
VIA Technologies makes no warranes, implied or otherwise, in regard to this document and to the products described in this document.
The informaon provided in this document is believed to be accurate and reliable as of the publicaon date of this document. However,
VIA Technologies assumes no responsibility for the use or misuse of the informaon (including use or connecon of extra device/
equipment/add-on card) in this document and for any patent infringements that may arise from the use of this document. The informaon
and product specicaons within this document are subject to change at any me, without noce and without obligaon to nofy any
person of such change.
VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any me without prior noce.
VIA VAB-820 Android BSP v5.0.9 Development Guide
Version Date Remarks
1.00 12/20/2018 Inial release
Revision History
iii
VIA VAB-820 Android BSP v5.0.9 Development Guide
Table of Contents
1. Introducon ����������������������������������������������������������������������������������������������������������������������� 1
1�1 BSP Package Contents �������������������������������������������������������������������������������������������������������������������������� 1
1�1�1 Source Code Folder Contents �������������������������������������������������������������������������������������������������������� 1
1�1�2 Firmware Folder Contents ������������������������������������������������������������������������������������������������������������� 1
1�1�3 Document Folder Contents ������������������������������������������������������������������������������������������������������������ 1
1�1�4 Tools Folder Contents �������������������������������������������������������������������������������������������������������������������� 2
1.2 VersionInformaonandSupportedFeatures �������������������������������������������������������������������������������������� 3
2. BuildEnvironmentSetup �������������������������������������������������������������������������������������������������� 4
2.1 ConguringLinuxHostMachine ���������������������������������������������������������������������������������������������������������� 4
3� Image Build ����������������������������������������������������������������������������������������������������������������������� 5
3.1 ExtracngtheVIAVAB-820BSP ����������������������������������������������������������������������������������������������������������� 5
3.2 DownloadingtheSourceCodeofAndroid6.0.1 ���������������������������������������������������������������������������������� 5
3.3 InstallingtheSourceCodePatch ���������������������������������������������������������������������������������������������������������� 5
3.4 BuildinganAndroidImage ������������������������������������������������������������������������������������������������������������������� 5
iv
1
VIA VAB-820 Android BSP v5.0.9 Development Guide
1� Introducon
ThisDevelopmentGuideexplainshowtosetupthenecessarybuildenvironmentinorderforuserstocustomize
theAndroidsourcecodeandcreatetheirownsystemimagefortheVIAVAB-820board.
TheVIAVAB-820AndroidBSPv5.0.9isdevelopedbasedontheNXPandroid_M6.0.1_1.0.0-ga(Android6.0
Marshmallow)andenableshardwarefeaturesthataredenedontheVIAVAB-820board.
1�1 BSP Package Contents
Therearefourfoldersinthepackageaslistedbelow.
VIA VAB-820 Android BSP contents
1�1�1 Source Code Folder Contents
VAB-820_Android_ source_code_patch.zip: IncludesAndroid6.0.1sourcecodedownloadscriptles,NXP
Androidpatchleandroid_M6.0.1_1.0.0-ga_core_source.tar.gz,theVIAVAB-820Androidsourcecodepatch
leandImagebuildingscriptles.
Smart_ETK_v1.0_SourceCode.zip:istheSmartETKdemoprogramsourcecode.
1�1�2 Firmware Folder Contents
Images_autoinstall_sd.zip:TheAndroidEVKsystemimageandinstallaonscriptles.
1�1�3 Document Folder Contents
VAB-820_Android_EVK_v5.0.9_Quick_Start_Guide _v1.00_20181220.pdf: TheQuickStartGuideprovides
anoverviewofhowtoboottheAndroidEVKsystemimageontheVIAVAB-820boardandcongurethe
supportedhardwarefunconsinthebuild.
VAB-820_Android_BSP_v5.0.9_Development_Guide _v1.00_20181220pdf: TheDevelopmentGuideexplains
howtosetupthenecessarybuildenvironmentinorderforuserstocustomizetheAndroidsourcecodeand
createtheirownsystemimagefortheVIAVAB-820board.
Source code folder Descripon
VAB-820_Android_source_code_patch.zip AndroidsourcecodepatchlesandImage
buildingscriptles
Smart_ETK_v1.0_SourceCode.zip SmartETKdemoprogramsourcecode
Firmware folder Descripon
Images_autoinstall_sd.zip AndroidEVKsystemimageandinstallaon
scriptles
Document folder Descripon
VAB-820_Android_EVK_v5.0.9_Quick_Start_
Guide_v1.00_20181220.pdf
QuickStartGuide
VAB-820_Android_BSP_v5.0.9_Development_
Guide_v1.00_20181220.pdf
DevelopmentGuide
Smart_ETK_SDK_Programming_Guide_v1.00_
20170811
SmartETKSDKProgrammingGuide
Tools folder Descripon
VAB-820_Smart_ETK_Demo_v1.0.apk SmartETKdemoprogram
BluetoothSPPTest.apk BluetoothSPPtesngprogram
2
VIA VAB-820 Android BSP v5.0.9 Development Guide
Smart_ETK_SDK_Programming_Guide_v1 .00_20170811.pdf: TheProgrammingGuideexplainshowtobuild
theSmartETKprogramandintroducesafullyfunconalsetofAPIforthedierentVIAboardsorsystems.
1�1�4 Tools Folder Contents
VAB-820_Smart_ETK_Demo_v1.0.apk: istheSmartETKdemoprogram.
BluetoothSPPTest.apk:istheBluetoothSPPproletestprogram.
3
VIA VAB-820 Android BSP v5.0.9 Development Guide
1�2 VersionInformaonandSupportedFeatures
U-Bootversion:2015.04
Kernelversion:3.14.52
Evaluaonimage:AndroidMarshmallow6.0
DevelopmentbasedonNXPandroid_M6.0.1_1.0.0-ga(Android6.0Marshmallow)
SupportsSPIwitheMMCboot
SupportsHDMIdisplay
SupportsHDMIaudiooutput
SupportsAUOLVDScapacivetouchpanels(throughUSBinterface)
º AUO10.4″G104XVN01.0(1024×768)
º AUO7″G070VW01(800×480)
SupportsDualDisplay(CloneMode)
SupportsCVBS&S-Video
SupportsCOM1DTEmode,COM2TX/RXonly
SupportstwoFlexCANTX/RX
SupportsGigabitEthernet
SupportsLine-in,Line-out,andMic-in
SupportsVIAVNT9271USBWi-Fidongle
SupportsVIAEMIO-1533USBWi-Fimodule
SupportsVIAEMIO-1541miniPCIeWi-Fimodule
SupportsVIAEMIO-2531miniPCIeWi-Fi&Bluetoothmodule
º SupportsBluetoothA2DPandSPPprole
SupportsVIAEMIO-5531USBWi-Fi&Bluetoothmodule
º SupportsBluetoothA2DPandSPPprole
SupportsVIAEMIO-2550miniPCIeMobileBroadbandmodule
SupportsSmartETKv1.0:Watchdogmer,GPIO,UART,andFlexCAN
SupportsOTA(Over-The-Airtechnology)
SupportsshutdownoponinQuickSengs
SupportsEthernetconguraoninSengs
4
VIA VAB-820 Android BSP v5.0.9 Development Guide
2� BuildEnvironmentSetup
Thisseconguidesyouthroughsengupthebuildenvironmentfordevelopment.Allinstruconsarebased
onusingUbuntu14.04LTS(64-bit).
Tomakesurethatthebuildprocesscompletessuccessfully,werecommendatleast120GBofdiskspaceand
15GBofcombinedmemoryandswapspaceonthehostmachine.
2�1 ConguringLinuxHostMachine
ThefollowingpackagesarerequiredfortheAndroiddevelopmentenvironment.Therequiredpackagescanbe
installedusingthecommandsbelow.Togetmoreinformaon,pleasevisittheAndroidwebsiteat
hps://source.android.com/setup/build/inializing
TheOpenJDK7isnotincludedintheUbuntu14.04defaultinstallaon.Therststepistoaddanewserver
manuallybyusingthefollowingcommands:
ToinstalltheOpenJDK7,usethefollowingcommands:
ThefollowingpackagesarerequiredfortheAndroiddevelopmentenvironment.Toinstalltherequired
packagesontheUbuntu14.04,usethefollowingcommand:
$ sudo apt-get install openjdk-7-jre
$ sudo apt-get install openjdk-7-jdk
$ sudo apt-get install git gnupg ex bison gperf build-essential zip curl zlib1g-dev libc6-
dev libncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-
glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
zlib1g-dev:i386 uuid-dev liblzo2-dev libz-dev libc6-dev-i386 lib32z1 gcc g++ lzop u-boot-tools
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
5
VIA VAB-820 Android BSP v5.0.9 Development Guide
3� Image Build
TheseconexplainshowtobuildtheU-BootbinaryandAndroidlesystemfortheVIAVAB-820board.
3�1 ExtracngtheVIAVAB-820BSP
UsethefollowingcommandtoextractthecontentsoftheBSP.
3�2 DownloadingtheSourceCodeofAndroid6.0.1
DownloadingtheAndroid6.0.1sourcecodetotheBSP/srcfoldercantakeseveralhoursdependingonyour
internetconnecon.
*Note: YouneedtosetupaGitaccountbeforedownloadingthesourcecode.
UsethefollowingcommandstodownloadthesourcecodeofAndroid6.0.1:
3�3 InstallingtheSourceCodePatch
UsethefollowingcommandtoinstalltheNXPandVIAVAB-820sourcecodepatch.
3�4 BuildinganAndroidImage
UsethefollowingcommandstobuildtheAndroidimage,thecompilingprocesswilltakeseveralhours.
Aerthecompilaon,the src/out/target/product/vab820/directorywillcontaintheresulngbinaries,as
showninthetablebelow.
Binary les generated
$ unzip VAB-820_Android_source_code_patch.zip
$ ./patch_fsl_via.sh
Binary Descripon
u-boot.imx U-BootbootloaderforiMX6Q
bspinst-vab820.img BSPautoinstallimageforiMX6Q
bspinst-vab820-6qp.img BSPautoinstallimageforiMX6QP
boot-vab820.img KernelforiMX6Q
boot-vab820-6qp.img KernelforiMX6QP
system�img Androidsystemimage
recovery-vab820.img RecoveryimageforiMX6Q
recovery-vab820-6qp.img RecoveryimageforiMX6QP
$ git cong –-global user.email [email protected]
$ git cong –-global user.name “Your Name”
$ cd Script
$ ./download_source_Android6.0.sh
$ cd ../src
$ source build/envsetup.sh
$ lunch vab820-userdebug
$ make –j8
1F, 531 Zhong-zheng Road,
Xindian Dist., New Taipei City 231
Taiwan
Tel: 886-2-2218-5452
Fax: 886-2-2218-9860
940 Mission Court
Fremont, CA 94539,
USA
Tel: 1-510-687-4688
Fax: 1-510-687-4654
Email: embedded@viatech.com
Taiwan Headquarters USA
Europe
Tsinghua Science Park Bldg. 7
No. 1 Zongguancun East Road,
Haidian Dist., Beijing, 100084
China
Tel: 86-10-59852288
Fax: 86-10-59852299
Email: embedded@viatech.com.cn
3-15-7 Ebisu MT Bldg. 6F,
Higashi, Shibuya-ku
Tokyo 150-0011
Japan
Tel: 81-3-5466-1637
Fax: 81-3-5466-1638
Email: embedded@viatech.co.jp
China
Japan
/