Windows中使用QEMU创建树莓派虚拟机

Windows中使用QEMU创建树莓派虚拟机

环境:

windows 10

2018-04-18-raspbian-stretch.img

一、下载QEMU

根据你的系统情况,下载相应的版本,并安装完成

https://www.qemu.org/download/ 

二、准备内核

由于arm版本的不同,我们使用网上已经编译好的内核版本和树配置文件

https://github.com/dhruvvyas90/qemu-rpi-kernel

根据版本需要下载kernel-qemu-4.14.79-stretch和versatile-pb.dtb

三、准备环境

将树莓派的镜像、内核和树文件,放入到qemu安装路径中

打开cmd,在qemu目录中运行

qemu-system-arm -M versatilepb -cpu arm1176 -m 256  -drive format=raw,file=2018-04-18-raspbian-stretch.img -net nic -net user,hostfwd=tcp::5022-:22 -dtb versatile-pb.dtb -kernel kernel-qemu-4.14.79-stretch -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw"

原文地址:https://www.cnblogs.com/wangsongbai/p/12283800.html