From afc63120509619422b86df3d61536be7245e28f8 Mon Sep 17 00:00:00 2001 From: Dan Johansen Date: Fri, 6 Mar 2020 20:26:32 +0100 Subject: initial commit --- uboot-pinebook.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 uboot-pinebook.install (limited to 'uboot-pinebook.install') diff --git a/uboot-pinebook.install b/uboot-pinebook.install new file mode 100644 index 0000000..801363d --- /dev/null +++ b/uboot-pinebook.install @@ -0,0 +1,17 @@ +flash_uboot() { + echo "Install new bootloader by running:" + echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblk0 bs=8k seek=1 for Pinebook SD" + echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblk2 bs=8k seek=1 for Pinebook eMMC" +} + +## arg 1: the new package version +post_install() { + flash_uboot + sed -i s/"LABEL=ROOT"/"LABEL=ROOT_MNJRO"/g /boot/extlinux/extlinux.conf +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + flash_uboot +} -- cgit v1.2.3-70-g09d2