summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-05-15 21:27:31 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-05-15 21:27:31 +1000
commit29fb9abca7fc72bbd327d547ebeb04a02d0617ea (patch)
tree073d72d772eed66035612f2b7ba4f15888c73768 /recipes-bsp
parenta6178c1ffb59839ddcec54f731559bf432deaa5e (diff)
downloadmeta-xilinx-29fb9abca7fc72bbd327d547ebeb04a02d0617ea.tar.gz
u-boot-xlnx: Add recipe for xilinx-v2017.1 release
Add a recipe for the u-boot-xlnx xilinx-v2017.1 release, this release is based on v2017.01 of U-Boot. Also add an updated version of the patches. This patch also moves the FILESEXTRAPATHS prepend to the u-boot-xlnx.inc due to common use. And a u-boot-xlnx/${XILINX_RELEASE_VERSION} subdir is added to the list for version specific patches. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx.inc4
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/v2017.1/arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch39
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx_2016.4.bb3
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx_2017.1.bb24
4 files changed, 67 insertions, 3 deletions
diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc
index 09feb7f2..dd28a053 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -8,3 +8,7 @@ SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https;branch=${UBRAN
8S = "${WORKDIR}/git" 8S = "${WORKDIR}/git"
9PACKAGE_ARCH = "${MACHINE_ARCH}" 9PACKAGE_ARCH = "${MACHINE_ARCH}"
10 10
11FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"
12FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:"
13FILESEXTRAPATHS_prepend := "${@'${THISDIR}/u-boot-xlnx/${XILINX_RELEASE_VERSION}:' if d.getVar('XILINX_RELEASE_VERSION') else ''}"
14
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/v2017.1/arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch b/recipes-bsp/u-boot/u-boot-xlnx/v2017.1/arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch
new file mode 100644
index 00000000..de7954a8
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-xlnx/v2017.1/arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch
@@ -0,0 +1,39 @@
1From 05fc0a41a14dac435248aa4ea2afa44450f70d46 Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan@nathanrossi.com>
3Date: Fri, 4 Nov 2016 21:33:14 +1000
4Subject: [PATCH] arm: zynqmp: xilinx_zynqmp.h: Auto boot in JTAG if images in
5 memory
6
7Add a command that checks if the Kernel image (in aarch64 Image format)
8and optionally a rootfs is in memory and automatically boot these images
9if in JTAG boot mode.
10
11This allows for simpler boot automation in JTAG boot environments
12(including QEMU) where manual interaction would otherwise be required.
13
14Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
15Upstream-Status: Denied [Upstream prefers FIT instead]
16---
17 include/configs/xilinx_zynqmp.h | 6 ++++--
18 1 file changed, 4 insertions(+), 2 deletions(-)
19
20diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
21index 9371dbb585..cd4edcf2b5 100644
22--- a/include/configs/xilinx_zynqmp.h
23+++ b/include/configs/xilinx_zynqmp.h
24@@ -253,8 +253,10 @@
25 "run xen_prepare_dt_qemu && " \
26 "tftpb 6000000 xen.ub && tftpb 0x1000000 image.ub && " \
27 "bootm 6000000 0x1000000 $fdt_addr\0" \
28- "jtagboot=tftpboot 80000 Image && tftpboot $fdt_addr system.dtb && " \
29- "tftpboot 6000000 rootfs.cpio.ub && booti 80000 6000000 $fdt_addr\0" \
30+ "jtagmemboot=if itest.w *0x80038 == 0x644d5241; then if iminfo 0x6000000; then booti 0x80000 0x6000000 $fdt_addr; else booti 0x80000 - $fdt_addr; fi; fi\0" \
31+ "jtagboot=run jtagmemboot || " \
32+ "tftpboot 80000 Image && tftpboot $fdt_addr system.dtb && " \
33+ "tftpboot 6000000 rootfs.cpio.ub && booti 80000 6000000 $fdt_addr\0" \
34 "nosmp=setenv bootargs $bootargs maxcpus=1\0" \
35 "nfsroot=setenv bootargs $bootargs root=/dev/nfs nfsroot=$serverip:/mnt/sata,tcp ip=$ipaddr:$serverip:$serverip:255.255.255.0:zynqmp:eth0:off rw\0" \
36 "sdroot0=setenv bootargs $bootargs root=/dev/mmcblk0p2 rw rootwait\0" \
37--
382.11.0
39
diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2016.4.bb b/recipes-bsp/u-boot/u-boot-xlnx_2016.4.bb
index ed4c771d..9730cb33 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx_2016.4.bb
+++ b/recipes-bsp/u-boot/u-boot-xlnx_2016.4.bb
@@ -5,9 +5,6 @@ XILINX_RELEASE_VERSION = "v2016.4"
5SRCREV = "0b94ce5ed4a6c2cd0fec7b8337e776b03e387347" 5SRCREV = "0b94ce5ed4a6c2cd0fec7b8337e776b03e387347"
6PV = "v2016.07-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" 6PV = "v2016.07-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}"
7 7
8FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:"
9FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"
10
11SRC_URI_append = " \ 8SRC_URI_append = " \
12 file://0001-fdt-add-memory-bank-decoding-functions-for-board-set.patch \ 9 file://0001-fdt-add-memory-bank-decoding-functions-for-board-set.patch \
13 file://0002-ARM-zynq-Replace-board-specific-with-generic-memory-.patch \ 10 file://0002-ARM-zynq-Replace-board-specific-with-generic-memory-.patch \
diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2017.1.bb b/recipes-bsp/u-boot/u-boot-xlnx_2017.1.bb
new file mode 100644
index 00000000..d70dfefd
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-xlnx_2017.1.bb
@@ -0,0 +1,24 @@
1include u-boot-xlnx.inc
2include u-boot-spl-zynq-init.inc
3
4XILINX_RELEASE_VERSION = "v2017.1"
5SRCREV = "92e3dd638b50ad22dd90072673c80d8730903e95"
6PV = "v2017.01-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}"
7
8SRC_URI_append = " \
9 file://arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch \
10 "
11
12LICENSE = "GPLv2+"
13LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"
14
15# u-boot 2016.07 has support for these
16HAS_PLATFORM_INIT ?= " \
17 zynq_microzed_config \
18 zynq_zed_config \
19 zynq_zc702_config \
20 zynq_zc706_config \
21 zynq_zybo_config \
22 xilinx_zynqmp_zcu102_config \
23 "
24