vm-larix‎ > ‎

Emulator

Building QEMU for beagleboard

Qemu is an emulator to emulate various CPUs. It can run full fledged operating systems as virtual machines and supports ARM to a great extent. The Meego project have their own qemu version that supports various ARM development platforms including the beagle board. More information can be found on the Meego Wiki. A part of the essential information to set up QEMU from the Meego Wiki is reproduced here.

git clone git://gitorious.org/qemu-maemo/gles-libs.git
cd gles-libs/dgles2
./configure --enable-glx --enable-x11 --enable-osmesa --prefix=/opt/dgles2 --enable-offscreen
make
sudo make install

git clone git://gitorious.org/qemu-maemo/qemu.git
cd qemu
./configure --target-list="arm-softmmu" --enable-gles2 --gles2dir=/opt/dgles2
make
make install
export LD_LIBRARY_PATH=/opt/dgles2/lib DGLES_BACKEND=glx

Finally qemu can be executed as
qemu-system-arm -M beagle -mtdblock beagle-nand.bin

Here, beagle-nand.bin is an image of the NAND. On the real beagle board, this shall be the image of the SD Card from which the operating system is being booted. Qemu shall start the console as VNC. Using a VNC client, one can connect to the localhost and view the serial TTY output as well as the GUI output.

Another page on the Meego wiki suggests an alternative to installing qemu. Compiling qemu requires a lot of libraries. Not having a library results in make failure. Having compiled a lot of things on my computer, I have lost track of the libraries that came bundled with Ubuntu 10.10 and the ones that I had downloaded and compiled.


Some errors and solutions

Error during ./configure of qemu in xen_backend.c (Forum Link)
Try installing libxen-dev.

End up getting a message VNC Server running on '127.0.0.1:5900' (Forum Link)
Try installing libsdl-dev (libsdl.org).

Subpages (1): Testing QEMU
Comments