added alarm/uboot-espressobin

This commit is contained in:
Kevin Mihelich 2017-02-01 02:54:29 +00:00
parent 14487aab02
commit 8293a07daa
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# U-Boot: ESPRESSOBin
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=8
pkgname=uboot-espressobin
pkgver=1.0
pkgrel=1
pkgdesc="U-Boot configuration for ESPRESSOBin"
arch=('aarch64')
url='http://www.denx.de/wiki/U-Boot/WebHome'
license=('GPL')
backup=('boot/uEnv.txt')
source=('uEnv.txt')
md5sums=('fce851bd426b792e17bed25c09b00136')
package() {
mkdir -p "${pkgdir}"/boot
cp uEnv.txt "${pkgdir}"/boot
}

View file

@ -0,0 +1,12 @@
kernel_addr=0x2000000
ramdisk_addr=0x1100000
fdt_addr=0x1000000
fdt_high=0xffffffffffffffff
image_name=/boot/Image
ramdisk_name=/boot/initramfs-linux.uimg
fdt_name=/boot/dtbs/marvell/armada-3720-espressobin.dtb
get_env=if ext4load mmc 0 $loadaddr /boot/uEnv.txt; then env import -t $loadaddr $filesize; if test -n ${uenvcmd}; then run uenvcmd; fi; fi
get_images=ext4load mmc 0 $kernel_addr $image_name && ext4load mmc 0 $fdt_addr $fdt_name
get_ramdisk=ext4load mmc 0 $ramdisk_addr $ramdisk_name
bootargs=console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk0p1 rw rootwait
bootcmd=mmc dev 0; run get_env; if run get_images; then if run get_ramdisk; then booti $kernel_addr $ramdisk_addr $fdt_addr; else booti $kernel_addr - $fdt_addr; fi; fi