Giter Club home page Giter Club logo

pi-init's Introduction

pi-init

Build Status

Purpose

A program which lets you set up a Raspberry Pi solely by writing to the /boot partition (i.e. the one you can write from most computers!)

This variant is specific for Emlid's Navio2 project, derived from https://github.com/BytemarkHosting/pi-init2/, and which I use for rapidly wiping and re-flashing development drones in the US.

It currently takes care of:

  • Keyboard layout and locale
  • Framebuffer size (in case you're piping video through the PI and out through a VTX)
  • Updating at boot
  • Enabling arducopter and configuring it to listen on the address and TTY set in setup_vars.sh
  • Timezone
  • Expanding the root filesystem
  • Rebooting on completion of the above

Usage

From your desktop / laptop:

  • Download and write a standard Emlid Raspbian image
  • Unzip the latest release into the /boot partition
  • Configure appliance/etc/wpa_supplicant/wpa_supplicant.conf for your network (if using a WiFi connection)
  • Configure setup_vars.sh in the /boot partition to fit your needs for locale, time zone, arducopter settings, etc.
  • Remove the SD card and put it into your Pi.

The Raspberry Pi should now boot into a headless system configured for arducopter. The first boot takes a few minutes depending on your network, and which model of Raspberry Pi you use (I tested with a model B).

You can edit these files:

Building pi-init

I've included a script called 'build-and-copy' which I use from an Ubuntu system to build the pi-init2 program and create a zipfile to copy to the SD card boot partition. Any contributions appreciated.

A ssh flag file is also included to enable ssh within Jessie Lite.

pi-init's People

Contributors

cdn avatar combatpoodle avatar ivuk avatar matburnham avatar

Watchers

 avatar  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.