diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2017-05-15 21:27:31 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-05-15 21:27:31 +1000 |
| commit | 29fb9abca7fc72bbd327d547ebeb04a02d0617ea (patch) | |
| tree | 073d72d772eed66035612f2b7ba4f15888c73768 /recipes-bsp | |
| parent | a6178c1ffb59839ddcec54f731559bf432deaa5e (diff) | |
| download | meta-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')
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 | |||
| 8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
| 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 10 | 10 | ||
| 11 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:" | ||
| 12 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" | ||
| 13 | FILESEXTRAPATHS_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 @@ | |||
| 1 | From 05fc0a41a14dac435248aa4ea2afa44450f70d46 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nathan Rossi <nathan@nathanrossi.com> | ||
| 3 | Date: Fri, 4 Nov 2016 21:33:14 +1000 | ||
| 4 | Subject: [PATCH] arm: zynqmp: xilinx_zynqmp.h: Auto boot in JTAG if images in | ||
| 5 | memory | ||
| 6 | |||
| 7 | Add a command that checks if the Kernel image (in aarch64 Image format) | ||
| 8 | and optionally a rootfs is in memory and automatically boot these images | ||
| 9 | if in JTAG boot mode. | ||
| 10 | |||
| 11 | This allows for simpler boot automation in JTAG boot environments | ||
| 12 | (including QEMU) where manual interaction would otherwise be required. | ||
| 13 | |||
| 14 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
| 15 | Upstream-Status: Denied [Upstream prefers FIT instead] | ||
| 16 | --- | ||
| 17 | include/configs/xilinx_zynqmp.h | 6 ++++-- | ||
| 18 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h | ||
| 21 | index 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 | -- | ||
| 38 | 2.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" | |||
| 5 | SRCREV = "0b94ce5ed4a6c2cd0fec7b8337e776b03e387347" | 5 | SRCREV = "0b94ce5ed4a6c2cd0fec7b8337e776b03e387347" |
| 6 | PV = "v2016.07-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | 6 | PV = "v2016.07-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 7 | 7 | ||
| 8 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" | ||
| 9 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:" | ||
| 10 | |||
| 11 | SRC_URI_append = " \ | 8 | SRC_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 @@ | |||
| 1 | include u-boot-xlnx.inc | ||
| 2 | include u-boot-spl-zynq-init.inc | ||
| 3 | |||
| 4 | XILINX_RELEASE_VERSION = "v2017.1" | ||
| 5 | SRCREV = "92e3dd638b50ad22dd90072673c80d8730903e95" | ||
| 6 | PV = "v2017.01-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
| 7 | |||
| 8 | SRC_URI_append = " \ | ||
| 9 | file://arm-zynqmp-xilinx_zynqmp.h-Auto-boot-in-JTAG-if-imag.patch \ | ||
| 10 | " | ||
| 11 | |||
| 12 | LICENSE = "GPLv2+" | ||
| 13 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" | ||
| 14 | |||
| 15 | # u-boot 2016.07 has support for these | ||
| 16 | HAS_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 | |||
