aboutsummaryrefslogtreecommitdiffstats
path: root/main/u-boot
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-04-26 21:49:48 +0200
committerWilliam Pitcock <nenolod@dereferenced.org>2017-04-28 03:13:32 +0000
commitfac40c08c11069f9ce002ee393570c5bfffcd159 (patch)
tree182d64c57add2de66713417ebed2cfca07f164d5 /main/u-boot
parent9d6ec2481c75a3620795360c8fdf2c78b9354df3 (diff)
downloadaports-fac40c08c11069f9ce002ee393570c5bfffcd159.tar.bz2
aports-fac40c08c11069f9ce002ee393570c5bfffcd159.tar.xz
main/u-boot: add SolidRun iMX6 Cubox-i
Tested on CuBox-i2eX-300-D (i.MX6D)
Diffstat (limited to 'main/u-boot')
-rw-r--r--main/u-boot/APKBUILD3
-rwxr-xr-xmain/u-boot/update-u-boot9
2 files changed, 10 insertions, 2 deletions
diff --git a/main/u-boot/APKBUILD b/main/u-boot/APKBUILD
index 9203825b71..1a190ee6a8 100644
--- a/main/u-boot/APKBUILD
+++ b/main/u-boot/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=u-boot
pkgver=2017.01
-pkgrel=1
+pkgrel=2
pkgdesc="u-boot bootloader common files"
url="http://www.denx.de/wiki/U-Boot/"
arch="armhf aarch64"
@@ -24,6 +24,7 @@ case "$CARCH" in
armhf) board_configs="
beagleboard:am335x_boneblack
cubieboard:Cubieboard,Cubieboard2
+ cuboxi:mx6cuboxi
raspberrypi:rpi,rpi_2,rpi_3_32b
wandboard:wandboard
";;
diff --git a/main/u-boot/update-u-boot b/main/u-boot/update-u-boot
index 069d654755..f55dfd5e0b 100755
--- a/main/u-boot/update-u-boot
+++ b/main/u-boot/update-u-boot
@@ -16,6 +16,7 @@ get_defaults() {
if [ -z "$device" ]; then
case "$board" in
wand|cubie|cubie2) device=/dev/mmcblk0p0 ;;
+ mx6cuboxi) device=/dev/mmcblk0 ;;
esac
fi
@@ -38,7 +39,7 @@ usage: $0 [-b|--board <board-type>] [-d|--device <device>]
options:
- -b,--board <board> Specify the board type: wand, cubie, cubie2
+ -b,--board <board> Specify the board type: wand, cubie, cubie2, cuboxi
(current default: ${board:-none})
-d,--device <device> Specify the device where to install u-boot
@@ -60,6 +61,7 @@ while [ $# -gt 0 ]; do
case "$1" in
wand|wandboard) board="wand" ;;
cubie|cubieboard) board="cubie" ;;
+ cuboxi|mx6cuboxi) board="mx6cuboxi" ;;
*) usage; exit 1;;
esac
shift
@@ -108,6 +110,11 @@ cubie|cubie2)
[ -e "$imagedir/Cubieboard${board#cubie}" ] || die "Cubieboard images not installed, apk add u-boot-cubieboard"
$dryrun dd if=$imagedir/Cubieboard${board#cubie}/u-boot-sunxi-with-spl.bin of=/dev/sda bs=1024 seek=8 status=none
;;
+mx6cuboxi)
+ [ -e "$imagedir/mx6cuboxi" ] || die "iMX6 Cubox-i images not installed, apk add u-boot-cuboxi"
+ $dryrun dd if=$imagedir/mx6cuboxi/SPL of=$device bs=1k seek=1 status=none
+ $dryrun dd if=$imagedir/mx6cuboxi/u-boot.img of=$device bs=1k seek=69 status=none
+ ;;
esac
$dryrun sync
) || die "U-Boot installation in $device failed"