Rk3399 linux 内核编译-笔记

时间:2022-09-05 13:48:43

编译环境:

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 clonehttps://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