mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added alarm/uboot-espressobin
This commit is contained in:
parent
14487aab02
commit
8293a07daa
2 changed files with 32 additions and 0 deletions
20
alarm/uboot-espressobin/PKGBUILD
Normal file
20
alarm/uboot-espressobin/PKGBUILD
Normal 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
|
||||||
|
}
|
12
alarm/uboot-espressobin/uEnv.txt
Normal file
12
alarm/uboot-espressobin/uEnv.txt
Normal 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
|
Loading…
Reference in a new issue