Raspberry Pi Arch Linux最新sd映像上的qemu [英] qemu on Raspberry Pi Arch Linux latest sd image

查看:94
本文介绍了Raspberry Pi Arch Linux最新sd映像上的qemu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个Arch映像并使用qemu以便在将映像加载到Pi之前交叉编译某些内容.我认为最简单的方法是对最新的入门映像进行质量检查,根据需要进行准备,然后在完成后将其添加到Pi中.

I am trying to set up an Arch image and use qemu in order to cross-compile some stuff before I load the image onto the Pi. I thought the easiest way to do it would be to qemu the latest starter image, prepare it with whatever I needed, and then dd it onto the Pi when I was done.

我从 http://downloads.raspberrypi.org/arch_latest 下载了Arch映像,并希望在Qemu下运行它类似于 http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy -way/.

I downloaded the Arch image from http://downloads.raspberrypi.org/arch_latest, and wanted to run it under Qemu similar to http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/.

我在他们给的qemu命令行上尝试了许多变体

I tried many variations on the qemu command line they gave

qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2013-05-25-wheezy-raspbian.img

替换archlinux-hf-2013-07-22.img.但这最终导致内核崩溃-不同步:未找到init.尝试将init =选项传递给内核"

substituting the archlinux-hf-2013-07-22.img. But this eventually led to "Kernel panic - not syncing: No init found. Try passing init= option to kernel"

我确定这意味着我下载的kernel-qemu不适用于Arch映像,但是我不确定解决此问题的正确方法.

I'm sure this means the kernel-qemu I downloaded won't work with the Arch image, but I'm not sure the right way to fix the issue.

当我在上面使用命令行时,甚至是最新的Raspbian图像内核崩溃.我想我应该不会对此感到惊讶,因为它很可能是一个旧的内核.

Even the latest Raspbian image kernel panics when I use the command line above with it. Which I guess shouldn't have surprised me, since it's most likely an old kernel.

所以我想我的真正问题是,如何使用映像中包含的任何内核,而不必构建自己的内核?

So I guess my real question is, how can I use whatever kernel is included in the image, rather than having to build my own kernel?

推荐答案

以防archlinux-hf-2013-07-22.img 在这里制作了3个部分. 您可以使用

In case archlinux-hf-2013-07-22.img Here there 3 partion are made. you can check by using

fdisk -l archlinux-hf-2013-07-22.img

rootfs is in sd5 i.e 5th partion.

因此,传递此参数"root=/dev/sda5 panic=1",它将完美启动.

So pass this parameter "root=/dev/sda5 panic=1" , it will boot perfectly.

这篇关于Raspberry Pi Arch Linux最新sd映像上的qemu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆