Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up Beagleboard emulator with qemu in Ubuntu

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/

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

I got following error :

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

How can I fix this error ?

PS:

  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.
like image 722
Abhinav Avatar asked Feb 17 '15 15:02

Abhinav


People also ask

Which tools can you use to program the BeagleBoard?

You can open the bone101 page by putting http://192.168.7.2 in the browser address bar and Cloud9 IDE with http://192.168.7.2:3000/ . You can get shell access on BeagleBone by running command ssh [email protected] in the Linux / Mac terminal. On Windows systems, you will need terminal emulator like putty for this.

How do you use a BeagleBoard?

Insert SD card into your (powered-down) board, hold down the USER/BOOT button (if using Black) and apply power, either by the USB cable or 5V adapter. If using an original BeagleBone or PocketBeagle, you are done.

Does BeagleBone run Linux?

ArchLinux. Arch Linux for BeagleBone is a version of the Arch Linux ARM distribution. This carries forward the Arch Linux philosophy of simplicity and user-centrism, targeting and accommodating competent Linux users by giving them complete control and responsibility over the system.


1 Answers

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

First remove the qemu package that you have installed with

$ sudo apt-get remove qemu-system-arm

Then download the source code for qemu to a suitable folder

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

You need these two packages to build qemu

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

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 build $ cd build $ ../configure --prefix=/opt $ make -j8 $ sudo make install

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.

like image 146
MrGigu Avatar answered Sep 22 '22 19:09

MrGigu