Xen ARM with Virtualization Extensions/FastModels

From Xen
Revision as of 11:48, 9 February 2012 by Ijc (talk | contribs) (First draft, up to and including building a model)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

No hardware currently exists which supports the ARM virtualization extensions and therefore the [Xen ARMv7 with Virtualization Extensions] port is currently targetting ARM's FastModel emulator.

The primary target is the ARM Envelope Model (AEM) which is only available under license from ARM however we also support the Cortex-A15 model which is available for download from ARM with an evaluation license.

This document will try and guide you through downloading FastModels, building a model and finally running Xen using the model.

Download FastModels & Evaluation License

You can download FastModels and an evaluation license from the [infocenter.arm.com ARM Info Center]. In order to do so you will need to register. Once you have registered you can navigate via the Support drop-down menu, to Resources, Evaluation Products and finally Fast Models. At this point you will be asked to provide a phone number as well as a host MAC address for licensing purposes, you should enter the MAC address of the machine you intend to run the emulator on. Next you should select the Processor model (select Cortex-A15) and host platform.

At this point your download should begin and you should be shown your license file which you should download and save

Installation

These instructions are based on the FE000-KT-00002-r7p0-40rel0.tgz version of FastModels.

Unpack the tarball and run the setup.bin which is contained. Follow the wizard to install.

Building a model

We use the example models which ship with FastModels.

If you have access to an AEM license then you can/should use FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_AEMv7A/RTSM_VE_AEMv7A.sgproj. If you have a Cortex-A15 evalaution license then FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/RTSM_VE_Cortex-A15x1.sgproj is the one to use.

To start run:

   sgcanvas <SGPROJ>

Using the relevant .sgproj file. sgcanvas will start and load the example model.

At this point you can select your target environment from the Project, Active Configuration menu. Select the environment which best matches your host.

Next click the Build button and the hit yes to save your changes.

At this point sgcanvas will compile your model, which will take a few minutes. The output will be e.g.

   FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/cadi_system_Linux64-Release-GCC-4.1.so

Where FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1 corresponds to the example project which you built and Linux64-Release-GCC-4.1 corresponds to the Active Configuration which you selected.