An universal sd/image creator for small arm development platform
You need to be root to run this script. You have two options:
-
With no parameter from the command line, create an image using values found in config.sh.
-
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.93 Copyright (C) 2013-2014 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 cubietruck u-boot-sunxi-nand.txz cubieboard2 u-boot-sunxi.txz cubieboard2 u-boot-sunxi-next.txz cubieboard2 u-boot-sunxi-nand.txz cubieboard u-boot-sunxi.txz cubieboard u-boot-sunxi-next.txz a70xh u-boot-sunxi.txz a70xh u-boot-sunxi-next.txz a70xh u-boot-sunxi-nand.txz
Avalable Kernels:
Kernel Config Version
bcmrpi default 3.6.11+ sun7i default 3.4.90+ sun7i-ct default 3.4.90+ sun4i default 3.4.90+ sunxi-next default 3.16.0+ mainline default 3.16.0+
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.
A script to install the operating system in Nand, supporting the CubieBoard/HackBerry, CubieBoard2 and CubieTruck.
Usage : armStrap-nandinstaller <cubieboard|cubieboard2|cubietruck>
Use the cubieboard target to install on CubieBoard/HackBerry.
Copyright (c) 2013-2014 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:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
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.