2. Install Tools

PC OS

Network

Permission

ubuntu16.04

online

root

sudo apt-get install repo device-tree-compiler git-core u-boot-tools mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools linaro-image-tools autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip gawk bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial openssh-client subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev expect fakeroot cmake flex bison liblz4-tool libtool keychain

For Ubuntu 17.04 or later, in addition to the above packages, the following dependency is required.

sudo apt-get install lib32gcc-7-dev g++-7 libstdc++-7-dev