1、构建kernel
搭建编译环境
git clone https://github.com/friendlyarm/prebuilts.git -b master --depth 1
cd prebuilts/gcc-x64
cat toolchain-6.4-aarch64.tar.gz* | sudo tar xz -C /
#在~/.bashrc文件末尾添加下面两行
export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin:$PATH
export GCC_COLORS=auto
#运行下面命令使其生效
. ~/.bashrc
#测试命令
aarch64-linux-gcc -v
下载代码
git clone https://github.com/friendlyarm/kernel-rockchip --depth 1 -b nanopi4-linux-v4.4.y kernel-rockchip
cd kernel-rockchip
修改与保存配置
make menuconfig #修改配置
make savedefconfig ##保存配置
cp .config arch/arm64/configs/nanopi4_linux_defconfig
编译
export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin/:$PATH
make ARCH=arm64 nanopi4-images
2、添加AP模组的wifi驱动支持
来源:CSDN
作者:wieslav_wws
链接:https://blog.csdn.net/wwws1994/article/details/104087851