Using the qemuarm target

Here are some quick instructions for using the qemuarm target that is preinstalled in fuego.

Fuego does not ship with a qemuarm image in the repository, but assumes that you have built one with the Yocto Project.

If you don't have one lying around, you will need to build one. Then you should follow the other steps on this page to configure it to run with Fuego.

Build a qemuarm image [edit section]

Here are some quick steps for building a qemuarm image using the Yocto Project: (See the Yocto Project Quick Start, for more information)

Note that these steps are for Ubuntu.

Running the qemuarm image [edit section]

You can run the emulator, using the image you just built:

Test connectivity [edit section]

From the host, verify that the networking is running:

Of course, substitute the correct IP address in the commands above.

Once you know that things are working, directly connecting from the host to the qemuarm image, make sure the correct values are in the qemu-arm.board file. You can edit this file inside the fuego container at /fuego-ro/boards/qemu-arm.board, or on your host in fuego-ro/boards/qemu-arm.board

Here are the values you should set:

Test building software [edit section]

It is important to be able to build the test software for the image you are using with qemu.

The toolchain used to compile programs for a board is controlled via the PLATFORM variable in the board file. Currently the qemu-arm.board file specifies PLATFORM="qemu-armv7hf". Unfortunately, in my own testing that toolchain won't produce a binary that runs with a core-image-minimal image from YP Poky.

You may need to install your Yocto Project SDK into fuego, in order to successfully build programs for the platforms.

See Adding a toolchain for information about how to do that.

Try building a simple program, like hello_world, as a test for the new system, and see what happens.