This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:development:android:install-toolchains [2022/07/15 23:46] nick |
products:sbc:edge2:development:android:install-toolchains [2024/09/18 22:06] (current) william |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | |||
====== Edge2 Install Toolchains ====== | ====== Edge2 Install Toolchains ====== | ||
===== Introduction ===== | ===== 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. | ||
+ | |||
+ | ```shell | ||
+ | $ 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. | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install docker docker.io | ||
+ | ``` | ||
+ | 2. Pull the khadas docker image. | ||
+ | |||
+ | ```shell | ||
+ | $ sudo docker pull wesion/ | ||
+ | ``` | ||
+ | |||
+ | 3. Run the docker container using the following command. | ||
+ | |||
+ | ```shell | ||
+ | $ sudo docker run --privileged -i -t -v / | ||
+ | ``` | ||
+ | |||
+ | |||
+ | More instructions are available [[https:// | ||
+ | ===== See Also ===== | ||
+ | |||
+ |