使用yocto搭建qemuarm64环境
环境
yocto下载
# 源码下载
git clone git://git.yoctoproject.org/poky
git reset --hard b223b6d533a6d617134c1c5bec8ed31657dd1268
构建
# 编译镜像
export MACHINE="qemuarm64"
. oe-init-build-env
bitbake core-image-full-cmdline
运行
# 跑虚拟机
export KERNEL=/home/q/home/yocto/poky/build/tmp/work/qemuarm64-poky-linux/linux-yocto/6.12.22+git/linux-qemuarm64-standard-build/arch/arm64/boot/Image
export DEVICE_TREE=/home/q/home/yocto/poky/build/virt.dtb
runqemu nographic
<完>