Code Monkey home page Code Monkey logo

debian-mini-odroid-c1's Introduction

debian-mini-odroid-c1

Script to build a minimal Debian sd card image. If you are looking for a minimal Debian image with read-only root file system, look here.

Features:

  • Supports building Wheezy or Jessie (default) images (specify using the DIST variable)
  • SSH root login password: odroid
  • Host name: odroidc1-MACADDRESS (e.g. odroidc1-1a2b3c4d5e6f)
  • SSH host keys are generated and saved permanently on first boot
  • Automatic mounting of USB storage devices using usbmount

Prerequisites:

On a x86 based Ubuntu system, make sure the following packages are installed:

sudo apt-get install build-essential wget git lzop u-boot-tools binfmt-support \
                     qemu qemu-user-static debootstrap parted

If you are running 64 bit Ubuntu, you might need to run the following commands to be able to launch the 32 bit toolchain:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

Build the image:

Just use the make utility to build e.g. an sdcard-jessie.img. Be sure to run this with sudo, as root privileges are required to mount the image.

sudo make DIST=jessie IMAGE_MB=1024

This will install the toolchains, compile u-boot, the kernel, bootstrap Debian and create a 1024mb sdcard-jessie.img file, which then can be transferred to a sd card (e.g. using dd):

sudo dd bs=1M if=sdcard-jessie.img of=/dev/YOUR_SD_CARD && sync

Customize your image:

It should be fairly easy to customize your image for your own needs. You can drop scripts into the postinst folder and add patches to the patches folder, as well as add any files you want as part of the root file system into the files folder. This should allow you install extra packages (e.g. using apt-get) and modify configurations to your needs. Of course, you can do all this manually after booting the device, but the goal of this project is to be able to generate re-usable images that can be deployed on any number of ODROID-C1 devices (think of it as "firmware" of a consumer device).

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.