VIA Technologies ARTiGO A630 User manual

DEVELOPMENT GUIDE
ARTiGO A630
Linux EVK v1.0.1
1.00-08292017-093200

Copyright
Copyright ©2017 VIA Technologies Incorporated. All rights reserved.
No part of this document may be reproduced, transmied, transcribed, stored in a retrieval system, or translated into any language, in any
form or by any means, electronic, mechanical, magnec, opcal, chemical, manual or otherwise without the prior wrien permission of
VIA Technologies, Incorporated.
Trademarks
All brands, product names, company names, trademarks and service marks are the property of their respecve holders.
Disclaimer
VIA Technologies makes no warranes, implied or otherwise, in regard to this document and to the products described in this document.
The informaon provided in this document is believed to be accurate and reliable as of the publicaon date of this document. However,
VIA Technologies assumes no responsibility for the use or misuse of the informaon (including use or connecon 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 informaon
and product specicaons within this document are subject to change at any me, without noce and without obligaon to nofy 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 noce.

Version Date Remarks
1.00 08/29/2017 Inial release.
Revision History
iii

ARTiGO-A630 Linux EVK v1.0.1 Quick Start Guide
Table of Content
1. Introducon....................................................................................................................... 1
1.1 BSP Package Content ............................................................................................................................ 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 .................................................................................................................... 1
1.2 VersionInformaonandSupportedFeatures ...................................................................................... 2
2. BuildEnvironmentSetup .................................................................................................. 3
2.1 ConguringLinuxHostMachine.......................................................................................................... 3
3. Image Build ....................................................................................................................... 4
3.1 ExtracngtheARTIGOA630BSP.......................................................................................................... 4
3.2 BuildingtheU-BootBinary................................................................................................................... 4
3.3 BuildingtheLinuxKernel...................................................................................................................... 5
iv

ARTiGO A630 Linux BSP v1.0.1 Development Guide
1
1. Introducon
ThisDevelopmentGuideexplainshowtobuildtheDebiansystemimagefortheARTIGOA630systeminorder
tobeginevaluangtheplaorm.
TheARTiGOA630LinuxBSPv1.0.1isdevelopedbasedonthedebian-8.6.0-lxde-player(Debian8.6)andit
enableshardwarefeaturesthataredenedontheARTiGOA630system.
1.1 BSP Package Content
Therearefourfoldersinthepackageaslistedbelow.
1.1.1 Source Code Folder Contents
ARTiGO_A630_Linux_source_code.zip:AcompleteandstacDebianBSPincludingtheARTiGOA630meta-
lesandallthepre-downloadedrequiredsowarepackagestoenableacompleteoinebuild.
1.1.2 Firmware Folder Contents
ARTiGO_A630_Linux_EVK_v1.0.1.zip:containsinstallaonscriptlesandtheprecompiledU-bootandimage
forevaluangtheARTiGOA630system.
1.1.3 Document Folder Contents
ARTiGO_A630_Linux_BSP_v1.0.1_ Development_Guide_v1.00_20170829.pdf:TheQuickStartGuideprovides
anoverviewonhowtoboottheLinuxEVKsystemimageontheARTiGOA630andcongurethesupported
hardwarefunconsinthebuild.
ARTiGO_A630_Linux_EVK_v1.0.1_ Quick_Start_Guide_v1.00_20170829.pdf:ThisDevelopmentGuide
explainshowtobuildtheDebiansystemimageontheARTiGOA630systeminordertobeginevaluangthe
plaorm.
1.1.4 Tools Folder Contents
arm_201103_gcc4.5.2.tgz:isatoolchain,whichisasetofsowaredevelopmenttoolsforbuildingimagesfor
theARTiGOA630system.
Source code folder Descripon
ARTiGO_A630_Linux_source_code.zip KernelsourcecodeandU-Bootsourcecode
Firmware folder Descripon
ARTiGO_A630_Linux_EVK_v1.0.1.zip DebianEVKsystemimageandinstallaon
scriptles
Document folder Descripon
ARTiGO_A630_Linux_BSP_v1.0.1_Development_
Guide_v1.00_20170829.pdf
Developmentguide
ARTiGO_A630_Linux_EVK_v1.0.1_Quick_Start_
Guide_v1.00_20170829.pdf
Quick Start Guide
Tools folder Descripon
arm_201103_gcc4.5.2.tgz Toolchain

ARTiGO A630 Linux BSP v1.0.1 Development Guide
2
1.2 VersionInformaonandSupportedFeatures
• U-Bootversion:1.1.4
• Kernel version: 3.4.5
• Evaluaonimage:Debian8.6
• DevelopmentbasedonWM8980
• SupportsSPIwitheMMCboot
• SupportsHDMIdisplay
• SupportsHDMIaudiooutput
• SupportsMicroUSB2.0OTGport
• SupportsDebugUARTconnector
• Supports10/100MbpsEthernet
• SupportsLine-outandMic-in
• SupportsEMIO-5531USBWi-Fi&Bluetoothmodule
ºSupportsBluetoothA2DPandSPPprole
• SupportsEMIO-2531miniPCIeWi-Fi&Bluetoothmodule
ºSupportsBluetoothA2DPandSPPprole
• SupportsEMIO-2550miniPCIeMobileBroadbandmodule
• SupportsGPIO,UARTandWatchdogmer

ARTiGO A630 Linux BSP v1.0.1 Development Guide
3
2. BuildEnvironmentSetup
Thisseconguidesyouthroughsengupthebuildenvironmentfordevelopmentonthehostmachine.All
instruconsarebasedonUbuntu14.04LTSx64.
Tomakesurethatthebuildprocesscompletessuccessfully,werecommendatleast120GBofdiskspaceand
15GBofcombinedmemoryandswapspaceonthehostmachine.
2.1 ConguringLinuxHostMachine
ThefollowingpackagesarerequiredfortheLinuxdevelopmentenvironment.Therequiredpackagescanbe
installedusingthecommandsbelow.
Extractthe arm_201103_gcc4.5.2.tgz leto/usr/local/arm/(Ifthisfolderdoesnotexistinthesystem,please
createitmanually).
Thecrosscompilerwillbefoundinthe/usr/local/arm/arm_201103_gcc4.5.2/directory.
Addthetoolchainpathin ~/.bashrcle.
Makesurethatthehostmachineisconnectedtothenetworkandrunthepackagesupdate.
Installtherequiredsowarepackagesforcross-compilaon.
$ sudo tar –xzvf arm_201103_gcc4.5.2.tar.gz -C /usr/local/arm/
$ vi ~/.bashrc
export PATH=/usr/local/arm/arm_201103_gcc4.5.2/mybin/:$PATH
$ sudo apt-get update
$ sudo apt-get install git-core gnupg ex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev lib32z1 lib32ncurses5 lib32bz2-1.0 \
x11proto-core-dev libx11-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils u-boot-tools

ARTiGO A630 Linux BSP v1.0.1 Development Guide
4
3. Image Build
ThisseconexplainshowtobuildU-BootandKernelbinaryfortheARTiGOA630system.
3.1 ExtracngtheARTiGOA630BSP
TheARTiGO_A630_Linux_source_code.zipincludesu-boot-1.1.4.tar.gzandKernel_3.4.5.tar.gz.
UsethefollowingcommandtoextractthecontentsoftheBSP.
3.2 BuildingtheU-BootBinary
ThissecondescribeshowtobuildtheU-Bootimagefromthesourcecode.
UsethefollowingcommandtoextracttheU-Bootsourcecode.
Inordertousethedefaultconguraonstypethefollowingcommand.
TobuildtheU-bootimagewiththeARMcrosscompiler.
Whentheprocessiscompleted,thezuboot.binlewillbestoredintheu-boot-1.1.4directory.
$ unzip ARTiGO_A630_Linux_source_code.zip
$ tar -xzvf u-boot-1.1.4.tar.gz
$ cd /u-boot-1.1.4
$ make wmt_cong
$ make -j8 zuboot

ARTiGO A630 Linux BSP v1.0.1 Development Guide
5
3.3 BuildingtheLinuxKernel
Thissecondescribeshowtobuildthekernelbinaryfromthesourcecode.
Tobegin,extractthekernelsourcecode.
Tousethedefaultconguraonandcompilethekerneltypethefollowingcommand:
Whenthecompilaonprocessiscompleted,theuzImage.binlewillbestoredintheKernel_3.4.5directory.
Aerthecompilaon,the/u-boot-1.1.4/and/Kernel_3.4.5/directorywillcontaintheresulngbinaryles,as
showninthetablebelow.
Binary les generated
InordertoinstalltheLinuxsystemontheARTiGOA630system,pleasefollowthecommandsbelowonhowto
copythebinarylesintotheARTiGO_A630_Linux_EVK_V1.0.1folder.
First,changetheselenamesfromzuboot.bintou-boot.bin.
Next,extractthepackagefromtheARTiGO_A630_Linux_EVK_V1.0.1.zip,andthencopyu-boot.binand
uzImage.binlesintotheARTiGO_A630_Linux_EVK_V1.0.1folder.
$ tar -xzvf Kernel_3.4.5.tar.gz
$ cd /Kernel_3.4.5
$ make vab630_linux_defcong
$ make clean
$ make -j8 ubin
Binary les Descripon
zuboot.bin U-Bootbootloader
uzImage.bin Kernel for ARTiGO A630
$ cd /u-boot-1.1.4
$ mv zuboot.bin u-boot.bin
$ cd /u-boot-1.1.4
$ cp –f u-boot.bin ARTiGO_A630_Linux_EVK_v1.0.1/bspinst/u-boot.bin
$ cd /Kernel_3.4.5
$ cp –f boot.img ARTiGO_A630_Linux_EVK_v1.0.1/bspinst/uzImage.bin

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
Email: embedded@via-tech.eu
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
Table of contents
Other VIA Technologies Gateway manuals
Popular Gateway manuals by other brands

SST Automation
SST Automation GT200-HT-RS user manual

Patton
Patton SmartNode SN10200A Series Quick start guides

RAK
RAK RAK7289V2 quick start guide

THOMSON
THOMSON TCW750-4 instruction manual

Shenzhen Sailwider Electronics Co., Ltd.
Shenzhen Sailwider Electronics Co., Ltd. RCS-Z31C Product specification

HP
HP StorageWorks P4000 Series user guide