配置内核
KERNEL_SRC=/root/src/kernel-rockchip
cd $KERNEL_SRC
touch .scmversion
make ARCH=arm64 nanopi6_linux_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- savedefconfig
cp .config ./arch/arm64/configs/hetao_defconfig #Save the configuration as hetao_defconfig
git add ./arch/arm64/configs/hetao_defconfig
cd ..
编译内核
export KERNEL_SRC=$KERNEL_SRC
export KCFG=hetao_defconfig
cd sd-fuse_rk3588-kernel6.1
MK_HEADERS_DEB=1 ./build-kernel.sh ubuntu-jammy-desktop-arm64
生成sd卡固件
./mk-sd-image.sh ubuntu-jammy-desktop-arm64
启动系统后安装qemu,结果如下