summaryrefslogtreecommitdiff
path: root/uboot-pinebook.install
diff options
context:
space:
mode:
Diffstat (limited to 'uboot-pinebook.install')
-rw-r--r--uboot-pinebook.install17
1 files changed, 17 insertions, 0 deletions
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
+}