[bananapi] Add bananapi script and kernel v4.2.0 tarballs

This commit is contained in:
Geaaru
2016-08-29 00:11:55 +02:00
parent 22befddfa4
commit 3d6f8fdcca
5 changed files with 75 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
*.tar filter=lfs diff=lfs merge=lfs -text
+20
View File
@@ -0,0 +1,20 @@
FROM sabayon/armhfp
MAINTAINER geaaru <geaaru@gmail.com>
# Set locales to en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Perform post-upgrade tasks (mirror sorting, updating repository db)
ADD ./scripts/setup.sh /setup.sh
RUN /bin/bash /setup.sh && rm -rf /setup.sh
# Firmware and modules blob
ADD ./firmware_modules.tar /
ADD ./boot.tar /boot
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8896d8413a4d5f845835ca70c13ebc1cbe4fca4237db9b821d899ad02c0de67
size 5509120
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b8b21a0ed5708955936b50b75114c7a950140aa70f41fdb569900cb9d68a11b2
size 17264640
+48
View File
@@ -0,0 +1,48 @@
#!/bin/bash
# Description: Script for prepare docker image of bananapi tree
# from sabayon/armhfp tree.
/usr/sbin/env-update
. /etc/profile
setup_bootfs_fstab() {
# add /dev/mmcblk0p1 to /etc/fstab
local boot_part_type="${1}"
echo "/dev/mmcblk0p1 /boot ${boot_part_type} defaults 0 2" >> /etc/fstab
}
setup_rootfs_fstab() {
echo "/dev/mmcblk0p2 / ext4 noatime 0 1" >> /etc/fstab
}
# Force armv7l entropy architecture (kernel is 64bit)
echo "armv7l" > /etc/entropy/.arch
echo "~arm" > /etc/entropy/packages/package.keywords
echo "arm" >> /etc/entropy/packages/package.keywords
# Perform package upgrades
ACCEPT_LICENSE=* equo up && equo u
# Networkmanager gives issues on aarch64
systemctl disable NetworkManager
equo rm net-misc/networkmanager
cat > /etc/systemd/network/default_dhcp.network << "EOF"
[Network]
DHCP=ipv4
[DHCP]
UseDomains=true
EOF
systemctl enable systemd-networkd
# Cleanup
equo cleanup
# Accepts configuration updates
echo -5 | equo conf update
rm -rfv /etc/fstab
setup_rootfs_fstab
exit 0