在 Ubuntu 中使用 qemu 设置 Beagleboard 模拟器 [英] Set up Beagleboard emulator with qemu in Ubuntu

查看:22
本文介绍了在 Ubuntu 中使用 qemu 设置 Beagleboard 模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在 Ubuntu 14.04 中为 Beagleboard 设置 qemu,我按照以下链接中给出的步骤进行操作:

To setup qemu for Beagleboard in Ubuntu 14.04, I am following steps given in link below:

http://www.cnx-software.com/2011/09/26/beagleboard-emulator-in-ubuntu-with-qemu/

当我尝试通过命令在 qemu 中运行 ALIP 图像时:

When I tried to run ALIP image in qemu by command :

sudo qemu-system-arm -M beagle -m 256 -drive file=./beagle_sd_alip_x11.img,if=sd,cache=writeback -clock unix -serial stdio -device usb-kbd -device usb-mouse

我收到以下错误:

qemu-system-arm: -M beagle: Unsupported machine type
Use -machine help to list supported machines!

我该如何解决这个错误?

How can I fix this error ?

附注:

  1. 我是 Beagleboard 和 Qemu 环境的新手.
  2. 我正在尝试了解 Beagleboard 的用户空间 Arduino 库.有关它的更多详细信息,请访问:http://elinux.org/Userspace_Arduino .如果有人可以指导测试示例代码,例如 Qemu 中的 Userspace Arduino,例如闪烁的 LED、7 段显示等,那就太好了.
  1. I am new to Beagleboard and Qemu environment.
  2. I am trying to understand Userspace Arduino Libraries for Beagleboard.More details about it can be found here: http://elinux.org/Userspace_Arduino .It would be great if anyone can guide to test example codes like blinking led, 7 segment display etc.from Userspace Arduino in Qemu.

推荐答案

您可以通过这些步骤自己构建带有 beagleboard 支持的 qemu,我已在 Ubuntu 14.04 上尝试过.

You can build qemu with beagleboard support yourself with these steps, which I have tried with Ubuntu 14.04.

首先删除你安装的qemu包

First remove the qemu package that you have installed with

$ sudo apt-get remove qemu-system-arm

然后将qemu的源代码下载到合适的文件夹

Then download the source code for qemu to a suitable folder

$ git clone git://git.linaro.org/qemu/qemu-linaro.git$ cd qemu-linaro

你需要这两个包来构建 qemu

You need these two packages to build qemu

$ sudo apt-get install libglib2.0-dev zlib1g-dev

您还需要 pixman 和 dtc git 子模块

You will also need the pixman and dtc git submodules

$ git submodule update --init pixman$ git submodule update --init dtc

现在您可以继续并配置和构建它!

Now you can continue and configure and build it!

$ mkdir 构建$ cd 构建$ ../configure --prefix=/opt$ make -j8$ sudo make install

qemu-system-arm 可执行文件可以在/opt/bin 中找到.如果您还没有,请将其添加到您的路径中,并且您很高兴.

The qemu-system-arm executable can be found in /opt/bin. Add this to your path if you haven't already and you´re good to go.

这篇关于在 Ubuntu 中使用 qemu 设置 Beagleboard 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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