Giter VIP home page Giter VIP logo

roborio-docker's Introduction

roborio-docker

This repository contains scripts that are useful for transforming a RoboRIO firmware image into a docker image that can be ran on an ARM computer (it will not work on a normal PC).

This process has been tested on an ODROID-C2 (Ubuntu 16.04) with Docker 1.13.1 installed. However, any Linux OS on a compatible ARM processor that runs docker should work.

This docker image most likely cannot be used to run an unmodified FIRST robot program on it, because WPILib requires access to the NI FPGA present on the RoboRIO.

Build image from firmware image

First, grab the image zipfile from your driver station, and copy it to the machine that you're running docker on. Then, run:

./build_images.sh FRC_roboRIO_x_x.zip

This should create a docker image called 'roborio:x_x', and it will also tag the image as roborio:latest.

Additionally, it will build an image 'roborio-build:latest' which will be a roborio image that contains various essential build tools if you need to build various pieces of software.

Running an SSH build server

The 'start_buildserver.sh' script can be used to start a docker image that can be used in conjunction with the build scripts in roborio-packages. It spawns an SSH server that listens on port 2222. Some magic is done to:

  • Switch the processor into 32-bit mode via setarch
  • Use LD_PRELOAD to install a uname hook that reports the host being 'armv7l'

To ssh into this docker image, you'll want to add something like this to your ~/.ssh/config

Host roborio-docker
  User root
  Hostname xx.xx.xx.xx
  Port 2222

Why does this exist?

For historical reasons, the roborio-packages repository primarily relies on compiling packages on the RoboRIO. For awhile I was using the roborio-vm to build packages, but it takes a very long time to build complex packages such as NumPy or SciPy. Building on real ARM hardware is a lot faster.

roborio-docker's People

Contributors

virtuald avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

roborio-docker's Issues

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.