├── README.md
├── common
├── alpine-02.sh
├── alpine64-01.sh
├── centos-01.sh
├── centos64-01.sh
├── common-functions.sh
├── debian-01.sh
├── debian-docker-00.sh
├── debian64-docker-00.sh
├── devuan-01.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── fedora64-01.sh
├── setrootfs.sh
├── ubuntu-base-01.sh
├── ubuntu-docker-00.sh
└── ubuntu64-base-01.sh
├── cubox-i
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── rootfs
│ └── .02d
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── espresso-bin
├── README.md
├── common-functions.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── rootfs
│ └── .z2d
├── setrootfs.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── khadas-vim
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── fedora-00.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── u-boot.bin
├── u-boot.bin.sd.bin
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── khadas-vim2
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── fedora-00.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── u-boot-v2015.01_VIM2_Ubuntu_20180712.bin
├── u-boot-v2015.01_VIM2_Ubuntu_20180712.bin.sd.bin
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── odroid-c1
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── rootfs
│ └── .02d
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── odroid-c2
├── README.md
├── alpine-00.sh
├── alpine-01.sh
├── alpine-02.sh
├── alpine-03.sh
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── fedora-00.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── odroid-n1
├── README.md
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── odroid-n2
├── README.md
├── alpine-01.sh
├── alpine-02.sh
├── alpine-03.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
├── odroid-xu4
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── rootfs
│ └── .02d
├── setrootfs.sh
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
├── ubuntu-core-02.sh
└── ubuntu-docker-00.sh
├── pine64
├── Armbian_5.24_Pine64_U-Boot.bin
├── Armbian_5.35_Pine64_U-Boot.bin
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── fedora-00.sh
├── fedora-01.sh
├── fedora-02.sh
├── fedora-03.sh
├── rootfs
│ └── .z2d
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
└── utilite-pro
├── README.md
├── centos-00.sh
├── centos-01.sh
├── centos-02.sh
├── centos-03.sh
├── common-functions.sh
├── debian-00.sh
├── debian-01.sh
├── debian-02.sh
├── debian-docker-00.sh
├── devuan-00.sh
├── devuan-01.sh
├── devuan-02.sh
├── devuan-keyring-2016-archive.gpg
├── devuan-keyring-2016-cdimage.gpg
├── rootfs
└── .02d
├── ubuntu-base-00.sh
├── ubuntu-base-01.sh
├── ubuntu-base-02.sh
└── ubuntu-docker-00.sh
/README.md:
--------------------------------------------------------------------------------
1 | # Zero to Docker with Ubuntu Core, Debian or CentOS within 5 minutes
2 |
3 | This repo contains a collection of scripts helping you to set up Ubuntu Core 16.04 / Debian 8 Jessie / CentOS 7 and Docker
4 | on your ARM device within a couple minutes. Each subdirectory has this collection of scripts:
5 |
6 | ## Ubuntu Core
7 | - ubuntu-core-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
8 | - ubuntu-core-01.sh: unpacks the Ubuntu Core userland, prepare and jump into the chroot environment
9 | - ubuntu-core-02.sh: (invoked by ubuntu-core-01.sh) customize the userland, install gcc-5, install the kernel image
10 | - ubuntu-docker-00.sh: setup Docker in the newly booted environment (doesn't work in chroot)
11 |
12 | ## Debian
13 | - debian-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
14 | - debian-01.sh: debootstraps the Debian userland, prepare and jump into the chroot environment
15 | - debian-02.sh: (invoked by debian-01.sh) customize the userland, install gcc-5, install the kernel image
16 | - debian-docker-00.sh: setup Docker in the newly booted environment (doesn't work in chroot)
17 |
18 | ## CentOS
19 | - centos-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
20 | - centos-01.sh: unpacks the CentOS userland, prepare and jump into the chroot environment
21 | - centos-02.sh: (invoked by centos-01.sh) customize the userland, install the kernel image
22 | - centos-03.sh: install/update packages, setup Docker in the newly booted environment (doesn't work in chroot)
23 |
24 | Please choose the correct device (e.g. SD card reader) to be taken in `ubuntu-core-00.sh` / `debian-00.sh` / `centos-00.sh`.
25 |
--------------------------------------------------------------------------------
/common/alpine-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | echo "nameserver 1.1.1.1" >> /etc/resolv.conf
4 | apk update && apk upgrade
5 | apk add bash
6 | bash /alpine-03.sh
7 |
--------------------------------------------------------------------------------
/common/alpine64-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | curl -sSL https://nl.alpinelinux.org/alpine/v3.9/releases/aarch64/alpine-minirootfs-3.9.0-aarch64.tar.gz | sudo tar --numeric-owner -xpihzf - -C rootfs/
5 |
6 | sudo chmod 755 ./rootfs
7 | sudo cp alpine-02.sh alpine-03.sh ./rootfs
8 | sudo cp common-functions.sh ./rootfs
9 |
10 | sudo mount -o bind /dev ./rootfs/dev
11 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
12 | sudo mount -t sysfs /sys ./rootfs/sys
13 | sudo mount -t proc /proc ./rootfs/proc
14 |
15 | # sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs sh
16 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs sh /alpine-02.sh
17 | sudo rm ./rootfs/alpine-02.sh ./rootfs/alpine-03.sh ./rootfs/common-functions.sh
18 |
19 | set +e
20 | sudo umount -lf ./rootfs/dev/pts
21 | sudo umount -lf ./rootfs/sys
22 | sudo umount -lf ./rootfs/dev
23 | sudo umount -lf ./rootfs/proc
24 |
--------------------------------------------------------------------------------
/common/centos-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | curl -sSL https://armv7.dev.centos.org/repodir/images-testing/CentOS-Userland-7-armv7hl-RootFS-Minimal.tar.gz | sudo tar --numeric-owner -xpzf - -C rootfs/
5 |
6 | sudo cp centos-02.sh ./rootfs
7 | sudo cp centos-03.sh ./rootfs
8 | sudo cp common-functions.sh ./rootfs
9 |
10 | sudo mount -o bind /dev ./rootfs/dev
11 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
12 | sudo mount -t sysfs /sys ./rootfs/sys
13 | sudo mount -t proc /proc ./rootfs/proc
14 |
15 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs bash /centos-02.sh
16 | sudo rm ./rootfs/centos-02.sh
17 |
18 | set +e
19 | sudo umount -lf ./rootfs/dev/pts
20 | sudo umount -lf ./rootfs/sys
21 | sudo umount -lf ./rootfs/dev
22 | sudo umount -lf ./rootfs/proc
23 |
--------------------------------------------------------------------------------
/common/centos64-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | curl -sSL http://mirror.nsc.liu.se/centos-store/altarch/7.4.1708/isos/aarch64/CentOS-7-aarch64-rootfs-7.4.1708.tar.xz | xz -d | pv | sudo tar --numeric-owner -xpf - -C rootfs/
5 |
6 | sudo cp centos-02.sh ./rootfs
7 | sudo cp centos-03.sh ./rootfs
8 | sudo cp common-functions.sh ./rootfs
9 |
10 | sudo mount -o bind /dev ./rootfs/dev
11 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
12 | sudo mount -t sysfs /sys ./rootfs/sys
13 | sudo mount -t proc /proc ./rootfs/proc
14 |
15 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs bash /centos-02.sh
16 | sudo rm ./rootfs/centos-02.sh
17 |
18 | set +e
19 | sudo umount -lf ./rootfs/dev/pts
20 | sudo umount -lf ./rootfs/sys
21 | sudo umount -lf ./rootfs/dev
22 | sudo umount -lf ./rootfs/proc
23 |
--------------------------------------------------------------------------------
/common/common-functions.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | c_tzone () {
4 | ln -fs /usr/share/zoneinfo/$1 /etc/localtime
5 | dpkg-reconfigure -f noninteractive tzdata
6 | }
7 |
8 |
9 | c_hostname () {
10 | echo $1 > /etc/hostname
11 | echo "127.0.0.1 $1 localhost" >> /etc/hosts
12 | }
13 |
14 | c_apt_list () {
15 | echo "deb http://ports.ubuntu.com/ ${1} main restricted universe multiverse" > /etc/apt/sources.list
16 | echo "deb http://ports.ubuntu.com/ ${1}-security main restricted universe multiverse" >> /etc/apt/sources.list
17 | echo "deb http://ports.ubuntu.com/ ${1}-updates main restricted universe multiverse" >> /etc/apt/sources.list
18 | echo "deb http://ports.ubuntu.com/ ${1}-backports main restricted universe multiverse" >> /etc/apt/sources.list
19 | }
20 |
21 | c_apt_list_debian () {
22 | echo "deb http://ftp.debian.org/debian/ ${1} main contrib non-free" > /etc/apt/sources.list
23 | echo "deb http://ftp.debian.org/debian/ ${1}-updates main contrib non-free" >> /etc/apt/sources.list
24 | echo "deb http://ftp.debian.org/debian/ ${1}-backports main contrib non-free" >> /etc/apt/sources.list
25 | echo "deb http://security.debian.org/ ${1}/updates main contrib non-free" >> /etc/apt/sources.list
26 |
27 | # echo "APT::Default-Release \"${1}\";" > /etc/apt/apt.conf.d/99defaultrelease
28 |
29 | # echo "deb http://ftp.debian.org/debian/ stable main contrib non-free" > /etc/apt/sources.list.d/stable.list
30 | # echo "deb http://security.debian.org/ stable/updates main contrib non-free" >> /etc/apt/sources.list.d/stable.list
31 |
32 | # echo "deb http://ftp.debian.org/debian/ testing main contrib non-free" > /etc/apt/sources.list.d/testing.list
33 | # echo "deb http://security.debian.org/ testing/updates main contrib non-free" >> /etc/apt/sources.list.d/testing.list
34 | }
35 |
36 | c_yum_list_f23_prim () {
37 | echo \
38 | '[warning:fedora23]
39 | name=Fedora 23
40 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-23&arch=$basearch
41 | enabled=0
42 | gpgcheck=1
43 | gpgkey=https://getfedora.org/static/34EC9CBA.txt' \
44 | > /etc/yum.repos.d/Fedora23Repo.repo
45 | }
46 |
47 | c_yum_list_f23_second () {
48 | echo \
49 | '[warning:fedora23]
50 | name=Fedora 23
51 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-23&arch=$basearch
52 | enabled=0
53 | gpgcheck=1
54 | gpgkey=https://getfedora.org/static/873529B8.txt' \
55 | > /etc/yum.repos.d/Fedora23Repo.repo
56 | }
57 |
58 | c_yum_list_f24_prim () {
59 | echo \
60 | '[warning:fedora24]
61 | name=Fedora 24
62 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=$basearch
63 | enabled=0
64 | gpgcheck=1
65 | gpgkey=https://getfedora.org/static/81B46521.txt' \
66 | > /etc/yum.repos.d/Fedora24Repo.repo
67 | }
68 |
69 | c_yum_list_f24_second () {
70 | echo \
71 | '[warning:fedora24]
72 | name=Fedora 24
73 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=$basearch
74 | enabled=0
75 | gpgcheck=1
76 | gpgkey=https://getfedora.org/static/030D5AED.txt' \
77 | > /etc/yum.repos.d/Fedora24Repo.repo
78 | }
79 |
80 | c_yum_list_f25_prim () {
81 | echo \
82 | '[warning:fedora25]
83 | name=Fedora 25
84 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-25&arch=$basearch
85 | enabled=0
86 | gpgcheck=1
87 | gpgkey=https://getfedora.org/static/FDB19C98.txt' \
88 | > /etc/yum.repos.d/Fedora25Repo.repo
89 | }
90 |
91 | c_yum_list_f25_second () {
92 | echo \
93 | '[warning:fedora25]
94 | name=Fedora 25
95 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-25&arch=$basearch
96 | enabled=0
97 | gpgcheck=1
98 | gpgkey=https://getfedora.org/static/E372E838.txt' \
99 | > /etc/yum.repos.d/Fedora25Repo.repo
100 | }
101 |
102 | c_yum_list_f26_prim () {
103 | echo \
104 | '[warning:fedora26]
105 | name=Fedora 26
106 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-26&arch=$basearch
107 | enabled=0
108 | gpgcheck=1
109 | gpgkey=https://getfedora.org/static/64DAB85D.txt' \
110 | > /etc/yum.repos.d/Fedora26Repo.repo
111 | }
112 |
113 | c_yum_list_f26_second () {
114 | echo \
115 | '[warning:fedora26]
116 | name=Fedora 26
117 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-26&arch=$basearch
118 | enabled=0
119 | gpgcheck=1
120 | gpgkey=https://getfedora.org/static/3B921D09.txt' \
121 | > /etc/yum.repos.d/Fedora26Repo.repo
122 | }
123 |
124 | c_yum_list_f27_prim () {
125 | echo \
126 | '[warning:fedora27]
127 | name=Fedora 27
128 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-27&arch=$basearch
129 | enabled=0
130 | gpgcheck=1
131 | gpgkey=https://getfedora.org/static/F5282EE4.txt' \
132 | > /etc/yum.repos.d/Fedora27Repo.repo
133 | }
134 |
135 | c_yum_list_f27_second () {
136 | echo \
137 | '[warning:fedora27]
138 | name=Fedora 27
139 | mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-27&arch=$basearch
140 | enabled=0
141 | gpgcheck=1
142 | gpgkey=https://getfedora.org/static/F5282EE4.txt' \
143 | > /etc/yum.repos.d/Fedora27Repo.repo
144 | }
145 |
146 | # yum install epel-release
147 | c_yum_list_epel_aarch64 (){
148 | echo \
149 | '[unofficial-builds]
150 | name=CentOS unofficial extra package rebuild
151 | baseurl=https://dl.fedoraproject.org/pub/epel/7/aarch64/
152 | metadata_expire=6h
153 | gpgcheck=0
154 | skip_if_unavailable=True' \
155 | > /etc/yum.repos.d/EPEL.repo
156 | }
157 |
158 | c_yum_list_epel_armhf (){
159 | echo \
160 | '[unofficial-builds]
161 | name=CentOS unofficial extra package rebuild
162 | baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
163 | metadata_expire=6h
164 | gpgcheck=0
165 | skip_if_unavailable=True' \
166 | > /etc/yum.repos.d/EPEL.repo
167 | }
168 |
169 | c_nameserver () {
170 | for ((i = 1; i <= $#; i++)); do
171 | if (($i == 1)); then
172 | echo "nameserver ${!i}" > /etc/resolv.conf
173 | else
174 | echo "nameserver ${!i}" >> /etc/resolv.conf
175 | fi
176 | done
177 | }
178 |
179 | r_pkg_upgrade () {
180 | apt-get -q=2 update
181 | apt-get -q=2 -y upgrade
182 | apt-get -q=2 -y dist-upgrade
183 | }
184 |
185 | i_base () {
186 | # apt-get -q=2 -y install ubuntu-minimal software-properties-common curl u-boot-tools ssh linux-firmware vim libpam-systemd initramfs-tools
187 | # apt-get -q=2 -y install software-properties-common curl u-boot-tools ssh linux-firmware vim ifupdown
188 | apt-get -q=2 -y install software-properties-common curl u-boot-tools ssh linux-firmware vim
189 | }
190 |
191 | i_base_debian () {
192 | apt-get -q=2 -y install curl xz-utils u-boot-tools sudo openssh-server ntpdate ntp usbutils pciutils less lsof most sysfsutils ntfs-3g exfat-utils exfat-fuse firmware-linux libpam-systemd initramfs-tools
193 | }
194 |
195 | i_base_centos () {
196 | yum update -y
197 | yum install -y bc bridge-utils docker dtc iw lzop rcs screen sysfsutils usbutils pciutils wget lsof ntfs-3g net-tools
198 | yum clean all
199 | }
200 |
201 | i_base_fedora () {
202 | dnf update && dnf upgrade -y
203 | dnf install -y tar ntp bc bridge-utils docker dtc iw lzop rcs screen sysfsutils usbutils pciutils wget lsof ntfs-3g gcc most uboot-tools net-tools
204 | dnf clean all
205 | }
206 |
207 | i_extra () {
208 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils libssl-dev bison flex htop distcc parted git time pxz
209 | }
210 |
211 | i_gcc_6 () {
212 | add-apt-repository ppa:ubuntu-toolchain-r/test
213 | apt-get update
214 | apt-get -y install gcc-6 g++-6
215 | update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
216 | update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 60
217 | }
218 |
219 | # Install HK default distro kernel
220 | i_kernel_odroid_c1 () {
221 | #
222 | echo \
223 | '#!/bin/sh
224 | . /usr/share/initramfs-tools/hook-functions
225 | copy_exec /sbin/e2fsck /sbin
226 | copy_exec /sbin/fsck /sbin
227 | copy_exec /sbin/fsck.ext2 /sbin
228 | copy_exec /sbin/fsck.ext4 /sbin
229 | copy_exec /sbin/logsave /sbin' \
230 | > /etc/initramfs-tools/hooks/e2fsck.sh
231 | chmod +x /etc/initramfs-tools/hooks/e2fsck.sh
232 | #
233 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB19BAC9
234 | echo "deb http://deb.odroid.in/c1/ trusty main" > /etc/apt/sources.list.d/odroid.list
235 | echo "deb http://deb.odroid.in/ trusty main" >> /etc/apt/sources.list.d/odroid.list
236 | apt-get -q=2 update
237 | mkdir -p /media/boot
238 | apt-get -q=2 -y install linux-image-3.10.80-142 linux-headers-3.10.80-142 bootini
239 | #
240 | cp /boot/uImage* /media/boot/uImage
241 | #
242 | # U-571
243 | mkdir -p /boot/conf.d/system.default
244 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c1/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
245 | (cd /boot/conf.d/ ; ln -s system.default default)
246 | (cd /boot/conf.d/system.default; ln -s /media/boot/ kernel)
247 | }
248 |
249 | i_kernel_odroid_c1_310 () {
250 | curl -sSL https://www.dropbox.com/s/y5tg1o41qif8rkq/linux-3.10.96-c1.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
251 | # U-571
252 | mkdir -p /boot/conf.d/system.default
253 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c1/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
254 | (cd /boot/conf.d/ ; ln -s system.default default)
255 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-c1 kernel)
256 | }
257 |
258 |
259 | # Install HK default distro kernel
260 | i_kernel_odroid_c2 () {
261 | #
262 | echo \
263 | '#!/bin/sh
264 | . /usr/share/initramfs-tools/hook-functions
265 | copy_exec /sbin/e2fsck /sbin
266 | copy_exec /sbin/fsck /sbin
267 | copy_exec /sbin/fsck.ext2 /sbin
268 | copy_exec /sbin/fsck.ext4 /sbin
269 | copy_exec /sbin/logsave /sbin' \
270 | > /etc/initramfs-tools/hooks/e2fsck.sh
271 | chmod +x /etc/initramfs-tools/hooks/e2fsck.sh
272 | #
273 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB19BAC9
274 | echo "deb http://deb.odroid.in/c2/ xenial main" > /etc/apt/sources.list.d/odroid.list
275 | apt-get -q=2 update
276 | mkdir -p /media/boot
277 | apt-get -q=2 -y install linux-image-c2 bootini
278 | # U-571
279 | mkdir -p /boot/conf.d/system.default
280 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c2/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
281 | (cd /boot/conf.d/ ; ln -s system.default default)
282 | (cd /boot/conf.d/system.default; ln -s /media/boot/ kernel)
283 | }
284 |
285 | i_kernel_khadas_vim_31429 () {
286 | curl -sSL https://www.dropbox.com/s/8uu3p6lpg5mb08l/linux-3.14.29-kvim.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
287 | # U-571
288 | mkdir -p /boot/conf.d/system.default
289 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/khadas-vim/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
290 | (cd /boot/conf.d/ ; ln -s system.default default)
291 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-* kernel)
292 | (cd /boot; ln -s kernel.d/linux-*/config-* .)
293 | }
294 |
295 | i_kernel_khadas_vim2_419 () {
296 | curl -sSL https://www.dropbox.com/s/crutlo0qyzhm0zh/linux-4.19.0-gx-221505-gdecf108.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
297 | # U-571
298 | mkdir -p /boot/conf.d/system.default
299 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/khadas-vim2/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
300 | (cd /boot/conf.d/ ; ln -s system.default default)
301 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-gx* kernel)
302 | (cd /boot; ln -s kernel.d/linux-*/config-* .)
303 | }
304 |
305 | i_kernel_odroid_c2_419 () {
306 | curl -sSL https://www.dropbox.com/s/crutlo0qyzhm0zh/linux-4.19.0-gx-221505-gdecf108.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
307 | # U-571
308 | mkdir -p /boot/conf.d/system.default
309 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c2/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
310 | (cd /boot/conf.d/ ; ln -s system.default default)
311 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-gx* kernel)
312 | (cd /boot; ln -s kernel.d/linux-*/config-* .)
313 | }
314 |
315 | i_kernel_odroid_n1_44 () {
316 | curl -sSL https://www.dropbox.com/s/9bm6x8zeizdcqc2/linux-4.4.112-n1.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
317 | # U-571
318 | mkdir -p /boot/conf.d/system.default
319 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-n1/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
320 | (cd /boot/conf.d/ ; ln -s system.default default)
321 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-n1* kernel)
322 | (cd /boot; ln -s kernel.d/linux-*/config-* .)
323 | }
324 |
325 | i_kernel_odroid_n2_49 () {
326 | curl -sSL https://www.dropbox.com/s/e0usa1hy934w9qp/linux-4.9.160-n2-169894-g300d0f15a969.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
327 | # U-571
328 | mkdir -p /boot/conf.d/system.default
329 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-n2/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
330 | (cd /boot/conf.d/ ; ln -s system.default default)
331 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-n2* kernel)
332 | (cd /boot; ln -s kernel.d/linux-*/config-* .)
333 | }
334 |
335 | i_kernel_odroid_xu4 () {
336 | #
337 | echo \
338 | '#!/bin/sh
339 | . /usr/share/initramfs-tools/hook-functions
340 | copy_exec /sbin/e2fsck /sbin
341 | copy_exec /sbin/fsck /sbin
342 | copy_exec /sbin/fsck.ext2 /sbin
343 | copy_exec /sbin/fsck.ext4 /sbin
344 | copy_exec /sbin/logsave /sbin' \
345 | > /etc/initramfs-tools/hooks/e2fsck.sh
346 | chmod +x /etc/initramfs-tools/hooks/e2fsck.sh
347 | #
348 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB19BAC9
349 | echo "deb http://deb.odroid.in/5422/ wily main" > /etc/apt/sources.list.d/odroid.list
350 | echo "deb http://deb.odroid.in/ wily main" >> /etc/apt/sources.list.d/odroid.list
351 | apt-get -q=2 update
352 | mkdir -p /media/boot
353 | apt-get -q=2 -y install linux-image-xu3 bootini
354 | # U-571
355 | mkdir -p /boot/conf.d/system.default
356 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-xu4/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
357 | (cd /boot/conf.d/ ; ln -s system.default default)
358 | (cd /boot/conf.d/system.default; ln -s /media/boot/ kernel)
359 | }
360 |
361 | i_kernel_odroid_xu3_31096 () {
362 | curl -sSL https://www.dropbox.com/s/dq3txlc498i9c41/linux-3.10.96-xu3.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
363 | # U-571
364 | mkdir -p /boot/conf.d/system.default
365 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-xu4/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
366 | (cd /boot/conf.d/ ; ln -s system.default default)
367 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-xu3 kernel)
368 | }
369 |
370 | i_kernel_odroid_xu4_490 () {
371 | curl -sSL https://www.dropbox.com/s/f3ua6fahdszs6ka/linux-4.9.65-xu4-00008-g8bac128.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
372 | # U-571
373 | mkdir -p /boot/conf.d/system.default
374 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-xu4/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
375 | (cd /boot/conf.d/ ; ln -s system.default default)
376 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-xu4* kernel)
377 | }
378 |
379 | i_kernel_odroid_xu4_414 () {
380 | curl -sSL https://www.dropbox.com/s/k2b60mthkjgfl5s/linux-4.14.33-xu4-01462-g26c5a82.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
381 | # U-571
382 | mkdir -p /boot/conf.d/system.default
383 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-xu4/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
384 | (cd /boot/conf.d/ ; ln -s system.default default)
385 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-xu4* kernel)
386 | }
387 |
388 | i_kernel_utilite_pro () {
389 | curl -sSL https://www.dropbox.com/s/qvz7ec511ve4551/linux-4.16.0-imx6-177113-gc19335c.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
390 | # U-571
391 | mkdir -p /boot/conf.d/system.default
392 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/utilite-pro/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
393 | (cd /boot/conf.d/ ; ln -s system.default default)
394 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-imx6* kernel)
395 | }
396 |
397 | i_kernel_cubox_i () {
398 | curl -sSL https://www.dropbox.com/s/qvz7ec511ve4551/linux-4.16.0-imx6-177113-gc19335c.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
399 | # U-571
400 | mkdir -p /boot/conf.d/system.default
401 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/cubox-i/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
402 | (cd /boot/conf.d/ ; ln -s system.default default)
403 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-imx6* kernel)
404 | }
405 |
406 | i_kernel_pine64 () {
407 | curl -sSL https://www.dropbox.com/s/v3uyo6cer7gnj4x/linux-4.9.35-p64-gd3c7ef9.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
408 | # U-571
409 | mkdir -p /boot/conf.d/system.default
410 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/pine64%2B/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
411 | (cd /boot/conf.d/ ; ln -s system.default default)
412 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-*-p64* kernel)
413 | }
414 |
415 | i_kernel_espresso_bin () {
416 | curl -sSL https://www.dropbox.com/s/s2hhxaxb42hvf3w/linux-4.12.0-ebin-117139-gab5ee85.tar.xz?dl=0 | tar --numeric-owner -xhJpf -
417 | # U-571
418 | mkdir -p /boot/conf.d/system.default
419 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/espresso-bin/uEnv.txt > /boot/conf.d/system.default/uEnv.txt
420 | (cd /boot/conf.d/ ; ln -s system.default default)
421 | (cd /boot/conf.d/system.default; ln -s ../../kernel.d/linux-* kernel)
422 | }
423 |
424 | c_if_lo () {
425 | echo "auto lo" > /etc/network/interfaces.d/lo
426 | echo "iface lo inet loopback" >> /etc/network/interfaces.d/lo
427 | }
428 |
429 | c_if_dhcp () {
430 | echo "auto $1" >/etc/network/interfaces.d/$1
431 | echo "iface $1 inet dhcp" >>/etc/network/interfaces.d/$1
432 | }
433 |
434 | c_if_netplan (){
435 | echo \
436 | "network:
437 | version: 2
438 | renderer: networkd
439 | ethernets:
440 | $1:
441 | dhcp4: true" \
442 | > /etc/netplan/config.yaml
443 | }
444 |
445 | c_ttyS () {
446 | echo "start on stopped rc or RUNLEVEL=[12345]" > /etc/init/${1}.conf
447 | echo "stop on runlevel [!12345]" >> /etc/init/${1}.conf
448 | echo "respawn" >> /etc/init/${1}.conf
449 | echo "exec /sbin/getty -L 115200 $1 vt102" >> /etc/init/${1}.conf
450 | }
451 |
452 | c_ttyS_debian () {
453 | echo T0:2345:respawn:/sbin/getty -L $1 115200 vt100 >> etc/inittab
454 | }
455 |
456 | c_fw_utils () {
457 | echo "$1" > /etc/fw_env.config
458 | }
459 |
460 | c_user () {
461 | adduser --gecos '' $1
462 | usermod -aG adm,cdrom,dialout,sudo,plugdev $1
463 | }
464 |
465 | c_docker_centos_fedora () {
466 | echo "STORAGE_DRIVER=overlay" >> /etc/sysconfig/docker-storage-setup
467 | docker-storage-setup
468 | systemctl enable docker
469 | systemctl start docker
470 | }
471 |
472 | c_locale () {
473 | for s in $@; do
474 | locale-gen $s
475 | done
476 | export LC_ALL="$1"
477 | update-locale LC_ALL="$1" LANG="$1" LC_MESSAGES=POSIX
478 | dpkg-reconfigure -f noninteractive locales
479 | }
480 |
481 | c_locale_debian () {
482 | for ((i = 1; i <= $#; i++)); do
483 | if (($i == 1)); then
484 | echo "${!i} UTF-8" > /etc/locale.gen
485 | else
486 | echo "${!i} UTF-8" >> /etc/locale.gen
487 | fi
488 | done
489 | locale-gen
490 | debconf-set-selections <<< "locales locales/default_environment_locale select $1"
491 | dpkg-reconfigure -f noninteractive locales
492 | }
493 |
494 |
--------------------------------------------------------------------------------
/common/debian-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | sudo apt-get install debootstrap
5 |
6 | sudo debootstrap --foreign --include=vim,locales,dialog,apt stretch rootfs http://ftp.debian.org/debian
7 |
8 | sudo mount -o bind /dev ./rootfs/dev
9 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
10 | sudo mount -o bind /sys ./rootfs/sys
11 | sudo mount -o bind /proc ./rootfs/proc
12 | sudo cp /proc/mounts ./rootfs/etc/mtab
13 | sudo cp debian-02.sh ./rootfs
14 | sudo cp common-functions.sh ./rootfs
15 | sudo cp debian-docker-00.sh ./rootfs
16 |
17 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs bash /debian-02.sh
18 | sudo rm ./rootfs/debian-02.sh
19 | sudo rm ./rootfs/common-functions.sh
20 |
21 | set +e
22 | sudo umount -lf ./rootfs/dev/pts
23 | sudo umount -lf ./rootfs/sys
24 | sudo umount -lf ./rootfs/dev
25 | sudo umount -lf ./rootfs/proc
26 |
--------------------------------------------------------------------------------
/common/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
4 |
5 | curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
6 |
7 | echo "deb https://download.docker.com/linux/debian $(lsb_release -cs) test" | sudo tee /etc/apt/sources.list.d/docker.list
8 |
9 | sudo apt-get update
10 | sudo apt-get install -y docker-ce
11 |
12 | sudo usermod -aG docker debian
13 |
--------------------------------------------------------------------------------
/common/debian64-docker-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | sudo apt-get -y install lxc aufs-tools cgroupfs-mount cgroup-bin apparmor
4 | curl -sSL https://github.com/docbobo/docker/releases/download/v17.05.0-ce/{docker-engine_17.05.0.ce-0.debian-jessie_arm64.deb} -o /tmp/#1
5 | sudo apt install libltdl7
6 | sudo dpkg -i /tmp/docker-engine_*.deb
7 | rm -f /tmp/docker-engine_*.deb
8 | sudo usermod -aG docker debian
9 |
--------------------------------------------------------------------------------
/common/devuan-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | sudo apt-get install debootstrap
5 |
6 | sudo debootstrap --foreign --include=vim,locales,dialog,apt --no-check-gpg jessie rootfs http://auto.mirror.devuan.org/merged
7 |
8 | sudo mount -o bind /dev ./rootfs/dev
9 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
10 | sudo mount -o bind /sys ./rootfs/sys
11 | sudo mount -o bind /proc ./rootfs/proc
12 | sudo cp /proc/mounts ./rootfs/etc/mtab
13 | sudo cp devuan-02.sh ./rootfs
14 | sudo cp common-functions.sh ./rootfs
15 |
16 | sudo mkdir ./rootfs/etc/apt/trusted.gpg.d
17 | sudo cp devuan-keyring-2016-archive.gpg devuan-keyring-2016-cdimage.gpg ./rootfs/etc/apt/trusted.gpg.d
18 |
19 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs bash /devuan-02.sh
20 | sudo rm ./rootfs/devuan-02.sh
21 | sudo rm ./rootfs/common-functions.sh
22 |
23 | set +e
24 | sudo umount -lf ./rootfs/dev/pts
25 | sudo umount -lf ./rootfs/sys
26 | sudo umount -lf ./rootfs/dev
27 | sudo umount -lf ./rootfs/proc
28 |
--------------------------------------------------------------------------------
/common/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/common/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/common/fedora64-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | curl -sSL https://www.dropbox.com/s/kyho4pydt7dm0ti/Fedora-Server-28-1.1.aarch64.tar.xz?dl=0 | sudo tar --numeric-owner -xpihJf - -C rootfs/
5 |
6 | sudo cp fedora-02.sh ./rootfs
7 | sudo cp fedora-03.sh ./rootfs
8 | sudo cp common-functions.sh ./rootfs
9 |
10 | sudo mount -o bind /dev ./rootfs/dev
11 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
12 | sudo mount -t sysfs /sys ./rootfs/sys
13 | sudo mount -t proc /proc ./rootfs/proc
14 |
15 | sudo LC_ALL=C LANGUAGE=C LANG=C chroot ./rootfs bash /fedora-02.sh
16 | sudo rm ./rootfs/fedora-02.sh
17 |
18 | set +e
19 | sudo umount -lf ./rootfs/dev/pts
20 | sudo umount -lf ./rootfs/sys
21 | sudo umount -lf ./rootfs/dev
22 | sudo umount -lf ./rootfs/proc
23 |
--------------------------------------------------------------------------------
/common/setrootfs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | uuid=`sudo blkid $1 | tr ' ' '\n' | grep ^UUID= | tr -d '"'`
4 | sudo sed -i -e "s/UUID=\\w*-\\w*-\\w*-\\w*-\\w*/$uuid/" ./rootfs/boot/conf.d/default/uEnv.txt
5 |
--------------------------------------------------------------------------------
/common/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -ex
4 |
5 | curl -sSL http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ubuntu-base-18.04-base-armhf.tar.gz | sudo tar --numeric-owner -xpzf - -C rootfs/
6 |
7 | sudo mount -o bind /dev ./rootfs/dev
8 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
9 | sudo mount -t sysfs /sys ./rootfs/sys
10 | sudo mount -t proc /proc ./rootfs/proc
11 | sudo cp /proc/mounts ./rootfs/etc/mtab
12 | sudo cp ubuntu-base-02.sh ./rootfs
13 | sudo cp common-functions.sh ./rootfs
14 | sudo cp ubuntu-docker-00.sh ./rootfs
15 |
16 | sudo chroot ./rootfs bash /ubuntu-base-02.sh
17 | sudo rm ./rootfs/ubuntu-base-02.sh
18 | sudo rm ./rootfs/common-functions.sh
19 |
20 | sudo umount ./rootfs/dev/pts
21 | sudo umount ./rootfs/sys
22 | sudo umount -l ./rootfs/dev
23 | sudo umount -l ./rootfs/proc
24 |
--------------------------------------------------------------------------------
/common/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | sudo apt-get -y install lxc aufs-tools cgroup-lite apparmor docker.io
4 | sudo usermod -aG docker ubuntu
5 |
--------------------------------------------------------------------------------
/common/ubuntu64-base-01.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -ex
4 |
5 | curl -sSL http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ubuntu-base-18.04-base-arm64.tar.gz | sudo tar --numeric-owner -xpzf - -C rootfs/
6 |
7 | sudo mount -o bind /dev ./rootfs/dev
8 | sudo mount -o bind /dev/pts ./rootfs/dev/pts
9 | sudo mount -t sysfs /sys ./rootfs/sys
10 | sudo mount -t proc /proc ./rootfs/proc
11 | sudo cp /proc/mounts ./rootfs/etc/mtab
12 | sudo cp ubuntu-base-02.sh ./rootfs
13 | sudo cp common-functions.sh ./rootfs
14 | sudo cp ubuntu-docker-00.sh ./rootfs
15 |
16 | sudo chroot ./rootfs bash /ubuntu-base-02.sh
17 | sudo rm ./rootfs/ubuntu-base-02.sh
18 | sudo rm ./rootfs/common-functions.sh
19 |
20 | sudo umount ./rootfs/dev/pts
21 | sudo umount ./rootfs/sys
22 | sudo umount -l ./rootfs/dev
23 | sudo umount -l ./rootfs/proc
24 |
25 |
--------------------------------------------------------------------------------
/cubox-i/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu Core 14.04.2 & Docker on the SolidRun CuBox-i and HummingBoard
2 |
--------------------------------------------------------------------------------
/cubox-i/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/cubox-i/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos-01.sh
--------------------------------------------------------------------------------
/cubox-i/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | mv /etc/fstab /etc/fstab.rpmdefault
9 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
10 |
11 | i_kernel_cubox_i
12 |
13 | passwd root
14 | adduser -c '' centos
15 | usermod -aG adm,cdrom,wheel,dialout centos
16 | passwd centos
17 |
--------------------------------------------------------------------------------
/cubox-i/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname cbxi --static
13 | hostnamectl set-hostname "SolidRun CuBox-i" --pretty
14 |
15 | c_yum_list_epel_armhf
16 | c_yum_list_f25_prim
17 | i_base_centos
18 |
19 | # c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0x60000 0x2000 0x2000"
22 |
--------------------------------------------------------------------------------
/cubox-i/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/cubox-i/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/cubox-i/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/cubox-i/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "cbxi"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 |
17 | i_base_debian
18 | #i_extra
19 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils
20 |
21 | i_kernel_cubox_i
22 |
23 | c_if_lo
24 | c_if_dhcp "eth0"
25 | c_ttyS_debian "ttymxc0"
26 | c_fw_utils "/dev/mmcblk0 0x60000 0x2000 0x2000"
27 | c_user "debian"
28 |
29 | apt-get clean
30 |
31 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
32 |
--------------------------------------------------------------------------------
/cubox-i/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-docker-00.sh
--------------------------------------------------------------------------------
/cubox-i/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/cubox-i/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/cubox-i/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | echo \
7 | 'deb http://auto.mirror.devuan.org/merged jessie main
8 | deb http://auto.mirror.devuan.org/merged jessie-updates main
9 | deb http://auto.mirror.devuan.org/merged jessie-security main
10 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
11 | > /etc/apt/sources.list
12 |
13 |
14 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
15 | c_tzone "Europe/Berlin"
16 | c_hostname "cbxi"
17 | c_nameserver "8.8.8.8"
18 |
19 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
20 | export DEBIAN_FRONTEND=noninteractive
21 |
22 | r_pkg_upgrade
23 | i_base_debian
24 |
25 | # i_extra_debian
26 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
27 |
28 | i_kernel_cubox_i
29 |
30 | c_if_lo
31 | c_if_dhcp "eth0"
32 | c_ttyS_debian "ttymxc0"
33 | c_fw_utils "/dev/mmcblk0 0x60000 0x2000 0x2000"
34 | c_user "devuan"
35 |
36 | apt-get clean
37 |
38 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
39 |
--------------------------------------------------------------------------------
/cubox-i/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/cubox-i/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/cubox-i/rootfs/.02d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/cubox-i/rootfs/.02d
--------------------------------------------------------------------------------
/cubox-i/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=sdb
4 |
5 | /bin/echo -e "o\nn\np\n1\n2048\n\nw\n" | sudo fdisk /dev/$dev
6 | sync
7 | sudo partprobe -s /dev/$dev
8 |
9 | curl -sSL https://github.com/umiddelb/u-boot-imx6/raw/imx6/bin/SPL | sudo dd of=/dev/$dev bs=1k seek=1
10 | curl -sSL https://github.com/umiddelb/u-boot-imx6/raw/imx6/bin/u-boot.img | sudo dd of=/dev/$dev bs=1k seek=42
11 | sync
12 |
13 | sudo mkfs.ext4 -O ^has_journal -b 4096 -U deadbeef-dead-beef-dead-beefdeadbeef -L rootfs /dev/${dev}1
14 | sudo mount /dev/${dev}1 ./rootfs
15 |
--------------------------------------------------------------------------------
/cubox-i/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-base-01.sh
--------------------------------------------------------------------------------
/cubox-i/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "cbxi"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_cubox_i
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x60000 0x2000 0x2000"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/cubox-i/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/espresso-bin/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 8 Jessie & Docker on the Espresso Bin
2 |
--------------------------------------------------------------------------------
/espresso-bin/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/espresso-bin/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/espresso-bin/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "ebin"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 | i_base_debian
17 |
18 | # i_extra_debian
19 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc man-db ntp usbutils pciutils lsof most sysfsutils firmware-realtek
20 |
21 | #i_kernel_...
22 | i_kernel_espresso_bin
23 |
24 | c_if_lo
25 | c_if_dhcp "lan0"
26 | echo " pre-up /sbin/ip link set eth0 up" >> /etc/network/interfaces.d/lan0
27 |
28 | c_ttyS "ttyMV0"
29 | c_fw_utils "/dev/mtd1 0x0 0x00010000 0x1000 0x10"
30 | c_user "debian"
31 |
32 | apt-get clean
33 |
34 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
35 |
--------------------------------------------------------------------------------
/espresso-bin/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian64-docker-00.sh
--------------------------------------------------------------------------------
/espresso-bin/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/espresso-bin/rootfs/.z2d
--------------------------------------------------------------------------------
/espresso-bin/setrootfs.sh:
--------------------------------------------------------------------------------
1 | ../common/setrootfs.sh
--------------------------------------------------------------------------------
/espresso-bin/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/espresso-bin/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "ebin"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_espresso_bin
18 | c_if_netplan "lan0"
19 | netplan apply
20 | c_fw_utils "/dev/mtd1 0x0 0x00010000 0x1000 0x10"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/espresso-bin/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/khadas-vim/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 8 Jessie & Docker on the Khadas VIM
2 |
--------------------------------------------------------------------------------
/khadas-vim/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/khadas-vim/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_khadas_vim_31429
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/khadas-vim/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname kvim --static
13 | hostnamectl set-hostname "Khadas VIM" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0x7400000 0x10000"
22 |
--------------------------------------------------------------------------------
/khadas-vim/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/khadas-vim/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/khadas-vim/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "kvim"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 | i_base_debian
17 |
18 | # i_extra_debian
19 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc man-db ntp usbutils pciutils lsof most sysfsutils
20 |
21 | i_kernel_khadas_vim_31429
22 |
23 | c_if_lo
24 | c_if_dhcp "eth0"
25 | c_ttyS_debian "ttyS0"
26 | c_fw_utils "/dev/mmcblk0 0x7400000 0x10000"
27 | c_user "debian"
28 |
29 | apt-get clean
30 |
31 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
32 |
--------------------------------------------------------------------------------
/khadas-vim/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian64-docker-00.sh
--------------------------------------------------------------------------------
/khadas-vim/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/khadas-vim/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | echo \
7 | 'deb http://auto.mirror.devuan.org/merged jessie main
8 | deb http://auto.mirror.devuan.org/merged jessie-updates main
9 | deb http://auto.mirror.devuan.org/merged jessie-security main
10 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
11 | > /etc/apt/sources.list
12 |
13 |
14 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
15 | c_tzone "Europe/Berlin"
16 | c_hostname "kvim"
17 | c_nameserver "8.8.8.8"
18 |
19 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
20 | export DEBIAN_FRONTEND=noninteractive
21 |
22 | r_pkg_upgrade
23 | i_base_debian
24 |
25 | # i_extra_debian
26 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
27 |
28 | # i_gcc_debian
29 | i_kernel_khadas_vim_31429
30 |
31 | c_if_lo
32 | c_if_dhcp "eth0"
33 | c_ttyS_debian "ttyS0"
34 | c_fw_utils "/dev/mmcblk0 0x7400000 0x10000"
35 | c_user "devuan"
36 |
37 | apt-get clean
38 |
39 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
40 |
--------------------------------------------------------------------------------
/khadas-vim/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/khadas-vim/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/khadas-vim/fedora-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/khadas-vim/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_khadas_vim_31429
11 |
12 | c_fw_utils "/dev/mmcblk0 0x7400000 0x10000"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
--------------------------------------------------------------------------------
/khadas-vim/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname kvim --static
12 | hostnamectl set-hostname "Khadas VIM" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/khadas-vim/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim/rootfs/.z2d
--------------------------------------------------------------------------------
/khadas-vim/u-boot.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim/u-boot.bin
--------------------------------------------------------------------------------
/khadas-vim/u-boot.bin.sd.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim/u-boot.bin.sd.bin
--------------------------------------------------------------------------------
/khadas-vim/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk0
4 |
5 | /bin/echo -e "o\nn\np\n1\n3072\n\nw\n" | sudo fdisk /dev/$dev
6 | sync
7 | sudo partprobe -s /dev/$dev
8 |
9 | sudo dd if=u-boot.bin.sd.bin of=/dev/$dev conv=fsync,notrunc bs=1 count=444
10 | sudo dd if=u-boot.bin.sd.bin of=/dev/$dev conv=fsync,notrunc bs=512 skip=1 seek=1
11 |
12 | sync
13 |
14 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
15 | chmod +x uboot-env
16 | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 del -I
17 | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 del -i
18 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/khadas-vim/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 set
19 | sync
20 |
21 | sudo mkfs.ext4 -O ^has_journal -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}p1
22 | sudo mount /dev/${dev}p1 ./rootfs
23 |
--------------------------------------------------------------------------------
/khadas-vim/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/khadas-vim/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "kvim"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_khadas_vim_31429
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x7400000 0x10000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/khadas-vim/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/khadas-vim2/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 8 Jessie & Docker on the Khadas VIM
2 |
--------------------------------------------------------------------------------
/khadas-vim2/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim2/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/khadas-vim2/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_khadas_vim2_419
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/khadas-vim2/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname kvim2 --static
13 | hostnamectl set-hostname "Khadas VIM2" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | #c_fw_utils "/dev/mmcblk0 0x7400000 0x10000 0x200"
22 | c_fw_utils "/dev/mmcblk0 0x06c00000 0x10000 0x200"
23 |
--------------------------------------------------------------------------------
/khadas-vim2/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/khadas-vim2/fedora-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/khadas-vim2/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/khadas-vim2/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_khadas_vim2_419
11 |
12 | c_fw_utils "/dev/mmcblk1 0x06c00000 0x10000 0x200"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
--------------------------------------------------------------------------------
/khadas-vim2/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname kvim2 --static
12 | hostnamectl set-hostname "Khadas VIM2" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/khadas-vim2/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim2/rootfs/.z2d
--------------------------------------------------------------------------------
/khadas-vim2/u-boot-v2015.01_VIM2_Ubuntu_20180712.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim2/u-boot-v2015.01_VIM2_Ubuntu_20180712.bin
--------------------------------------------------------------------------------
/khadas-vim2/u-boot-v2015.01_VIM2_Ubuntu_20180712.bin.sd.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/khadas-vim2/u-boot-v2015.01_VIM2_Ubuntu_20180712.bin.sd.bin
--------------------------------------------------------------------------------
/khadas-vim2/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk0
4 |
5 | /bin/echo -e "o\nn\np\n1\n3072\n\nw\n" | sudo fdisk /dev/$dev
6 | sync
7 | sudo partprobe -s /dev/$dev
8 |
9 | sudo dd if=u-boot-v2015.01_VIM2_Ubuntu_20180712.bin.sd.bin of=/dev/mmcblk0 conv=fsync,notrunc bs=1 count=444
10 | sudo dd if=u-boot-v2015.01_VIM2_Ubuntu_20180712.bin.sd.bin of=/dev/mmcblk0 conv=fsync,notrunc bs=512 skip=1 seek=1
11 |
12 | sync
13 |
14 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
15 | chmod +x uboot-env
16 | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 del -I
17 | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 del -i
18 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/khadas-vim/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0x7400000 -l 0x10000 set
19 | sync
20 |
21 | sudo mkfs.ext4 -O ^has_journal -O ^64bit -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}p1
22 | sudo mount /dev/${dev}p1 ./rootfs
23 |
--------------------------------------------------------------------------------
/khadas-vim2/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/khadas-vim2/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "kvim2"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_khadas_vim2_419
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk1 0x06c00000 0x10000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/khadas-vim2/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/odroid-c1/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu Core 14.04.2 & Docker on the ODROID C1
2 |
--------------------------------------------------------------------------------
/odroid-c1/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c1/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos-01.sh
--------------------------------------------------------------------------------
/odroid-c1/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | mv /etc/fstab /etc/fstab.rpmdefault
9 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
10 |
11 | i_kernel_odroid_c1_310
12 |
13 | passwd root
14 | adduser -c '' centos
15 | usermod -aG adm,cdrom,wheel,dialout centos
16 | passwd centos
17 |
--------------------------------------------------------------------------------
/odroid-c1/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname c1 --static
13 | hostnamectl set-hostname "ODROID-C1" --pretty
14 |
15 | yum update -y
16 | yum install -y bc bridge-utils dtc iw lzop rcs screen sysfsutils usbutils wget
17 | c_yum_list_f23_prim
18 | yum install -y gcc docker --enablerepo=warning:fedora23
19 | c_yum_list_f24_prim
20 | yum install -y most ntfs-3g uboot-tools --enablerepo=warning:fedora24
21 | yum clean all
22 |
23 | mv /etc/fw_env.config /etc/fw_env.config.rpmdefault
24 | c_fw_utils "/dev/mmcblk0 0x80000 0x8000"
25 |
--------------------------------------------------------------------------------
/odroid-c1/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/odroid-c1/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c1/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/odroid-c1/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "c1"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 |
17 | i_base_debian
18 | #i_extra
19 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils
20 | i_kernel_odroid_c1
21 |
22 | c_if_lo
23 | c_if_dhcp "eth0"
24 | c_ttyS_debian "ttyS0"
25 | c_fw_utils "/dev/mmcblk0 0x80000 0x8000"
26 | c_user "debian"
27 |
28 | apt-get clean
29 |
30 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
31 |
--------------------------------------------------------------------------------
/odroid-c1/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-docker-00.sh
--------------------------------------------------------------------------------
/odroid-c1/rootfs/.02d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/odroid-c1/rootfs/.02d
--------------------------------------------------------------------------------
/odroid-c1/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk1
4 |
5 | /bin/echo -e "o\nn\np\n1\n3072\n\nw\n" | sudo fdisk /dev/${dev}
6 | sync
7 | sudo partprobe -s /dev/${dev}
8 |
9 | curl -sSL https://raw.githubusercontent.com/mdrjr/c1_uboot_binaries/master/bl1.bin.hardkernel > /tmp/bl1.bin.hardkernel
10 | curl -sSL https://raw.githubusercontent.com/mdrjr/c1_uboot_binaries/master/u-boot.bin > /tmp/u-boot.bin
11 | sudo dd if=/tmp/bl1.bin.hardkernel of=/dev/$dev bs=1 count=442
12 | sudo dd if=/tmp/bl1.bin.hardkernel of=/dev/$dev bs=512 skip=1 seek=1
13 | sudo dd if=/tmp/u-boot.bin of=/dev/$dev bs=512 seek=64
14 | rm -f /tmp/bl1.bin.hardkernel /tmp/u-boot.bin
15 | sync
16 |
17 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
18 | chmod +x uboot-env
19 | sudo ./uboot-env -d /dev/${dev} -o 0x80000 -l 0x8000 del -I
20 | sudo ./uboot-env -d /dev/${dev} -o 0x80000 -l 0x8000 del -i
21 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c1/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0x80000 -l 0x8000 set
22 | sync
23 |
24 | sudo mkfs.ext4 -O ^has_journal -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}p1
25 | sudo mount /dev/${dev}p1 ./rootfs
26 |
--------------------------------------------------------------------------------
/odroid-c1/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-base-01.sh
--------------------------------------------------------------------------------
/odroid-c1/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "c1"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_odroid_c1_310
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x80000 0x8000"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-c1/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/odroid-c2/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 8 Jessie & Docker on the ODROID C2
2 |
--------------------------------------------------------------------------------
/odroid-c2/alpine-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c2/alpine-01.sh:
--------------------------------------------------------------------------------
1 | ../common/alpine64-01.sh
--------------------------------------------------------------------------------
/odroid-c2/alpine-02.sh:
--------------------------------------------------------------------------------
1 | ../common/alpine-02.sh
--------------------------------------------------------------------------------
/odroid-c2/alpine-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "\
9 | @edge http://dl-cdn.alpinelinux.org/alpine/edge/main
10 | @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" \
11 | >> /etc/apk/repositories
12 |
13 | apk update && apk upgrade
14 |
15 | # setup locale
16 | echo "\
17 | LC_ALL=en_GB.UTF-8
18 | LANG=en_GB.UTF-8
19 | LANGUAGE=en_GB.UTF-8 " \
20 | >> /etc/profile.d/locale.sh
21 |
22 | # setup timezone
23 | apk add tzdata
24 | cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
25 | echo "Europe/Berlin" > /etc/timezone
26 | apk del tzdata
27 |
28 | c_hostname "c2"
29 |
30 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
31 |
32 | apk add busybox-initscripts tar curl xz bc sudo lzo bridge-utils docker dtc iw screen sysfsutils usbutils pciutils wget lsof ntfs-3g gcc
33 |
34 | #apk add rcs@testing most@testing uboot-tools@testing
35 | apk add rcs@testing most@testing
36 |
37 | i_kernel_odroid_c2_419
38 |
39 | echo "\
40 | auto lo
41 | iface lo inet loopback
42 | auto eth0
43 | iface eth0 inet dhcp " \
44 | > /etc/network/interfaces
45 |
46 | echo "\
47 | ttyS0::respawn:/sbin/getty -L ttyAML0 115200 vt100 " \
48 | >> /etc/inittab
49 |
50 | echo "\
51 | ttyAML0" \
52 | >> /etc/securetty
53 |
54 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000"
55 |
56 | passwd root
57 | adduser -g '' alpine
58 | addgroup alpine adm
59 | addgroup alpine cdrom
60 | addgroup alpine wheel
61 | addgroup alpine dialout
62 |
63 | rc-update add networking default
64 |
--------------------------------------------------------------------------------
/odroid-c2/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c2/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/odroid-c2/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_odroid_c2_419
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/odroid-c2/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname c2 --static
13 | hostnamectl set-hostname "ODROID-C2" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000 0x200"
22 |
--------------------------------------------------------------------------------
/odroid-c2/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/odroid-c2/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c2/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/odroid-c2/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "c2"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "1.1.1.1"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 | i_base_debian
17 |
18 | # i_extra_debian
19 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc man-db ntp usbutils pciutils lsof most sysfsutils
20 |
21 | i_kernel_odroid_c2_419
22 |
23 | c_if_lo
24 | c_if_dhcp "eth0"
25 | c_ttyS_debian "ttyAML0"
26 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000 0x200"
27 | c_user "debian"
28 |
29 | apt-get clean
30 |
31 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
32 |
--------------------------------------------------------------------------------
/odroid-c2/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian64-docker-00.sh
--------------------------------------------------------------------------------
/odroid-c2/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c2/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/odroid-c2/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | #echo \
5 | #'deb http://auto.mirror.devuan.org/merged jessie main
6 | #deb http://auto.mirror.devuan.org/merged jessie-updates main
7 | #deb http://auto.mirror.devuan.org/merged jessie-security main
8 | #deb http://auto.mirror.devuan.org/merged jessie-backports main' \
9 | # > /etc/apt/sources.list
10 |
11 | debootstrap/debootstrap --second-stage
12 |
13 | echo \
14 | 'deb http://auto.mirror.devuan.org/merged jessie main
15 | deb http://auto.mirror.devuan.org/merged jessie-updates main
16 | deb http://auto.mirror.devuan.org/merged jessie-security main
17 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
18 | > /etc/apt/sources.list
19 |
20 |
21 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_hostname "c2"
24 | #c_apt_list_debian "jessie"
25 | c_nameserver "1.1.1.1"
26 |
27 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
28 | export DEBIAN_FRONTEND=noninteractive
29 |
30 | r_pkg_upgrade
31 | i_base_debian
32 |
33 | # i_extra_debian
34 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
35 |
36 | # i_gcc_debian
37 | i_kernel_odroid_c2_419
38 |
39 | c_if_lo
40 | c_if_dhcp "eth0"
41 | c_ttyS_debian "ttyAML0"
42 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000 0x200"
43 | c_user "devuan"
44 |
45 | apt-get clean
46 |
47 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
48 |
--------------------------------------------------------------------------------
/odroid-c2/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/odroid-c2/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/odroid-c2/fedora-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-c2/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/odroid-c2/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_odroid_c2_419
11 |
12 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
--------------------------------------------------------------------------------
/odroid-c2/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname c2 --static
12 | hostnamectl set-hostname "ODROID-C2" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/odroid-c2/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/odroid-c2/rootfs/.z2d
--------------------------------------------------------------------------------
/odroid-c2/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk1
4 |
5 | /bin/echo -e "o\nn\np\n1\n3072\n\nw\n" | sudo fdisk /dev/$dev
6 | sync
7 | sudo partprobe -s /dev/$dev
8 |
9 | curl -sSL https://dn.odroid.com/S905/BootLoader/ODROID-C2/c2_boot_release_ubuntu.tar.gz | tar -C /tmp -xzf -
10 | sudo dd if=/tmp/sd_fuse/bl1.bin.hardkernel of=/dev/$dev conv=fsync bs=1 count=442
11 | sudo dd if=/tmp/sd_fuse/bl1.bin.hardkernel of=/dev/$dev conv=fsync bs=512 skip=1 seek=1
12 | sudo dd if=/tmp/sd_fuse/u-boot.bin of=/dev/$dev conv=fsync bs=512 seek=97
13 | rm -rf /tmp/sd_fuse
14 | sync
15 |
16 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
17 | chmod +x uboot-env
18 | sudo ./uboot-env -d /dev/${dev} -o 0xB4000 -l 0x8000 del -I
19 | sudo ./uboot-env -d /dev/${dev} -o 0xB4000 -l 0x8000 del -i
20 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-c2/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0xB4000 -l 0x8000 set
21 | sync
22 |
23 | sudo mkfs.ext4 -O ^has_journal -O ^64bit -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}p1
24 | sudo mount /dev/${dev}p1 ./rootfs
25 |
--------------------------------------------------------------------------------
/odroid-c2/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/odroid-c2/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "c2"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_odroid_c2_419
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0xB4000 0x8000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-c2/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/odroid-n1/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 9 Stretch /CentOS 7.4 / Fedora 27 & Docker on the ODROID N1
2 |
--------------------------------------------------------------------------------
/odroid-n1/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/odroid-n1/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_odroid_n1_44
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/odroid-n1/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname n1 --static
13 | hostnamectl set-hostname "ODROID-N1" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk1 0x3c000 0x2000 0x200"
22 |
--------------------------------------------------------------------------------
/odroid-n1/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/odroid-n1/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/odroid-n1/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_odroid_n1_44
11 |
12 | c_fw_utils "/dev/mmcblk1 0x3c000 0x2000 0x200"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
--------------------------------------------------------------------------------
/odroid-n1/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname n1 --static
12 | hostnamectl set-hostname "ODROID-N1" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/odroid-n1/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/odroid-n1/rootfs/.z2d
--------------------------------------------------------------------------------
/odroid-n1/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/odroid-n1/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "n1"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_odroid_n1_44
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk1 0x3c000 0x2000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-n1/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/odroid-n2/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu 16.04 / Debian 9 Stretch /CentOS 7.4 / Fedora 27 & Docker on the ODROID N2
2 |
--------------------------------------------------------------------------------
/odroid-n2/alpine-01.sh:
--------------------------------------------------------------------------------
1 | ../common/alpine64-01.sh
--------------------------------------------------------------------------------
/odroid-n2/alpine-02.sh:
--------------------------------------------------------------------------------
1 | ../common/alpine-02.sh
--------------------------------------------------------------------------------
/odroid-n2/alpine-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "\
9 | @edge http://dl-cdn.alpinelinux.org/alpine/edge/main
10 | @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" \
11 | >> /etc/apk/repositories
12 |
13 | apk update && apk upgrade
14 |
15 | # setup locale
16 | echo "\
17 | LC_ALL=en_GB.UTF-8
18 | LANG=en_GB.UTF-8
19 | LANGUAGE=en_GB.UTF-8 " \
20 | >> /etc/profile.d/locale.sh
21 |
22 | # setup timezone
23 | apk add tzdata
24 | cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
25 | echo "Europe/Berlin" > /etc/timezone
26 | apk del tzdata
27 |
28 | c_hostname "n2"
29 |
30 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
31 |
32 | apk add busybox-initscripts tar curl xz bc sudo lzo bridge-utils docker dtc iw screen sysfsutils usbutils pciutils wget lsof ntfs-3g gcc
33 |
34 | #apk add rcs@testing most@testing uboot-tools@testing
35 | apk add rcs@testing most@testing
36 |
37 | i_kernel_odroid_n2_49
38 |
39 | echo "\
40 | auto lo
41 | iface lo inet loopback
42 | auto eth0
43 | iface eth0 inet dhcp " \
44 | > /etc/network/interfaces
45 |
46 | echo "\
47 | ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 " \
48 | >> /etc/inittab
49 |
50 | echo "\
51 | ttyS0" \
52 | >> /etc/securetty
53 |
54 | c_fw_utils "/dev/mmcblk0 0x000F0000 0x00010000 0x200"
55 |
56 | passwd root
57 | adduser -g '' alpine
58 | addgroup alpine adm
59 | addgroup alpine cdrom
60 | addgroup alpine wheel
61 | addgroup alpine dialout
62 |
63 | rc-update add networking default
64 |
--------------------------------------------------------------------------------
/odroid-n2/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/odroid-n2/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_odroid_n2_49
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/odroid-n2/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname n2 --static
13 | hostnamectl set-hostname "ODROID-N2" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0x000F0000 0x00010000 0x200"
22 |
--------------------------------------------------------------------------------
/odroid-n2/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/odroid-n2/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/odroid-n2/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_odroid_n2_49
11 |
12 | c_fw_utils "/dev/mmcblk0 0x000F0000 0x00010000 0x200"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
19 |
--------------------------------------------------------------------------------
/odroid-n2/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname n2 --static
12 | hostnamectl set-hostname "ODROID-N2" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/odroid-n2/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/odroid-n2/rootfs/.z2d
--------------------------------------------------------------------------------
/odroid-n2/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/odroid-n2/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "n2"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_odroid_n2_49
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x000F0000 0x00010000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-n2/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/odroid-xu4/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu Core 16.04 / Debian Jessie / CentOS 7 & Docker on the ODROID XU4
2 |
--------------------------------------------------------------------------------
/odroid-xu4/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-xu4/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos-01.sh
--------------------------------------------------------------------------------
/odroid-xu4/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_odroid_xu4_414
11 |
12 | passwd root
13 | adduser -c '' centos
14 | usermod -aG adm,cdrom,wheel,dialout centos
15 | passwd centos
16 |
17 | touch /etc/sysconfig/network
18 |
--------------------------------------------------------------------------------
/odroid-xu4/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname xu4 --static
13 | hostnamectl set-hostname "ODROID-XU4" --pretty
14 |
15 | c_yum_list_epel_armhf
16 | c_yum_list_f25_prim
17 | i_base_centos
18 |
19 | # c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0x99E00 0x4000 0x100"
22 |
--------------------------------------------------------------------------------
/odroid-xu4/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/odroid-xu4/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-xu4/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/odroid-xu4/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "xu4"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 |
17 | i_base_debian
18 | #i_extra
19 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils
20 | i_kernel_odroid_xu4_414
21 |
22 | c_if_lo
23 | c_if_dhcp "eth0"
24 | c_ttyS_debian "ttySAC2"
25 | c_fw_utils "/dev/mmcblk0 0x99E00 0x4000 0x100"
26 | c_user "debian"
27 |
28 | apt-get clean
29 |
30 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
31 |
--------------------------------------------------------------------------------
/odroid-xu4/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-docker-00.sh
--------------------------------------------------------------------------------
/odroid-xu4/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/odroid-xu4/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/odroid-xu4/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | echo \
7 | 'deb http://auto.mirror.devuan.org/merged jessie main
8 | deb http://auto.mirror.devuan.org/merged jessie-updates main
9 | deb http://auto.mirror.devuan.org/merged jessie-security main
10 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
11 | > /etc/apt/sources.list
12 |
13 |
14 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
15 | c_tzone "Europe/Berlin"
16 | c_hostname "cbxi"
17 | c_nameserver "8.8.8.8"
18 |
19 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
20 | export DEBIAN_FRONTEND=noninteractive
21 |
22 | r_pkg_upgrade
23 | i_base_debian
24 |
25 | # i_extra_debian
26 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
27 |
28 | i_kernel_odroid_xu4_414
29 |
30 | c_if_lo
31 | c_if_dhcp "eth0"
32 | c_ttyS_debian "ttySAC2"
33 | c_fw_utils "/dev/mmcblk0 0x99E00 0x4000 0x100"
34 | c_user "devuan"
35 |
36 | apt-get clean
37 |
38 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
39 |
40 |
--------------------------------------------------------------------------------
/odroid-xu4/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/odroid-xu4/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/odroid-xu4/rootfs/.02d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/odroid-xu4/rootfs/.02d
--------------------------------------------------------------------------------
/odroid-xu4/setrootfs.sh:
--------------------------------------------------------------------------------
1 | ../common/setrootfs.sh
--------------------------------------------------------------------------------
/odroid-xu4/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk0
4 |
5 | /bin/echo -e "o\nn\np\n1\n3072\n\nw\n" | sudo fdisk /dev/$dev
6 | sync
7 | sudo partprobe -s /dev/$dev
8 |
9 | mkdir /tmp/u-boot
10 | curl -sSL https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel/bl1.bin.hardkernel > /tmp/u-boot/bl1.bin.hardkernel
11 | curl -sSL https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel/bl2.bin.hardkernel > /tmp/u-boot/bl2.bin.hardkernel
12 | curl -sSL https://raw.githubusercontent.com/hardkernel/u-boot/odroidxu3-v2012.07/sd_fuse/hardkernel/sd_fusing.sh >/tmp/u-boot/sd_fusing.sh
13 | curl -sSL https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel/tzsw.bin.hardkernel > /tmp/u-boot/tzsw.bin.hardkernel
14 | curl -sSL https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel/u-boot.bin.hardkernel >/tmp/u-boot/u-boot.bin.hardkernel
15 | (cd /tmp/u-boot/ ; sudo sh sd_fusing.sh /dev/$dev )
16 | rm -f /tmp/u-boot/bl1.bin.hardkernel /tmp/u-boot/bl2.bin.hardkernel /tmp/u-boot/sd_fusing.sh /tmp/u-boot/tzsw.bin.hardkernel /tmp/u-boot/u-boot.bin.hardkernel
17 | rmdir /tmp/u-boot
18 |
19 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
20 | chmod +x uboot-env
21 | sudo ./uboot-env -d /dev/${dev} -o 0x99E00 -l 0x4000 del -I
22 | sudo ./uboot-env -d /dev/${dev} -o 0x99E00 -l 0x4000 del -i
23 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/odroid-xu4/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0x99E00 -l 0x4000 set
24 | sync
25 |
26 | sync
27 | sudo mkfs.ext4 -O ^has_journal -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}p1
28 | sudo mount /dev/${dev}p1 ./rootfs
29 |
--------------------------------------------------------------------------------
/odroid-xu4/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-base-01.sh
--------------------------------------------------------------------------------
/odroid-xu4/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "xu4"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_odroid_xu4_414
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x99E00 0x4000 0x100"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-xu4/ubuntu-core-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
8 | c_tzone "Europe/Berlin"
9 | c_hostname "xu4"
10 | c_apt_list "xenial"
11 | c_nameserver "8.8.8.8"
12 |
13 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
14 |
15 | r_pkg_upgrade
16 | i_base
17 | i_extra
18 | i_kernel_odroid_xu4_414
19 | c_if_lo
20 | c_if_dhcp "eth0"
21 | c_ttyS "ttySAC2"
22 | c_fw_utils "/dev/mmcblk0 0x99E00 0x4000 0x100"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/odroid-xu4/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/pine64/Armbian_5.24_Pine64_U-Boot.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/pine64/Armbian_5.24_Pine64_U-Boot.bin
--------------------------------------------------------------------------------
/pine64/Armbian_5.35_Pine64_U-Boot.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/pine64/Armbian_5.35_Pine64_U-Boot.bin
--------------------------------------------------------------------------------
/pine64/README.md:
--------------------------------------------------------------------------------
1 | This directory contains a collection of scripts helping you to set up a minimal Ubuntu 16.04 / Debian 8 Jessie / CentOS 7
2 | boot device for your Pine64. I've switched to mainline U-boot firmware and mainline 4.9 Linux kernel, since the HW support has become good enough for running Docker and k8s headless on the Pine64. If you are looking for ready to use desktop / GUI images you might be happy using [Armbian](https://www.armbian.com/pine64/) instead.
3 |
4 | ## Ubuntu
5 | - ubuntu-core-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
6 | - ubuntu-core-01.sh: debootstraps the Ubuntu userland, prepare and jump into the chroot environment
7 | - ubuntu-core-02.sh: (invoked by ubuntu-core-01.sh) customize the userland, install gcc-5
8 |
9 | ## Debian
10 | - debian-00.sh: set up u-boot, partition & format the boot device, do the correct mounts
11 | - debian-01.sh: debootstraps the Debian userland, prepare and jump into the chroot environment
12 | - debian-02.sh: (invoked by debian-01.sh) customize the userland, install gcc-5
13 |
14 | ## CentOS (credit goes to [KurtStam](https://github.com/KurtStam))
15 |
16 | To create a brand new ubuntu, debian or centos image you will need a running Pine64 board and a USB adapter with the new
17 | memory microSD card. The following are instructions specific to centos, but it should be very similar for the other
18 | distrubutions.
19 |
20 | 1. Get a Pine64 running with one of the [supported linux distributions](https://www.pine64.org/?page_id=1929)
21 |
22 | 2. 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.
23 |
24 | 3. Checkout this repo: git clone https://github.com/umiddelb/z2d
25 |
26 | 4. 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
27 | you should double check this using `fdisk -l` to list all your devices. Update the `dev` setting with the value you found in step 2.
28 |
29 | ~~~~
30 | cd z2d/pine64
31 | vi centos-00.sh
32 | ~~~~
33 |
34 | 5. Run the centos-00.sh script, and the centos-01.sh script as long as there are no errors.
35 |
36 | ~~~~
37 | sh centos-00.sh
38 | sh centos-01.sh
39 | ~~~~
40 |
41 | 6. If everything completes without errors you know have a bootable microSD card with a base Centos-7 distro running the latest longsleep kernel.
42 | 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
43 | centos-03.sh script is optional. You can delete these files right after.
44 |
--------------------------------------------------------------------------------
/pine64/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/pine64/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos64-01.sh
--------------------------------------------------------------------------------
/pine64/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | if [ -f ./etc/fstab ]; then
9 | mv ./etc/fstab ./etc/fstab.rpmdefault
10 | fi
11 |
12 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > ./etc/fstab
13 |
14 | i_kernel_pine64
15 |
16 | passwd root
17 | adduser -c '' centos
18 | usermod -aG adm,cdrom,wheel,dialout centos
19 | passwd centos
20 |
21 | touch /etc/sysconfig/network
22 |
--------------------------------------------------------------------------------
/pine64/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname p64 --static
13 | hostnamectl set-hostname "PINE64+" --pretty
14 |
15 | c_yum_list_epel_aarch64
16 | c_yum_list_f25_second
17 | i_base_centos
18 |
19 | c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mmcblk0 0x88000 0x20000"
22 |
--------------------------------------------------------------------------------
/pine64/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/pine64/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/pine64/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/pine64/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | debootstrap/debootstrap --second-stage
6 |
7 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
8 | c_tzone "Europe/Berlin"
9 | c_hostname "p64"
10 | c_apt_list_debian "stretch"
11 | c_nameserver "8.8.8.8"
12 |
13 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
14 | export DEBIAN_FRONTEND=noninteractive
15 |
16 | r_pkg_upgrade
17 | i_base_debian
18 |
19 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils
20 |
21 | i_kernel_pine64
22 |
23 | c_if_lo
24 | c_if_dhcp "eth0"
25 | c_ttyS_debian "ttyS0"
26 | c_fw_utils "/dev/mmcblk0 0x88000 0x20000"
27 | c_user "debian"
28 |
29 | apt-get clean
30 |
31 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
32 |
--------------------------------------------------------------------------------
/pine64/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian64-docker-00.sh
--------------------------------------------------------------------------------
/pine64/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/pine64/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/pine64/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | #echo \
5 | #'deb http://auto.mirror.devuan.org/merged jessie main
6 | #deb http://auto.mirror.devuan.org/merged jessie-updates main
7 | #deb http://auto.mirror.devuan.org/merged jessie-security main
8 | #deb http://auto.mirror.devuan.org/merged jessie-backports main' \
9 | # > /etc/apt/sources.list
10 |
11 | debootstrap/debootstrap --second-stage
12 |
13 | echo \
14 | 'deb http://auto.mirror.devuan.org/merged jessie main
15 | deb http://auto.mirror.devuan.org/merged jessie-updates main
16 | deb http://auto.mirror.devuan.org/merged jessie-security main
17 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
18 | > /etc/apt/sources.list
19 |
20 |
21 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_hostname "p64"
24 | #c_apt_list_debian "jessie"
25 | c_nameserver "8.8.8.8"
26 |
27 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
28 | export DEBIAN_FRONTEND=noninteractive
29 |
30 | r_pkg_upgrade
31 | i_base_debian
32 |
33 | # i_extra_debian
34 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
35 |
36 | # i_gcc_debian
37 | i_kernel_pine64
38 |
39 | c_if_lo
40 | c_if_dhcp "eth0"
41 | c_ttyS_debian "ttyS0"
42 | c_fw_utils "/dev/mmcblk0 0x88000 0x20000"
43 | c_user "devuan"
44 |
45 | apt-get clean
46 |
47 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
48 |
--------------------------------------------------------------------------------
/pine64/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/pine64/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/pine64/fedora-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/pine64/fedora-01.sh:
--------------------------------------------------------------------------------
1 | ../common/fedora64-01.sh
--------------------------------------------------------------------------------
/pine64/fedora-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 1.1.1.1
7 |
8 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
9 |
10 | i_kernel_pine64
11 |
12 | c_fw_utils "/dev/mmcblk0 0x88000 0x20000"
13 |
14 | passwd root
15 | adduser -c '' fedora
16 | usermod -aG adm,cdrom,wheel,dialout fedora
17 | passwd fedora
18 |
--------------------------------------------------------------------------------
/pine64/fedora-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | i_base_fedora
7 |
8 | timedatectl set-timezone Europe/Berlin
9 | localectl set-locale LANG=en_GB.UTF-8
10 |
11 | hostnamectl set-hostname p64 --static
12 | hostnamectl set-hostname "Pine 64" --pretty
13 |
14 | c_docker_centos_fedora
15 |
--------------------------------------------------------------------------------
/pine64/rootfs/.z2d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/pine64/rootfs/.z2d
--------------------------------------------------------------------------------
/pine64/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | dev=sdb
5 | curl -sSL https://github.com/umiddelb/z2d/blob/master/pine64/Armbian_5.24_Pine64_U-Boot.bin?raw=true | sudo dd of=/dev/$dev
6 | sync
7 | set +e
8 | /bin/echo -e "o\nn\np\n1\n2048\n\nw\n" | sudo fdisk /dev/$dev
9 | set -e
10 | sync
11 | sudo partprobe -s /dev/$dev
12 |
13 | curl -sSL https://github.com/umiddelb/u-571/raw/master/uboot-env > uboot-env
14 | chmod +x uboot-env
15 | sudo ./uboot-env -d /dev/${dev} -o 0x88000 -l 0x20000 del -I
16 | sudo ./uboot-env -d /dev/${dev} -o 0x88000 -l 0x20000 del -i
17 | curl -sSL https://raw.githubusercontent.com/umiddelb/u-571/master/board/pine64%2B/bundle.uEnv | sudo ./uboot-env -d /dev/${dev} -o 0x88000 -l 0x20000 set
18 | sync
19 |
20 | sudo mkfs.ext4 -O ^has_journal -b 4096 -L rootfs -U deadbeef-dead-beef-dead-beefdeadbeef /dev/${dev}1
21 | sudo mount /dev/${dev}1 ./rootfs
22 |
--------------------------------------------------------------------------------
/pine64/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu64-base-01.sh
--------------------------------------------------------------------------------
/pine64/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "p64"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_pine64
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mmcblk0 0x88000 0x20000 0x200"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/pine64/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------
/utilite-pro/README.md:
--------------------------------------------------------------------------------
1 | This is the script compilation to set up Ubuntu Core 14.04.2 & Docker on the Utilite Pro
2 |
--------------------------------------------------------------------------------
/utilite-pro/centos-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/utilite-pro/centos-01.sh:
--------------------------------------------------------------------------------
1 | ../common/centos-01.sh
--------------------------------------------------------------------------------
/utilite-pro/centos-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | c_nameserver 8.8.8.8
7 |
8 | mv /etc/fstab /etc/fstab.rpmdefault
9 | echo "UUID=deadbeef-dead-beef-dead-beefdeadbeef / ext4 defaults 0 0" > /etc/fstab
10 |
11 | i_kernel_utilite_pro
12 |
13 | passwd root
14 | adduser -c '' centos
15 | usermod -aG adm,cdrom,wheel,dialout centos
16 | passwd centos
17 |
--------------------------------------------------------------------------------
/utilite-pro/centos-03.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 |
4 | . ./common-functions.sh
5 |
6 | yum install -y ntp ntpdate
7 | chkconfig ntpd on
8 | ntpdate pool.ntp.org
9 |
10 | timedatectl set-timezone Europe/Berlin
11 | localectl set-locale LANG=en_GB.UTF-8
12 | hostnamectl set-hostname upro --static
13 | hostnamectl set-hostname "Utilite Pro" --pretty
14 |
15 | c_yum_list_epel_armhf
16 | c_yum_list_f25_prim
17 | i_base_centos
18 |
19 | # c_docker_centos_fedora
20 |
21 | c_fw_utils "/dev/mtd1 0x0 0x2000 0x2000"
22 |
--------------------------------------------------------------------------------
/utilite-pro/common-functions.sh:
--------------------------------------------------------------------------------
1 | ../common/common-functions.sh
--------------------------------------------------------------------------------
/utilite-pro/debian-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/utilite-pro/debian-01.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-01.sh
--------------------------------------------------------------------------------
/utilite-pro/debian-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
7 | c_tzone "Europe/Berlin"
8 | c_hostname "upro"
9 | c_apt_list_debian "stretch"
10 | c_nameserver "8.8.8.8"
11 |
12 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
13 | export DEBIAN_FRONTEND=noninteractive
14 |
15 | r_pkg_upgrade
16 |
17 | i_base_debian
18 | #i_extra
19 | apt-get -q=2 -y install dialog screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude gcc make bc lzop man-db ntp usbutils pciutils lsof most sysfsutils
20 | i_kernel_utilite_pro
21 |
22 | c_if_lo
23 | c_if_dhcp "eth0"
24 | c_ttyS_debian "ttymxc3"
25 | c_fw_utils "/dev/mtd1 0x0 0x2000 0x2000"
26 | c_user "debian"
27 |
28 | apt-get clean
29 |
30 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
31 |
--------------------------------------------------------------------------------
/utilite-pro/debian-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/debian-docker-00.sh
--------------------------------------------------------------------------------
/utilite-pro/devuan-00.sh:
--------------------------------------------------------------------------------
1 | ubuntu-base-00.sh
--------------------------------------------------------------------------------
/utilite-pro/devuan-01.sh:
--------------------------------------------------------------------------------
1 | ../common/devuan-01.sh
--------------------------------------------------------------------------------
/utilite-pro/devuan-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . ./common-functions.sh
3 |
4 | debootstrap/debootstrap --second-stage
5 |
6 | echo \
7 | 'deb http://auto.mirror.devuan.org/merged jessie main
8 | deb http://auto.mirror.devuan.org/merged jessie-updates main
9 | deb http://auto.mirror.devuan.org/merged jessie-security main
10 | deb http://auto.mirror.devuan.org/merged jessie-backports main' \
11 | > /etc/apt/sources.list
12 |
13 |
14 | c_locale_debian "en_GB.UTF-8" "de_DE.UTF-8"
15 | c_tzone "Europe/Berlin"
16 | c_hostname "upro"
17 | c_nameserver "8.8.8.8"
18 |
19 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
20 | export DEBIAN_FRONTEND=noninteractive
21 |
22 | r_pkg_upgrade
23 | i_base_debian
24 |
25 | # i_extra_debian
26 | apt-get -q=2 -y install screen wireless-tools iw libncurses5-dev cpufrequtils rcs aptitude make bc man-db ntp usbutils pciutils lsof most sysfsutils curl xz-utils sudo
27 |
28 | i_kernel_utilite_pro
29 |
30 | c_if_lo
31 | c_if_dhcp "eth0"
32 | c_ttyS_debian "ttymxc3"
33 | c_fw_utils "/dev/mtd1 0x0 0x2000 0x2000"
34 | c_user "debian"
35 |
36 | apt-get clean
37 |
38 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
39 |
40 |
--------------------------------------------------------------------------------
/utilite-pro/devuan-keyring-2016-archive.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-archive.gpg
--------------------------------------------------------------------------------
/utilite-pro/devuan-keyring-2016-cdimage.gpg:
--------------------------------------------------------------------------------
1 | ../common/devuan-keyring-2016-cdimage.gpg
--------------------------------------------------------------------------------
/utilite-pro/rootfs/.02d:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umiddelb/z2d/dda4b9d0499360586a0aa1bd78786ffa000dcc1a/utilite-pro/rootfs/.02d
--------------------------------------------------------------------------------
/utilite-pro/ubuntu-base-00.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dev=mmcblk0
4 | /bin/echo -e "o\nn\np\n1\n2048\n\nw\n" | sudo fdisk /dev/$dev
5 | sync
6 | sudo partprobe -s /dev/$dev
7 |
8 | sudo mkfs.ext4 -O ^has_journal -b 4096 -U deadbeef-dead-beef-dead-beefdeadbeef -L rootfs /dev/${dev}p1
9 | sudo mount /dev/${dev}p1 ./rootfs
10 |
--------------------------------------------------------------------------------
/utilite-pro/ubuntu-base-01.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-base-01.sh
--------------------------------------------------------------------------------
/utilite-pro/ubuntu-base-02.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -ex
3 | . ./common-functions.sh
4 |
5 | export DEBIAN_FRONTEND=noninteractive
6 |
7 | c_hostname "upro"
8 | c_apt_list "bionic"
9 | c_nameserver "1.1.1.1"
10 |
11 | dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
12 |
13 | r_pkg_upgrade
14 | echo Y | unminimize
15 | i_base
16 | i_extra
17 | i_kernel_utilite_pro
18 | c_if_netplan "eth0"
19 | netplan apply
20 | c_fw_utils "/dev/mtd1 0x0 0x2000 0x2000"
21 | c_locale "en_GB.UTF-8" "de_DE.UTF-8"
22 | c_tzone "Europe/Berlin"
23 | c_user "ubuntu"
24 |
25 | apt-get clean
26 |
27 | rm /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
28 |
--------------------------------------------------------------------------------
/utilite-pro/ubuntu-docker-00.sh:
--------------------------------------------------------------------------------
1 | ../common/ubuntu-docker-00.sh
--------------------------------------------------------------------------------