From f3523eaf4f6b66e875f35b575e9bcbe6846214b7 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 10 Aug 2013 00:06:59 +0000 Subject: [PATCH] added alarm/uboot-beaglebone --- alarm/uboot-beaglebone/PKGBUILD | 42 +++++++++++++++++++++++++++++++++ alarm/uboot-beaglebone/uEnv.txt | 4 ++++ 2 files changed, 46 insertions(+) create mode 100644 alarm/uboot-beaglebone/PKGBUILD create mode 100644 alarm/uboot-beaglebone/uEnv.txt diff --git a/alarm/uboot-beaglebone/PKGBUILD b/alarm/uboot-beaglebone/PKGBUILD new file mode 100644 index 000000000..72b542464 --- /dev/null +++ b/alarm/uboot-beaglebone/PKGBUILD @@ -0,0 +1,42 @@ +# U-Boot: Beaglebone and Beaglebone Black +# Maintainer: Kevin Mihelich + +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 +} diff --git a/alarm/uboot-beaglebone/uEnv.txt b/alarm/uboot-beaglebone/uEnv.txt new file mode 100644 index 000000000..8ede5e92b --- /dev/null +++ b/alarm/uboot-beaglebone/uEnv.txt @@ -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}