Update the existing package list and use apt to install some packages that are allowed over HTTPS:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
sudo apt install p7zip-full
Then add the GPG key for the official Docker repository to your system, then add the Docker repository to the APT sources.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
Update the package database with the Docker packages from the newly added repo source, make sure you are installing from the Docker repo and not the default Ubuntu repo:
sudo apt update
apt-cache policy docker-ce
Install Docker, and check that it's running:
sudo apt install docker-ce
sudo groupadd docker
sudo usermod -aG docker $USER
sudo reboot
sudo systemctl status docker
PICTURE
Here I downloaded the system source code and put it in my newly created android directory
#method one:
7z x android/TinkerBoard2-Android.7z.001 -r -o.
#Method Two:
cat TinkerBoard2-Android.7z.* >TinkerBoard2-Android.7z
unzip:
tar xzvf TinkerBoard2-Android.tgz
./docker_builder/docker-builder-run.sh
PICTURE
source build/envsetup.sh
lunch WW_Tinker_Board_2-userdebug
./build.sh -UKAu
Note: The UKAu parameters here represent:
-U compile uboot
-A Compile Android
-K Compile Kernel
-u compile update.img
After the compilation is complete, the generated image file is in the rockdev/Image-WW_Tinker_Board_2 directory. Where WW_Tinker_Board_2-raw.img is the firmware we want to download to the board