This repo contains a collection of scripts helping you to set up Ubuntu Core 16.04 / Debian 8 Jessie / CentOS 7 and Docker on your ARM device within a couple minutes. Each subdirectory has this collection of scripts:
- ubuntu-core-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
- ubuntu-core-01.sh: unpacks the Ubuntu Core userland, prepare and jump into the chroot environment
- ubuntu-core-02.sh: (invoked by ubuntu-core-01.sh) customize the userland, install gcc-5, install the kernel image
- ubuntu-docker-00.sh: setup Docker in the newly booted environment (doesn't work in chroot)
- debian-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
- debian-01.sh: debootstraps the Debian userland, prepare and jump into the chroot environment
- debian-02.sh: (invoked by debian-01.sh) customize the userland, install gcc-5, install the kernel image
- debian-docker-00.sh: setup Docker in the newly booted environment (doesn't work in chroot)
- centos-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
- centos-01.sh: unpacks the CentOS userland, prepare and jump into the chroot environment
- centos-02.sh: (invoked by centos-01.sh) customize the userland, install the kernel image
- centos-03.sh: install/update packages, setup Docker in the newly booted environment (doesn't work in chroot)
Please choose the correct device (e.g. SD card reader) to be taken in ubuntu-core-00.sh
/ debian-00.sh
/ centos-00.sh
.
Instructions for Centos (credit goes to KurtStam)
To create a brand new ubuntu, debian or centos image you will need a running Pine64 board and a USB adapter with the new memory microSD card. The following are instructions specific to centos, but it should be very similar for the other distrubutions.
-
Get a Pine64 running with one of the supported linux distributions
-
Login to the Pine64 and Ensure that git, curl, dosfstools are installed: apt-get install -y git curl dosfstools -- they may not be installed by default.
-
Checkout this repo: git clone https://github.com/umiddelb/z2d
-
Stick in the USB drive with the new memory card. Since it is the only device plugged in it should come up as /dev/dba, but you should double check this using
fdisk -l
to list all your devices. Update thedev
setting with the value you found in step 2.
cd z2d/pine64
vi centos-00.sh
- Run the centos-00.sh script, and the centos-01.sh script as long as there are no errors.
sh centos-00.sh
sh centos-01.sh
- If everything completes without errors you know have a bootable microSD card with a base Centos-7 distro running the latest longsleep kernel. After you boot up with this card, you will find two extra files on the file system: common-functions.sh an centos-03.sh. Editing and running the centos-03.sh script is optional. You can delete these files right after.