From 97eb6078f7d481102f2ec1637247f6b18115613b Mon Sep 17 00:00:00 2001 From: Simon Schmeisser Date: Mon, 16 Nov 2020 21:36:05 +0100 Subject: [PATCH] hack that loads compiled crust from pine64 --- flash-it.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/flash-it.sh b/flash-it.sh index 005b3c4..0647e9f 100755 --- a/flash-it.sh +++ b/flash-it.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="0.3.2" +VERSION="0.3.3" BRANCH=master CUSTOM="" UBOOT_JOB=u-boot @@ -167,6 +167,13 @@ $WGET "${UBOOT_JOB}.zip" "${UBOOT_DOWNLOAD}" || { exit 2 } +UBOOT_DOWNLOAD2="https://gitlab.com/pine64-org/crust-meta/-/jobs/artifacts/master/raw/u-boot-sunxi-with-spl-pinephone.bin?job=build" +$WGET "u-boot-sunxi-with-spl-pinephone.bin" "${UBOOT_DOWNLOAD2}" || { + echo >&2 "UBoot image download failed. Aborting." + exit 2 +} + + ROOTFS_DOWNLOAD="https://gitlab.com/sailfishos-porters-ci/dont_be_evil-ci/-/jobs/artifacts/$BRANCH/download?job=$ROOTFS_JOB" $WGET "${ROOTFS_JOB}.zip" "${ROOTFS_DOWNLOAD}" || { echo >&2 "Root filesystem image download failed. Aborting." @@ -226,7 +233,7 @@ if [ "$CUSTOM" != "" ]; then sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 else unzip "${UBOOT_JOB}.zip" -sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 +sudo dd if="./u-boot-sunxi-with-spl-pinephone.bin" of="$DEVICE_NODE" bs=8k seek=1 fi sync