diff --git a/alarm/uboot-espressobin/PKGBUILD b/alarm/uboot-espressobin/PKGBUILD new file mode 100644 index 000000000..98ccce99d --- /dev/null +++ b/alarm/uboot-espressobin/PKGBUILD @@ -0,0 +1,20 @@ +# U-Boot: ESPRESSOBin +# Maintainer: Kevin Mihelich + +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 +} diff --git a/alarm/uboot-espressobin/uEnv.txt b/alarm/uboot-espressobin/uEnv.txt new file mode 100644 index 000000000..f6693ce0d --- /dev/null +++ b/alarm/uboot-espressobin/uEnv.txt @@ -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