GithubHelp home page GithubHelp logo

myarm's Introduction

myarm

Manage Rasperry Pi emulation with QEMU

Installation

Two basic ways of installation are available, in both cases make sure to use directory available via $PATH.

  1. Download the script to ~/bin:

     curl -L https://raw.github.com/mpapis/myarm/master/bin/myarm -o ~/bin/myarm
     chmod +x ~/bin/myarm
    

    To update repeat the steps.

  2. Clone repository and link script to ~/bin:

     mkdir -p ~/projects
     git clone https://github.com/mpapis/myarm.git ~/projects/myarm
     ln -s ~/projects/myarm/bin/myarm ~/bin/myarm
    

    To update:

     cd ~/projects/myarm
     git pull
    

The second option is useful in development when changing the script.

Usage

Prepare

Create a new virtual machine based on Rasperry Pi image:

myarm prepare [URL [name]]

Both can be omitted and will b auto detected, use ""(empty string) for URL if only name is important.

Start

Few ways of starting are available:

myarm start [ssh|gui|console]
  • ssh - start in backgroud, wait for ssh and connect,
  • gui - start in background with the GUI open to the machine,
  • console - start in forground with open console to the server.
  • with no parameter will just start in background, you need to wait a bit for the machine to boot, it can take even few minutes.

Stop

Stop the running virtual machine:

myarm stop

Status

Show if the virtual machine is running, returns nonzero status if it's not running:

myarm status

SSH

Allow connecting to the virtual machine:

myarm ssh

SCP

Allow upload / download of files:

myarm scp ...

Use like standard scp, use pi@localhost for the virtual machine

Configuration files

Standard virtual machine is a directory with file .myarm which contains:

IMAGE=path_to_image.img
PORT=forward_port
CPU=arm_cpu
RAM=machine_ram

Only IMAGE is required, for rest defaults will be used if not set:

PORT="5022"
CPU="arm1176"
RAM="256"

List of available CPUs can be checked with qemu-system-arm -cpu help, only arm1136-r2, arm1176, arm11mpcore were tested with myarm, other CPUs might not work.

Reporting problems

https://github.com/mpapis/myarm/issues

myarm's People

Contributors

mpapis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.