支持 BeagleBone 的 QEMU [英] QEMU with BeagleBone support

查看:33
本文介绍了支持 BeagleBone 的 QEMU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想模仿 BeagleBone Black.似乎 QEMU 是唯一支持 ARM 的 Linux 仿真的仿真器.但是我很难找到合适的模拟器.

i would like to emulate BeagleBone Black. It seems that QEMU is the only emulator that supports Linux emulation for ARM. However i m having difficulty in getting the right emulator.

我尝试使用 qemu.org 的 QEMU 构建,但似乎不支持机器beagle"(同样来自qemu-system-arm -machine help"的输出,至少 beagle 作为受支持的机器).我发现一些帖子说 Linaro 有一个支持 BeagleBone 的 qemu 构建,并且可以在 Ubuntu 上使用 apt-get 安装它.还有一个带有说明的 YouTube 视频:

I tried using QEMU build from qemu.org but it seems that the machine "beagle" is not supported (also from the output of "qemu-system-arm -machine help" does not least beagle as supported machine). I found some posts saying that Linaro has a qemu builds with BeagleBone support and that it can be installed using apt-get on Ubuntu. There is also a youtube video with instructions:

https://www.youtube.com/watch?v=__6XmxOrL3o

然而,这些说明似乎不再有效.我有 Ubuntu 14.04.我尝试了以下方法:

It seems however that the instructions no longer work. I have Ubuntu 14.04. I tried the following:

1) sudo add-apt-repository ppa:linaro-maintainers/tools

1) sudo add-apt-repository ppa:linaro-maintainers/tools

这会超时并报告错误的 PPA 格式.

This times out and reports an error wrong PPA format.

2) 然后我按照这里的说明进行操作:

2) Then i followed instructions here:

https://wiki.linaro.org/Platform/Systems/Repository

然而,在添加这些存储库后,并没有添加 qemu,所以在我的 apt 存储库中,我只有来自 qemu.org 的 qemu(不支持 beaglebone)

However, after adding these repositories, no qemu was added, so in my apt repository i only had qemu from qemu.org (which does not support beaglebone)

3) 然后我找到了这个页面:

3) Then i found this page:

https://launchpad.net/~linaro-maintainers/+archive/ubuntu/工具

所以我尝试了以下方法:

So i tried the following:

sudo add-apt-repository http://ppa.launchpad.net/linaro-维护者/工具/ubuntu

sudo add-apt-repository http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu

然后还使用sudo apt-key add"命令下载并添加了公钥.

and then also downloaded and added the public key using "sudo apt-key add" command.

这似乎在执行sudo apt-get update"和apt-cache show qemu-system"后工作,我看到以下内容:

This seemed to work as after doing "sudo apt-get update" and "apt-cache show qemu-system" i get see the following:

软件包:qemu-system来源:qemu-linaro版本:2.2.0~rc3+git8+gdb12451-63linaro+trusty架构:amd64维护者:Ubuntu 开发者安装尺寸:133812取决于:qemu-linaro-keymaps、libasound2(>= 1.0.16)、libbluetooth3(>= 4.91)、libbrlapi0.6、libc6(>= 2.15)、libcurl3-gnutls(>= 7.16.3)、libfdt1、libgcc1(>= 1:4.7), libgl1-mesa-glx |libgl1, libglib2.0-0 (>= 2.24.0), libgnutls26 (>= 2.12.17-0), libncurses5 (>= 5.5-5~), libpixman-1-0 (>= 0.15.16), libpng12-0 (>= 1.2.13-4), libpulse0 (>= 1:0.99.1), libsasl2-2 (>= 2.1.24), libsdl1.2debian (>= 1.2.11), libstdc++6 (>= 4.6), libtinfo5, libuuid1 (>= 2.16), libvdeplug2, libx11-6, zlib1g (>= 1:1.2.0)推荐:桑巴中断:qemu (<< 0.11.0-2)、qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1)替换:qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1)主页:https://launchpad.net/qemu-linaro/

Package: qemu-system Source: qemu-linaro Version: 2.2.0~rc3+git8+gdb12451-63linaro+trusty Architecture: amd64 Maintainer: Ubuntu Developers Installed-Size: 133812 Depends: qemu-linaro-keymaps, libasound2 (>= 1.0.16), libbluetooth3 (>= 4.91), libbrlapi0.6, libc6 (>= 2.15), libcurl3-gnutls (>= 7.16.3), libfdt1, libgcc1 (>= 1:4.7), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.24.0), libgnutls26 (>= 2.12.17-0), libncurses5 (>= 5.5-5~), libpixman-1-0 (>= 0.15.16), libpng12-0 (>= 1.2.13-4), libpulse0 (>= 1:0.99.1), libsasl2-2 (>= 2.1.24), libsdl1.2debian (>= 1.2.11), libstdc++6 (>= 4.6), libtinfo5, libuuid1 (>= 2.16), libvdeplug2, libx11-6, zlib1g (>= 1:1.2.0) Suggests: samba Breaks: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1) Replaces: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1) Homepage: https://launchpad.net/qemu-linaro/

(我只粘贴了前几行).

(i only pasted the first few lines).

然而,在安装了qemu-system(sudo apt-get install qemu-system)之后,它仍然没有BeagleBone支持(qemu-system-arm -machine help 没有显示任何beagle).

However, after installation of qemu-system (sudo apt-get install qemu-system), it still does not have BeagleBone support (qemu-system-arm -machine help does not show any beagle).

所以我想知道是否有人知道在支持 BeagleBone 的 Ubuntu 上从哪里安装 QEMU.我应该添加另一个存储库吗?我是 Ubuntu、apt 和 Linaro 的新手,所以到目前为止我没有想法.

So i m wondering if anybody knows where to install QEMU from on Ubuntu that has BeagleBone support. Is there another repository i should be adding? I m new to Ubuntu, apt and Linaro, so i m out of ideas so far.

推荐答案

我遇到了你的问题,因为我一整天都在做同样的事情.我也在使用 (X)ubuntu 14.04.

I ran across your question because I was trying to do the same thing all day. I am also using (X)ubuntu 14.04.

简短的回答是:没有开箱即用的支持 Beagle Bone 的 QEMU.

The short answer is: there is no QEMU that supports the Beagle Bone out of the box.

关于 qemu-linaro 对 OMAP3 有一定支持的说法是正确的,包括 beaglebeaglexm.这些适用于 Beagle BoardBeagle Board xM.Beagle Board 系列使用 OMAP 3530,而 Beagle Bone 系列(常规和黑色,就像我一样)使用 OMAP 335x.

You are correct about qemu-linaro having some support for OMAP3, including beagle and beaglexm. These are for the Beagle Board and Beagle Board xM. The Beagle Board series uses the OMAP 3530 while the Beagle Bone series (regular and black, like I have) uses the OMAP 335x.

此外,我无法找到包含二进制 qemu-linaro 的有效 PPA.您尝试安装的旧版本曾经包含 QEMU,但现在不再包含 - 即使从 trusty (14.04) 开始也是如此.

In addition, I was unable to find a working PPA that contains binary qemu-linaro. An old version of the one you are trying to install used to contain QEMU, but doesn't anymore - even as of trusty (14.04).

根据Saucy的包列表(13.10) qemu-linaro 在那个 PPA 中.

According to the package list for Saucy (13.10) qemu-linaro was in that PPA.

但是 Trusty (14.04).我不知道为什么您的 apt-cache 会显示任何内容 - 我什至无法复制它.

But it is gone by Trusty (14.04). I don't know why your apt-cache shows anything at all - I wasn't even able to duplicate that.

您可以构建支持 OMAP 3 和 Beagle Board 的 QEMU 版本:

You can build a version of QEMU that supports OMAP 3 and Beagle Board:

所以我所做的是克隆 git repo 并编译 qemu-linaro.这很简单,您可能只需要为库依赖项添加一些 -dev 包.我的机器已经拥有大部分所需的东西.

So what I did was to clone the git repo and compile qemu-linaro. This was straightforward, you might just need to add a few -dev packages for library dependencies. My machine already has most of what was required.

此版本提供 -M beagle 或 -M beaglexm 选项.

This version provides the -M beagle or -M beaglexm options.

然后我花了一整天的时间试图弄清楚为什么我的 Beagle Bone MDL 和 U-Boot 在弄清楚 Bone 之前一直崩溃!= Board.Gah...它们的内存映射略有不同,并且不是相同的东西.

I then spent all day trying to figure out why my Beagle Bone MDL and U-Boot kept crashing before figuring out that Bone != Board. Gah... They have slightly different memory maps and are not the same thing.

所以现在我为 Beagle Board 而不是 Bone 重建了我的测试图像,它实际上使用最新的 qemu-linaro 启动!

So for now I rebuilt my test images for the Beagle Board instead of Bone and it actually boots with the latest qemu-linaro!

不幸的是,OMAP 3 还没有上传到主 QEMU.一年前有一些关于它的邮件列表流量,但它似乎没有消失.添加 Beagle Bone Black 机器类型似乎并不困难,但这也还没有发生.

It is unfortunate that OMAP 3 is not yet upstreamed into the main QEMU. There was some mailing list traffic about it a year ago, but it doesn't seem to have gone anywhere. It does not appear that it would be very difficult to add a Beagle Bone Black machine type, but that hasn't happened yet either.

这篇关于支持 BeagleBone 的 QEMU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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