Merge pull request #15 from simonschmeisser/include-crust
hack that loads compiled crust from pine64
This commit is contained in:
commit
19d3b5637c
11
flash-it.sh
11
flash-it.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION="0.3.2"
|
VERSION="0.3.3"
|
||||||
BRANCH=master
|
BRANCH=master
|
||||||
CUSTOM=""
|
CUSTOM=""
|
||||||
UBOOT_JOB=u-boot
|
UBOOT_JOB=u-boot
|
||||||
|
@ -167,6 +167,13 @@ $WGET "${UBOOT_JOB}.zip" "${UBOOT_DOWNLOAD}" || {
|
||||||
exit 2
|
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"
|
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}" || {
|
$WGET "${ROOTFS_JOB}.zip" "${ROOTFS_DOWNLOAD}" || {
|
||||||
echo >&2 "Root filesystem image download failed. Aborting."
|
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
|
sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1
|
||||||
else
|
else
|
||||||
unzip "${UBOOT_JOB}.zip"
|
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
|
fi
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue