mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
added alarm/uboot-trimslice
This commit is contained in:
parent
348ab85495
commit
429c7d2abe
2 changed files with 62 additions and 0 deletions
41
alarm/uboot-trimslice/PKGBUILD
Normal file
41
alarm/uboot-trimslice/PKGBUILD
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# U-Boot: TrimSlice
|
||||||
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
|
||||||
|
buildarch=4
|
||||||
|
|
||||||
|
pkgname=uboot-trimslice
|
||||||
|
pkgver=2014.10
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="U-Boot for TrimSlice"
|
||||||
|
arch=('armv7h')
|
||||||
|
url="http://git.denx.de/u-boot.git/"
|
||||||
|
makedepends=('cbootimage' 'git' 'dtc' 'uboot-tools')
|
||||||
|
license=('GPL')
|
||||||
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
||||||
|
"git+https://github.com/NVIDIA/cbootimage-configs.git"
|
||||||
|
"boot.txt")
|
||||||
|
md5sums=('3ddcaee2f05b7c464778112ec83664b5'
|
||||||
|
'SKIP'
|
||||||
|
'e0fb7b530845c0a6bcf9a7147eed1123')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd u-boot-${pkgver}
|
||||||
|
|
||||||
|
unset LDFLAGS
|
||||||
|
|
||||||
|
make distclean
|
||||||
|
make trimslice_config
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
mkdir -p "${pkgdir}"/boot
|
||||||
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "TrimSlice" -d boot.txt "${pkgdir}"/boot/boot.scr
|
||||||
|
cp boot.txt "${pkgdir}"/boot
|
||||||
|
|
||||||
|
cd cbootimage-configs/tegra20/compulab/trimslice
|
||||||
|
ln -s ${srcdir}/u-boot-${pkgver}/u-boot-dtb-tegra.bin u-boot.bin
|
||||||
|
./build.sh
|
||||||
|
|
||||||
|
cp trimslice-mmc.img trimslice-spi.img "${pkgdir}"/boot
|
||||||
|
}
|
21
alarm/uboot-trimslice/boot.txt
Normal file
21
alarm/uboot-trimslice/boot.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
if test "${devtype}" = "mmc"; then
|
||||||
|
if test ${devnum} -eq 1; then
|
||||||
|
setenv root /dev/mmcblk0p1;
|
||||||
|
else
|
||||||
|
if mmc dev 1; then
|
||||||
|
setenv root /dev/mmcblk1p1;
|
||||||
|
mmc dev 0;
|
||||||
|
else
|
||||||
|
setenv root /dev/mmcblk0p1;
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
|
else
|
||||||
|
setenv root /dev/sda1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
setenv bootargs "root=${root} rw rootwait console=tty1 console=ttyS0,115200n8 mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb"
|
||||||
|
|
||||||
|
load ${devtype} ${devnum}:${bootpart} ${loadaddr} /boot/zImage
|
||||||
|
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/tegra20-trimslice.dtb
|
||||||
|
|
||||||
|
bootz ${loadaddr} - ${fdt_addr_r}
|
Loading…
Reference in a new issue