详细介绍:使用yocto搭建qemuarm64环境

环境

yocto下载

# 源码下载
gitclone git://git.yoctoproject.org/poky
git reset --hard b223b6d533a6d617134c1c5bec8ed31657dd1268
 

构建

# 编译镜像
export MACHINE="qemuarm64"
. oe-init-build-env
bitbake core-image-full-cmdline 

运行

# 跑虚拟机

exportKERNEL=/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

<完> 

posted @ 2025-07-22 20:25  yfceshi  阅读(36)  评论(0)    收藏  举报