Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install lava-fastmodels

How to install lava-fastmodels

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install lava-fastmodels
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.dev12 Available View build log
0.1.dev2 Available View build log
Windows (64-bit)
0.1.dev12 Available View build log
0.1.dev2 Available View build log
Mac OS X (10.5+)
0.1.dev12 Available View build log
0.1.dev2 Available View build log
Linux (32-bit)
0.1.dev12 Available View build log
0.1.dev2 Available View build log
Linux (64-bit)
0.1.dev12 Available View build log
0.1.dev2 Available View build log
 
License
AGPL
Lastest release
version 0.1.dev12 on Feb 2nd, 2012

Fast Model support for LAVA

This package contains low level code for managing fast models in LAVA. Currently it is designed to manage NFS mounts, setting up the root filesystem (exporting the provided tarball to the mount point and blessing it with fast-model specific changes, if required). It also contains code for starting the fast model runtime, monitoring execution and eventual shutdown (or forced shutdown, if required).

Support for lava-serial plugin is being considered (to be able to get a LAVA-Serial access to a running fast model emulation)

Requirements

  • Working installation of FastModelsPortfolio 7.0 from ARM
  • Root access on local machine (to manipulate NFS shares, gained automatically via sudo)
  • Bleeding edge version of json-document and more mature versions of lava-tool and their dependencies (in the upcoming release also a bleeding edge version of lava-serial)

Example

(I made this up as that part does not work yet).

To start a fast model on your machine run the following command: $ lava fast-model start --kernel=uImage --initrd=initrd --rootfs=roottfs.tar.gz Unpacking rootfs... done Setting up NFS share... done Starting fast model... done You can connect to the serial console with

System Message: ERROR/3 (<string>, line 35)

Unexpected indentation.
$ lava serial console --network localhost:5001

System Message: WARNING/2 (<string>, line 36)

Block quote ends without a blank line; unexpected unindent.

Pressing CTRL-C will terminate this simulation ^C Shutting down... done Removing NFS share... done Removing root filesystem... done $

API

To use fast models in your code you can try the following example. (I just made it up, it does not work yet)

import time from lava.fastmodels.simulators import LinuxSimulator from lava.fastmodels.models import ModelLibrary

class Handler(object):

def on_line(self, line):
print repr(line)

# Get a library, any path works (as long as you have models there) library = ModelLibrary('/srv/lava/instances/dev/var/lib/lava/fastmodels/models') # Get a model from the library model = library['A15x1']

simulator = LinuxSimulator(model, rootfs="rootfs.tar.gz", uImage="uImage") with simulator.start():

System Message: ERROR/3 (<string>, line 66)

Unexpected indentation.
serial = simulator.serial_console serial.attach_handler(Handler()) time.sleep(60)

Subscribe to package updates

Last updated Feb 2nd, 2012

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.