GithubHelp home page GithubHelp logo

producthealth / armstrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armstraptools/armstrap

0.0 12.0 0.0 1.19 MB

An universal sd/image creator for small arm development platform

Shell 98.26% Python 1.74%

armstrap's Introduction

armStrap

An universal sd/image creator for small arm development platform

Prerequisite

You will need to run this from Linux and it has been tested with Ubuntu 13.x 64bits

You will need dpkg-dev installed:

sudo aptitude install dpkg-dev

You will also need gcc for ARM:

sudo aptitude install gcc-4.8-arm-linux-gnueabihf
ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.8 /usr/bin/arm-linux-gnueabihf-gcc

QuickStart

You need to be root to run this script. You have two options:

  1. With no parameter from the command line, create an image using values found in config.sh.

  2. Configure your build using the command line (Not recommended for version 0.8x, i've made many changes and some options have changed meanings or simply do nothing. Use the config file until i remove this message) :

    armStrap.sh version 0.86 Copyright (C) 2013 Eddy Beaupre

    Usage : sudo armStrap.sh [PARAMETERS]

    Image/SD Builder: -b Use board definition . -d Write to instead of creating an image. -i Set image filename to . -s Set image size to MB. -h Set hostname. -p Set root password. -w Enable swapfile. -W Disable swapfile. -Z Set swapfile size to MB. -n " " Set static IP. -N Set DHCP IP. -r " [NS2] [NS3]" Set nameservers. -e Set search domain.

    Kernel Builder: -K Build Kernel (debian packages). (Build all if arg is -) - Build all avalables Kernel. -I Call menuconfig before building Kernel.

    BootLoader Builder: -B Build BootLoader (.txz package). - Build all avalables BootLoaders. -F Select bootloader family.

    RootFS updater: -R Update RootFS (.txz package). - Update all avalables RootFS. -O Select which architecture to update. -M Execute a shell into the RootFS instead of updating it.

    All Builder: -A Build Kernel/RootFS/U-Boot for all boards/configurations

    Utilities: -g Disable GUI. -q Quiet. -c Directory Cleanup. -l Show licence.

    Default boards configuration:

           Board          Kernel     Family            BootLoader
    

           A70Xh           sun7i     armv7l          u-boot-sunxi
      CubieBoard           sun4i     armv7l          u-boot-sunxi
     CubieBoard2           sun7i     armv7l          u-boot-sunxi
      CubieTruck        sun7i-ct     armv7l          u-boot-sunxi
       HackBerry           sun4i     armv7l          u-boot-sunxi
     RaspBerryPI          bcmrpi     armv6l                      
    

    Avalable BootLoaders:

           Board            BootLoader
    

       hackberry      u-boot-sunxi.txz
       hackberry u-boot-sunxi-next.txz
      cubietruck      u-boot-sunxi.txz
      cubietruck u-boot-sunxi-next.txz
      cubieboard      u-boot-sunxi.txz
      cubieboard u-boot-sunxi-next.txz
     cubieboard2      u-boot-sunxi.txz
     cubieboard2 u-boot-sunxi-next.txz
           a70xh      u-boot-sunxi.txz
           a70xh u-boot-sunxi-next.txz
    

    Avalable Kernels:

          Kernel     Config    Version
    

      sunxi-next    default     3.15.0
     sunxi-devel    default     3.15.0
           sun7i    default    3.4.90+
        sun7i-ct    default    3.4.79+
           sun4i    default    3.4.90+
          bcmrpi    default    3.6.11+
    

    Avalable RootFS:

            Arch     Family    Version
    

          armv7l     ubuntu     trusty
          armv7l     ubuntu      saucy
          armv7l     debian   unstable
          armv7l     debian    testing
          armv7l     debian     stable
          armv6l   raspbian    testing
          armv6l   raspbian     stable
    

    With no parameter, create an image using values found in config.sh.

Licence

Copyright (c) 2013 Eddy Beaupre. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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.