linux – 用Qemu模拟Raspberry Pi Raspbian

linux – 用Qemu模拟Raspberry Pi Raspbian,第1张

概述我尝试使用QEMU模仿Raspian *** 作系统的Raspberry Pi.我尝试在互联网上描述的几种方法,但没有任何成功. 我想,我需要将Linux内核修补程序修补到所需的 *** 作系统.在我的情况下,我选择作为OS Rasbian Lite与内核4.4: wget https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2

我尝试使用QEMU模仿Raspian *** 作系统的RaspBerry Pi.我尝试在互联网上描述的几种方法,但没有任何成功.

我想,我需要将Linux内核修补程序修补到所需的 *** 作系统.在我的情况下,我选择作为OS Rasbian lite与内核4.4:

wget https://downloads.raspBerrypi.org/raspbian_lite/images/raspbian_lite-2016-05-31/2016-05-27-raspbian-jessIE-lite.zipunzip 2016-05-27-raspbian-jessIE-lite.ziprm 2016-05-27-raspbian-jessIE-lite.zip

接下来我从https://www.kernel.org/加载一个内核:

wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.4.16.tar.gztar -xzf linux-4.4.16.tar.gzrm linux-4.4.16.tar.gz

现在交叉编译内核:

export ARCH=armexport CROSS_COMPILE=arm-linux-gnueabi-cd linux-4.4.16make vexpress_defconfigmake allcd ..

现在我可以将启动映像(即RAM中自动提取的压缩内核映像)复制到我的工作区:

cp linux-4.4.16/arch/arm/boot/zImage zImage

并运行QEMU

qemu-system-arm -kernel zImage -M vexpress-a9 -m 1024 -cpu cortex-a9 -no-reboot -serial stdio -hda 016-05-27-raspbian-jessIE-lite.img -append "root=/dev/sda2 rootfstype=ext4"

但是我看到的是一个黑色的QEMU窗口.

总结

以上是内存溢出为你收集整理的linux – 用Qemu模拟Raspberry Pi Raspbian全部内容,希望文章能够帮你解决linux – 用Qemu模拟Raspberry Pi Raspbian所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1048455.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存