diff --git a/SOFTWARE/A64-TERES/.gitignore b/SOFTWARE/A64-TERES/.gitignore new file mode 100644 index 00000000..33412b9f --- /dev/null +++ b/SOFTWARE/A64-TERES/.gitignore @@ -0,0 +1,8 @@ +linux-a64 +u-boot_* +scripts/*.img +scripts/*.xz +scripts/teres-build-* +build/ +busybox/ +initrd.gz diff --git a/SOFTWARE/A64-TERES/scripts/make_rootfs.sh b/SOFTWARE/A64-TERES/scripts/make_rootfs.sh index 0dec3192..85918ada 100755 --- a/SOFTWARE/A64-TERES/scripts/make_rootfs.sh +++ b/SOFTWARE/A64-TERES/scripts/make_rootfs.sh @@ -77,6 +77,9 @@ case $DISTRO in xenial) ROOTFS="http://cdimage.ubuntu.com/ubuntu-base/releases/16.04.2/release/ubuntu-base-16.04.2-base-arm64.tar.gz" ;; + bionic) + ROOTFS="http://cdimage.ubuntu.com/ubuntu-base/releases/18.04.2/release/ubuntu-base-18.04-base-arm64.tar.gz" + ;; sid|jessie) ROOTFS="${DISTRO}-base-arm64.tar.gz" METHOD="debootstrap" @@ -282,10 +285,10 @@ EOF rm -f "$DEST/etc/resolv.conf" mv "$DEST/etc/resolv.conf.dist" "$DEST/etc/resolv.conf" ;; - xenial|sid|jessie) + xenial|bionic|sid|jessie) rm "$DEST/etc/resolv.conf" cp /etc/resolv.conf "$DEST/etc/resolv.conf" - if [ "$DISTRO" = "xenial" ]; then + if [ "$DISTRO" = "xenial" -o "$DISTRO" = "bionic" ]; then DEB=ubuntu DEBUSER=olimex DEBUSERPW=olimex @@ -320,12 +323,12 @@ EOF #!/bin/sh set -ex export DEBIAN_FRONTEND=noninteractive -locale-gen en_US.UTF-8 $ADDPPACMD apt-get -y update -apt-get -y install dosfstools curl xz-utils iw rfkill wpasupplicant openssh-server alsa-utils $EXTRADEBS +apt-get -y install dosfstools curl xz-utils iw rfkill wpasupplicant openssh-server alsa-utils locales $EXTRADEBS apt-get -y remove --purge ureadahead apt-get -y update +locale-gen en_US.UTF-8 adduser --gecos $DEBUSER --disabled-login $DEBUSER --uid 1000 chown -R 1000:1000 /home/$DEBUSER dpkg -i /home/prebuilt/* @@ -336,6 +339,7 @@ apt-get clean EOF chmod +x "$DEST/second-phase" do_chroot /second-phase + mkdir -p $DEST/etc/network/interfaces.d/ cat > "$DEST/etc/network/interfaces.d/eth0" < "$DEST/etc/udev/hwdb.d/teres_kmap.hwdb" < "$DEST/etc/udev/hwdb.d/teres_kmap.hwdb" <