added alarm/uboot-beaglebone

This commit is contained in:
Kevin Mihelich 2013-08-10 00:06:59 +00:00
parent 4ee6467eda
commit f3523eaf4f
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,42 @@
# U-Boot: Beaglebone and Beaglebone Black
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-beaglebone
pkgver=2013.07
pkgrel=1
pkgdesc="U-Boot for Beaglebone and Beaglebone Black"
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('git')
source=("git://git.denx.de/u-boot.git#tag=v${pkgver}"
'https://raw.github.com/eewiki/u-boot-patches/master/v2013.07/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'
'uEnv.txt')
md5sums=('SKIP'
'dbc20ae3e48ae69fc2bbd35b96a6663e'
'e651d31f2afa42fc383013f14315de36')
prepare() {
cd u-boot
patch -p1 -i "${srcdir}"/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
rm -rf .git
}
build() {
cd u-boot
unset CFLAGS
unset CXXFLAGS
make distclean
make am335x_evm_config
make
}
package() {
cd u-boot
mkdir -p "${pkgdir}"/boot
cp MLO u-boot.img "${srcdir}"/uEnv.txt "${pkgdir}"/boot
}

View file

@ -0,0 +1,4 @@
uenvcmd=if load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; run uenvboot; else setenv mmcdev 1; setenv mmcroot /dev/mmcblk1p2 rw; if load mmc 1:2 ${loadaddr} /boot/zImage; then run uenvboot; else echo No zImage found; fi; fi
uenvboot=run loadfdt; run setmmcroot; run mmcboot
setmmcroot=setenv mmcroot /dev/mmcblk${mmcdev}p2 rw
loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}