summaryrefslogtreecommitdiff
path: root/libre/uboot-sunxi-linux-libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot-sunxi-linux-libre')
-rw-r--r--libre/uboot-sunxi-linux-libre/PKGBUILD28
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a10-olinuxino-lime-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a10s-olinuxino-lime-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-micro-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime2-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-micro-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-cubieboard-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-cubieboard2-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-cubietruck-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-pcduino-linux-libre.install (renamed from libre/uboot-sunxi-linux-libre/uboot-sunxi-linux-libre.install)4
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-pcduino3-linux-libre.install22
-rw-r--r--libre/uboot-sunxi-linux-libre/uboot-pcduino3-nano-linux-libre.install22
14 files changed, 280 insertions, 16 deletions
diff --git a/libre/uboot-sunxi-linux-libre/PKGBUILD b/libre/uboot-sunxi-linux-libre/PKGBUILD
index 66cb3bd31..bf82bd926 100644
--- a/libre/uboot-sunxi-linux-libre/PKGBUILD
+++ b/libre/uboot-sunxi-linux-libre/PKGBUILD
@@ -20,7 +20,7 @@ pkgname=("uboot-a10-olinuxino-lime-${_pkgbase}"
"uboot-pcduino3-${_pkgbase}"
"uboot-pcduino3-nano-${_pkgbase}")
pkgver=2015.07
-pkgrel=1
+pkgrel=1.1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
@@ -75,7 +75,7 @@ build() {
package_uboot-a10-olinuxino-lime-linux-libre() {
pkgdesc="U-Boot for A10 OLinuXino Lime (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a10-olinuxino-lime')
@@ -89,7 +89,7 @@ package_uboot-a10-olinuxino-lime-linux-libre() {
package_uboot-a10s-olinuxino-micro-linux-libre() {
pkgdesc="U-Boot for A10s OLinuXino Micro (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a10s-olinuxino-micro')
@@ -103,7 +103,7 @@ package_uboot-a10s-olinuxino-micro-linux-libre() {
package_uboot-a13-olinuxino-linux-libre() {
pkgdesc="U-Boot for A13 OLinuXino (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a13-olinuxino')
@@ -117,7 +117,7 @@ package_uboot-a13-olinuxino-linux-libre() {
package_uboot-a13-olinuxino-micro-linux-libre() {
pkgdesc="U-Boot for A13 OLinuXino Micro (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a13-olinuxino-micro')
@@ -131,7 +131,7 @@ package_uboot-a13-olinuxino-micro-linux-libre() {
package_uboot-a20-olinuxino-lime-linux-libre() {
pkgdesc="U-Boot for A20 OLinuXino Lime (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a20-olinuxino-lime')
@@ -145,7 +145,7 @@ package_uboot-a20-olinuxino-lime-linux-libre() {
package_uboot-a20-olinuxino-lime2-linux-libre() {
pkgdesc="U-Boot for A20 OLinuXino Lime2 (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a20-olinuxino-lime2')
@@ -159,7 +159,7 @@ package_uboot-a20-olinuxino-lime2-linux-libre() {
package_uboot-a20-olinuxino-micro-linux-libre() {
pkgdesc="U-Boot for A20 OLinuXino Micro (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-a20-olinuxino-micro')
@@ -173,7 +173,7 @@ package_uboot-a20-olinuxino-micro-linux-libre() {
package_uboot-cubieboard-linux-libre() {
pkgdesc="U-Boot for Cubieboard (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-cubieboard')
@@ -187,7 +187,7 @@ package_uboot-cubieboard-linux-libre() {
package_uboot-cubieboard2-linux-libre() {
pkgdesc="U-Boot for Cubieboard 2 (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-cubieboard2')
@@ -201,7 +201,7 @@ package_uboot-cubieboard2-linux-libre() {
package_uboot-cubietruck-linux-libre() {
pkgdesc="U-Boot for Cubietruck (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-cubietruck')
@@ -215,7 +215,7 @@ package_uboot-cubietruck-linux-libre() {
package_uboot-pcduino-linux-libre() {
pkgdesc="U-Boot for pcDuino (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-pcduino')
@@ -229,7 +229,7 @@ package_uboot-pcduino-linux-libre() {
package_uboot-pcduino3-linux-libre() {
pkgdesc="U-Boot for pcDuino3 (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-pcduino3')
@@ -243,7 +243,7 @@ package_uboot-pcduino3-linux-libre() {
package_uboot-pcduino3-nano-linux-libre() {
pkgdesc="U-Boot for pcDuino3 Nano (built for the linux-libre kernel package)"
- install=${pkgbase}.install
+ install=${pkgname}.install
backup=(boot/${pkgname}/boot.txt boot/${pkgname}/boot.scr)
replaces=('uboot-pcduino3-nano')
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a10-olinuxino-lime-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a10-olinuxino-lime-linux-libre.install
new file mode 100644
index 000000000..bd0e36bfb
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a10-olinuxino-lime-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a10-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a10-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a10s-olinuxino-lime-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a10s-olinuxino-lime-linux-libre.install
new file mode 100644
index 000000000..ea85e388d
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a10s-olinuxino-lime-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a10s-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a10s-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-linux-libre.install
new file mode 100644
index 000000000..a8221b5cf
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a13-olinuxino-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a13-olinuxino-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-micro-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-micro-linux-libre.install
new file mode 100644
index 000000000..2a10abd7f
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a13-olinuxino-micro-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a13-olinuxino-micro-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a13-olinuxino-micro-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime-linux-libre.install
new file mode 100644
index 000000000..474fc7006
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a20-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a20-olinuxino-lime-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime2-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime2-linux-libre.install
new file mode 100644
index 000000000..bfbbeee34
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-lime2-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a20-olinuxino-lime2-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a20-olinuxino-lime2-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-micro-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-micro-linux-libre.install
new file mode 100644
index 000000000..5d599c09c
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-a20-olinuxino-micro-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-a20-olinuxino-micro-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-a20-olinuxino-micro-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-cubieboard-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-cubieboard-linux-libre.install
new file mode 100644
index 000000000..85fe2cf24
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-cubieboard-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-cubieboard-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-cubieboard-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-cubieboard2-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-cubieboard2-linux-libre.install
new file mode 100644
index 000000000..d74c526c2
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-cubieboard2-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-cubieboard2-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-cubieboard2-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-cubietruck-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-cubietruck-linux-libre.install
new file mode 100644
index 000000000..420ead6e0
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-cubietruck-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-cubietruck-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-cubietruck-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-sunxi-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-pcduino-linux-libre.install
index 3d2a2de7b..b6bd4d068 100644
--- a/libre/uboot-sunxi-linux-libre/uboot-sunxi-linux-libre.install
+++ b/libre/uboot-sunxi-linux-libre/uboot-pcduino-linux-libre.install
@@ -3,10 +3,10 @@ flash_uboot() {
echo "Do you want to do this now? [y|N]"
read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
- dd if=/boot/uboot-sunxi-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ dd if=/boot/uboot-pcduino-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
else
echo "You can do this later by running:"
- echo "# dd if=/boot/uboot-sunxi-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ echo "# dd if=/boot/uboot-pcduino-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
fi
}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-pcduino3-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-pcduino3-linux-libre.install
new file mode 100644
index 000000000..b6fba6640
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-pcduino3-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-pcduino3-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-pcduino3-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}
diff --git a/libre/uboot-sunxi-linux-libre/uboot-pcduino3-nano-linux-libre.install b/libre/uboot-sunxi-linux-libre/uboot-pcduino3-nano-linux-libre.install
new file mode 100644
index 000000000..fd08460b7
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/uboot-pcduino3-nano-linux-libre.install
@@ -0,0 +1,22 @@
+flash_uboot() {
+ echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
+ echo "Do you want to do this now? [y|N]"
+ read -r shouldwe
+ if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
+ dd if=/boot/uboot-pcduino3-nano-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
+ else
+ echo "You can do this later by running:"
+ echo "# dd if=/boot/uboot-pcduino3-nano-linux-libre/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8"
+ fi
+}
+
+## arg 1: the new package version
+post_install() {
+ flash_uboot
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ flash_uboot
+}