Download source: $ mkdir ~/mydroid $ cd ~/mydroid $ repo init -u https://github.com/odroid-n2/android_manifest.git -b pie $ repo sync --no-tags --no-clone-bundle Set up Linaro toolchains path: $ export PATH=$PATH:/PATH/TO/mydroid/vendor/linaro/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin $ export PATH=$PATH:/PATH/TO/mydroid/vendor/linaro/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin $ export PATH=$PATH:/PATH/TO/mydroid/vendor/linaro/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin Replace /PATH/TO/ with your current correct path. Set up ccache: $ export USE_CCACHE=1 $ export CCACHE_DIR=/path/to/ccache_cache/.ccache $ prebuilts/misc/linux-x86/ccache/ccache -M 50G Select the target device: $ source build/envsetup.sh $ lunch odroidn2-[userdebug|user|eng] To build the Android TV variant: $ export TARGET_BUILD_GOOGLE_ATV=true Compile Android image: $ make -jxx selfinstall Replace xx with number of cores of your CPU. For support refer to: https://forum.odroid.com/viewtopic.php?f=178&t=35463