Skip to content

Commit d01e7ba

Browse files
committed
Support bionic
1 parent c09902a commit d01e7ba

File tree

6 files changed

+20
-26
lines changed

6 files changed

+20
-26
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@
2828
/snappy/gadget/boot-assets
2929
/boot-tools/
3030
/*.deb
31-
31+
/*.xz
32+
/*.img
33+
tmp/

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,25 @@ simple-image-pine64-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boo
8080
cd simpleimage && \
8181
export boot0=../boot-tools/boot/pine64/boot0-pine64-plus.bin && \
8282
export uboot=../boot-tools/boot/pine64/u-boot-pine64-plus.bin && \
83-
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz)
83+
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-plus
8484

8585
simple-image-sopine-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
8686
cd simpleimage && \
8787
export boot0=../boot-tools/boot/pine64/boot0-pine64-sopine.bin && \
8888
export uboot=../boot-tools/boot/pine64/u-boot-pine64-sopine.bin && \
89-
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz)
89+
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-sopine
9090

9191
simple-image-pinebook-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
9292
cd simpleimage && \
9393
export boot0=../boot-tools/boot/pine64/boot0-pine64-pinebook.bin && \
9494
export uboot=../boot-tools/boot/pine64/u-boot-pine64-pinebook.bin && \
95-
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz)
95+
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-pinebook
9696

9797
simple-image-pinebook-1080p-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
9898
cd simpleimage && \
9999
export boot0=../boot-tools/boot/pine64/boot0-pine64-pinebook-1080p.bin && \
100100
export uboot=../boot-tools/boot/pine64/u-boot-pine64-pinebook-1080p.bin && \
101-
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz)
101+
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-pinebook-1080p
102102

103103
BUILD_SYSTEMS := bionic stretch
104104
BUILD_VARIANTS := minimal mate i3 lxde openmediavault

build-pine64-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ mount /dev/mapper/${DEVICENAME}p1 "$TEMP/boot"
111111
mount /dev/mapper/${DEVICENAME}p2 "$TEMP/rootfs"
112112

113113
sleep 2
114-
(cd simpleimage && sh ./make_rootfs.sh "$TEMP/rootfs" "$KERNELTAR" "$PACKAGEDEB" "$DISTRO" "$TEMP/boot" "$MODEL" "$VARIANT")
114+
(cd simpleimage && ./make_rootfs.sh "$TEMP/rootfs" "$KERNELTAR" "$PACKAGEDEB" "$DISTRO" "$TEMP/boot" "$MODEL" "$VARIANT")
115115

116116
mv -v "$TEMP/$IMAGE" "$OUT_IMAGE"
117117

package/root/usr/local/sbin/install_desktop.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ PACKAGES=(
3535
vdpauinfo
3636
aisleriot
3737
geany
38-
gnomine
3938
gnome-sudoku
4039
mplayer
4140
scratch
@@ -60,7 +59,6 @@ case $DISTRO in
6059
PACKAGES+=(
6160
chromium-browser
6261
firefox
63-
gstreamer1.0-rockchip1
6462
)
6563
;;
6664

simpleimage/make_rootfs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ case $DISTRO in
157157
DEBUSER=pine64
158158
DEBUSERPW=pine64
159159
cat > "$DEST/second-phase" <<EOF
160-
#!/bin/sh
160+
#!/bin/bash
161161
set -ex
162162
export DEBIAN_FRONTEND=noninteractive
163163
locale-gen en_US.UTF-8
@@ -169,9 +169,8 @@ if [[ "$DISTRO" == "stretch" ]]; then
169169
add-apt-repository "deb http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial main"
170170
add-apt-repository "deb http://ppa.launchpad.net/ayufan/pine64-ppa/ubuntu xenial main"
171171
else
172-
add-apt-repository "deb http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu $DISTRO main"
173172
add-apt-repository "deb http://ppa.launchpad.net/ayufan/pine64-ppa/ubuntu $DISTRO main"
174-
end
173+
fi
175174
curl -fsSL http://deb.ayufan.eu/orgs/ayufan-pine64/archive.key | apt-key add -
176175
apt-get -y update
177176
apt-get -y install sudo sunxi-disp-tool \

simpleimage/make_simpleimage.sh

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Simple script to create a disk image which boots to U-Boot on Pine64.
44
#
@@ -36,19 +36,7 @@ if [ "$disk_size" -lt 60 ]; then
3636
exit 2
3737
fi
3838

39-
if [ -z "$model" ]; then
40-
model="pine64"
41-
fi
42-
43-
echo "Creating $model image $out of size $disk_size MiB ..."
44-
45-
if [ "$model" = "pine64" ]; then
46-
model=""
47-
fi
48-
suffix=""
49-
if [ -n "$model" ]; then
50-
suffix="-$model"
51-
fi
39+
echo "Creating image $out of size $disk_size MiB ..."
5240

5341
if [[ -z "$boot0" ]]; then
5442
echo "You must specify boot0 environment variable"
@@ -89,11 +77,18 @@ if [ -n "$kernel_tarball" ]; then
8977
echo "Using Kernel from $kernel_tarball ..."
9078
tar -C $temp -xJf "$kernel_tarball"
9179
mv $temp/boot/uEnv.txt.in $temp/boot/uEnv.txt
80+
if [[ -n "$model" ]]; then
81+
echo "pine64_model=$model" >> $temp/boot/uEnv.txt
82+
fi
9283
mcopy -sm -i ${out}1 ${temp}/boot/* ::
9384
elif [ -e "${kernel}/pine64/Image" -a -e "${kernel}/pine64/sun50i-a64-pine64-plus.dtb" ]; then
85+
cp ${kernel}/uEnv.txt ${temp}/
86+
if [[ -n "$model" ]]; then
87+
echo "pine64_model=$model" >> ${temp}/uEnv.txt
88+
fi
9489
mcopy -sm -i ${out}1 ${kernel}/pine64 ::
9590
mcopy -m -i ${out}1 ${kernel}/initrd.img :: || true
96-
mcopy -m -i ${out}1 ${kernel}/uEnv.txt :: || true
91+
mcopy -m -i ${out}1 ${temp}/uEnv.txt :: || true
9792
fi
9893
dd if=${out}1 conv=notrunc oflag=append bs=1M seek=$((part_position/1024)) of="$out"
9994
rm -f ${out}1

0 commit comments

Comments
 (0)