Skip to content

Commit

Permalink
upgrade to Ubuntu Base 18.04 LTS (Bionic Beaver)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuminready committed Jul 22, 2018
1 parent 2682dd5 commit 64a9859
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 126 deletions.
Binary file removed linaro-nano.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion md5sum.txt
@@ -1 +1 @@
df15a61bb11e634b5c7e78379a67e8d9 linaro-nano.tgz
cb7e1ebc3b895ac95e2ff1fb32ddd38d ubuntu_base.tgz
55 changes: 0 additions & 55 deletions overlays/parallella/etc/apt/sources.list

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions overlays/parallella/etc/apt/sources.list.d/ubuntu-ports.list

This file was deleted.

This file was deleted.

Binary file removed overlays/parallella/etc/apt/trusted.gpg
Binary file not shown.
4 changes: 4 additions & 0 deletions overlays/parallella/etc/rc.local
Expand Up @@ -14,4 +14,8 @@
# Generate the SSH keys if non-existent
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server

# DNS configure rely on DHCP
#https://wiki.archlinux.org/index.php/systemd-networkd
test -f /etc/resolv.conf || ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

exit 0
49 changes: 28 additions & 21 deletions packages.basic.txt
Expand Up @@ -7,46 +7,51 @@ fake-hwclock
ntp
avahi-daemon
lm-sensors
systemd udev sudo nano

##Fix debconf: unable to initialize frontend: Dialog
dialog

# Language Packs (Fix utf8 & get rid of Ubuntu's annoying locale warings)
language-pack-en
#language-pack-en

# Editors
vim-nox emacs-nox nano
#vim-nox emacs-nox nano

# Debian packaging
devscripts
dpkg-dev

# Compiling/building
build-essential
git
curl
m4
flex
bison
gawk
pkg-config
strace
texinfo
#git
#curl
#m4
#flex
#bison
#gawk
#pkg-config
#strace
#texinfo
gdb

### Networking
ethtool
iperf
net-tools
#iperf
ifplugd
bwm-ng
nfs-common
#bwm-ng
#nfs-common

### Linux Tools
device-tree-compiler
#device-tree-compiler
usbutils

### Wifi
linux-firmware
#linux-firmware

### Packages for Epiphany SDK
libmpfr-dev libmpc-dev libgmp3-dev
#libmpfr-dev libmpc-dev libgmp3-dev

### For epiphany examples
libdevil-dev
Expand All @@ -61,10 +66,12 @@ ocl-icd-opencl-dev
clinfo
libclc-dev
opencl-headers
libelfg0
libelfg0-dev
'libconfig++9' 'libconfig++-dev' libconfig-dev libconfig9 libelfg0-dev
libelfg0 libevent-2.0 libevent-dev
#libelfg0
#libelfg0-dev
##https://superuser.com/questions/1091984/how-to-install-libelfg0-dev-on-ubuntu-16-04-lts-64bit-version
libelf-dev
'libconfig++9v5' 'libconfig++-dev' libconfig-dev libconfig9
libevent-2.1.6 libevent-dev

# Needed for parallella-utils xtemp
libx11-6
Expand Down
5 changes: 5 additions & 0 deletions rootfs-arm.sh
Expand Up @@ -31,6 +31,11 @@ rm -fr /etc/ssh/*key*
echo Copying skel to parallella user
cp -r /etc/skel/. /home/parallella/

echo Add user group
useradd parallella
addgroup parallella adm
addgroup parallella sudo

echo Fixing user permissions
chown -R parallella:parallella /home/parallella
chown -R root:root /root
Expand Down
20 changes: 10 additions & 10 deletions rootfs.sh
Expand Up @@ -28,7 +28,7 @@ cleanup () {
echo Cleaning up
rm -f ${root_mnt}/usr/sbin/policy-rc.d
rm -f ${root_mnt}/etc/resolv.conf
rm -f ${root_mnt}/qemu-arm-static
rm -f ${root_mnt}/usr/bin/qemu-arm-static
umount ${root_mnt}/proc || true
umount ${root_mnt}/sys || true
umount ${root_mnt}/tmp || true
Expand All @@ -48,9 +48,9 @@ trap 'cleanup; exit 1' EXIT
unset LC_ALL
unset LC_TIME

if ! [ -e ${linaro_tarball} ]; then
echo Downloading linaro tarball
wget ${LINARO_URL} -O ${linaro_tarball}
if ! [ -e ${ubuntu_tarball} ]; then
echo Downloading Ubuntu Base tarball
wget ${UBUNTU_URL} -O ${ubuntu_tarball}
fi

echo Checking md5sums
Expand All @@ -76,12 +76,12 @@ mkfs.ext4 -L root ${root_dev}
echo Mounting root filesystem
mount ${root_dev} ${root_mnt}

echo Unpacking linaro tarball
tar xfzp ${linaro_tarball} -C ${root_mnt} --strip-components 1
echo Unpacking Ubuntu tarball
tar xfzp ${ubuntu_tarball} -C ${root_mnt} --strip-components 0

echo Renaming linaro user to parallella
[ -d ${top}/mnt/rootfs/home/parallella ] || mv ${top}/mnt/rootfs/home/linaro ${top}/mnt/rootfs/home/parallella
sed -i 's/linaro/parallella/g' ${top}/mnt/rootfs/etc/{group,shadow,passwd}
#echo Renaming linaro user to parallella
#[ -d ${top}/mnt/rootfs/home/parallella ] || mv ${top}/mnt/rootfs/home/linaro ${top}/mnt/rootfs/home/parallella
#sed -i 's/linaro/parallella/g' ${top}/mnt/rootfs/etc/{group,shadow,passwd}

echo Applying overlays
#TODO: Use tarballs (for owner/group)?
Expand Down Expand Up @@ -140,7 +140,7 @@ echo Mounting tmp in chroot
mount none -t tmpfs -o size=104857600 ${root_mnt}/tmp

echo Copying qemu-arm-static
cp $(which qemu-arm-static) ${root_mnt}
cp $(which qemu-arm-static) ${root_mnt}/usr/bin/

echo Creating resolv.conf
cat << EOF > ${root_mnt}/etc/resolv.conf
Expand Down
16 changes: 0 additions & 16 deletions scripts/20-fix-permissions.sh

This file was deleted.

6 changes: 3 additions & 3 deletions settings.inc.sh
Expand Up @@ -5,14 +5,14 @@ set -u

mkdir -p ${top}/out

LINARO_URL="http://releases.linaro.org/15.06/ubuntu/vivid-images/nano/linaro-vivid-nano-20150618-705.tar.gz"
LINARO_TARBALL_NAME=linaro-nano.tgz
UBUNTU_URL="http://cdimage.ubuntu.com/ubuntu-base/releases/bionic/release/ubuntu-base-18.04-base-armhf.tar.gz"
UBUNTU_TARBALL_NAME=ubuntu_base.tgz

root_mnt=${top}/mnt/rootfs
boot_mnt=${top}/mnt/boot
root_image=${top}/out/root.image
boot_image=${top}/out/boot.image
linaro_tarball=${top}/${LINARO_TARBALL_NAME}
ubuntu_tarball=${top}/${UBUNTU_TARBALL_NAME}
image_file=${top}/out/image
# Offsets and sizes hardcoded. See fdisk-cmd.txt
image_size=3600
Expand Down

0 comments on commit 64a9859

Please sign in to comment.