Table of Contents

Edge2 Install Toolchains

Introduction

This document mainly describes how to install the tools used to compile Edge2 Android source code.

Install directly on PC

1. To build an environment for compiling Android. The following software packages need to be installed.

$ sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zip
$ sudo apt-get install flex curl libncurses5-dev libssl-dev zlib1g-dev gawk minicom
$ sudo apt-get install exfat-fuse exfat-utils device-tree-compiler liblz4-tool
$ sudo apt-get install openjdk-8-jdk

Use docker container

1. Install docker.

$ sudo apt update
$ sudo apt install docker docker.io

2. Pull the khadas docker image.

$ sudo docker pull wesion/khadas_android:v0.6

3. Run the docker container using the following command.

$ sudo docker run --privileged -i -t -v /home/you_name:/home/android wesion/khadas_android:v0.6 bash

More instructions are available https://source.android.com/source/initializing.html.

See Also