编译环境:
ubuntu16.04
安装必要的软件和库:sudo apt-get install git build-essential lzop libncurses5-dev libssl-dev libc6:i386
参考firefly的wiki: http://wiki.t-firefly.com/index.php/Firefly-RK3399/Build_kernel
下载内核镜像:git clone https://TeeFirefly@gitlab.com/TeeFirefly/linux-kernel.git
下载交叉编译工具:git clone https://TeeFirefly@gitlab.com/TeeFirefly/prebuilts.git
linux 内核采用的config文件为firefly_linux_defconfig, dts文件为rk3399-firefly-linux.dts
指令:
1: make ARCH=arm64 firefly_linux_defconfig 2: make ARCH=arm64 rk3399-firefly-linux.img -j8