mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/uboot-odroid-xu3 to 2016.07-2
This commit is contained in:
parent
1503c2f16f
commit
c8008b9253
2 changed files with 8 additions and 3 deletions
|
@ -5,7 +5,7 @@ buildarch=4
|
|||
|
||||
pkgname=uboot-odroid-xu3
|
||||
pkgver=2016.07
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="U-Boot for ODROID-XU3"
|
||||
arch=('armv7h')
|
||||
url='http://www.denx.de/wiki/U-Boot/WebHome'
|
||||
|
|
|
@ -36,8 +36,13 @@ sd_fuse() {
|
|||
}
|
||||
|
||||
flash_uboot() {
|
||||
major=$(mountpoint -d / | cut -f 1 -d ':')
|
||||
minor=$(expr $(mountpoint -d / | cut -f 2 -d ':') - 1)
|
||||
if mountpoint -d /boot > /dev/null 2>&1; then
|
||||
base=/boot
|
||||
else
|
||||
base=/
|
||||
fi
|
||||
major=$(mountpoint -d $base | cut -f 1 -d ':')
|
||||
minor=$(expr $(mountpoint -d $base | cut -f 2 -d ':') - 1)
|
||||
device=$(cat /proc/partitions | awk {'if ($1 == "'${major}'" && $2 == "'${minor}'") print $4 '})
|
||||
|
||||
echo "A new U-Boot version needs to be flashed onto /dev/${device}."
|
||||
|
|
Loading…
Reference in a new issue