一:获取源码
Rockchip SDK: git clone https://github.com/rockchip-linux/kernel.git主线源码:
GitHub - torvalds/linux: Linux kernel source tree
The Linux Kernel Archives
二:编译
1、修改Makefile
ARCH := arm64
CROSS_COMPILE := /home/zhaotj/tools/gcc/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
2、编译
make rockchip_linux_defconfig
make menuconfig
make savedefconfig
make -j10
三:生成boot.img
kernel for Distro方式加载,文件结构如下:
boot ├── extlinux │ └── extlinux.conf ├── Image └── rk3399-evb.dtb
创建boot目录&#x