From 02a97e0f1082376fd7982fceeb140a93497eecf8 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 15 Sep 2015 19:49:45 +1000 Subject: u-boot-xlnx: Update to 2015.04 'xilinx-v2015.2' * Update to the 'xilinx-v2015.2' release tag, this corresponds to 2015.04 version of u-boot * Update microblaze configuration patch for this version * Swap picozed patch for a upstream backported version Signed-off-by: Nathan Rossi --- recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb | 37 ---------------------- recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb | 37 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc | 13 -------- recipes-bsp/u-boot/u-boot-xlnx-2015.04.inc | 13 ++++++++ ...roblaze-generic_defconfig-Disable-configs.patch | 33 ++++++++++++++----- .../zynq-Add-Zynq-PicoZed-board-support.patch | 35 ++++++++++---------- recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb | 17 ---------- recipes-bsp/u-boot/u-boot-xlnx_2015.04.bb | 17 ++++++++++ 8 files changed, 110 insertions(+), 92 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb create mode 100644 recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb delete mode 100644 recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc create mode 100644 recipes-bsp/u-boot/u-boot-xlnx-2015.04.inc delete mode 100644 recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb create mode 100644 recipes-bsp/u-boot/u-boot-xlnx_2015.04.bb diff --git a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb deleted file mode 100644 index aea587e3..00000000 --- a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb +++ /dev/null @@ -1,37 +0,0 @@ -include u-boot-xlnx.inc -include u-boot-xlnx-2015.01.inc - -COMPATIBLE_MACHINE = "zynq" - -PROVIDES = "virtual/boot-bin" - -SPL_BINARY = "boot.bin" -UBOOT_MAKE_TARGET ?= "boot.bin" - -inherit zynq7-platform-paths - -DEPENDS += "virtual/zynq7-platform-init" - -do_configure_prepend() { - [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ] && \ - cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ${S}/board/xilinx/zynq/ - [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ] && \ - cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ${S}/board/xilinx/zynq/ -} - -do_install () { - if [ "x${SPL_BINARY}" != "x" ]; then - install -d ${D}/boot - install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} - ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARY} - fi -} - -do_deploy () { - if [ "x${SPL_BINARY}" != "x" ]; then - install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} - rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK} - ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARY} - ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} - fi -} diff --git a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb new file mode 100644 index 00000000..052a65d4 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.04.bb @@ -0,0 +1,37 @@ +include u-boot-xlnx.inc +include u-boot-xlnx-2015.04.inc + +COMPATIBLE_MACHINE = "zynq" + +PROVIDES = "virtual/boot-bin" + +SPL_BINARY = "boot.bin" +UBOOT_MAKE_TARGET ?= "boot.bin" + +inherit zynq7-platform-paths + +DEPENDS += "virtual/zynq7-platform-init" + +do_configure_prepend() { + [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ] && \ + cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.h ${S}/board/xilinx/zynq/ + [ -e ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ] && \ + cp ${PLATFORM_INIT_STAGE_DIR}/ps7_init_gpl.c ${S}/board/xilinx/zynq/ +} + +do_install () { + if [ "x${SPL_BINARY}" != "x" ]; then + install -d ${D}/boot + install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} + ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARY} + fi +} + +do_deploy () { + if [ "x${SPL_BINARY}" != "x" ]; then + install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} + rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK} + ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARY} + ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} + fi +} diff --git a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc deleted file mode 100644 index 8ee028ed..00000000 --- a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc +++ /dev/null @@ -1,13 +0,0 @@ - -SRCREV = "58359ed54834e42e5f9ee336a7daa62c3c86c32a" -PV = "v2015.01${XILINX_EXTENSION}+git${SRCPV}" - -FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" -SRC_URI += " \ - file://zynq-Add-Zynq-PicoZed-board-support.patch \ - file://microblaze-Fix-EMAC-Lite-initialization.patch \ - file://microblaze-generic_defconfig-Disable-configs.patch \ - " - -LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" - diff --git a/recipes-bsp/u-boot/u-boot-xlnx-2015.04.inc b/recipes-bsp/u-boot/u-boot-xlnx-2015.04.inc new file mode 100644 index 00000000..9206c2ca --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx-2015.04.inc @@ -0,0 +1,13 @@ + +SRCREV = "1160fbcc619f23bf87cde01ed651566474e17eb9" +PV = "v2015.04${XILINX_EXTENSION}+git${SRCPV}" + +FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" +SRC_URI += " \ + file://zynq-Add-Zynq-PicoZed-board-support.patch \ + file://microblaze-Fix-EMAC-Lite-initialization.patch \ + file://microblaze-generic_defconfig-Disable-configs.patch \ + " + +LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" + diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch index 6de7b0e7..316d89af 100644 --- a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch @@ -1,4 +1,3 @@ -From 4955e7593d4d9b22761c0d1cac53d3f2ce7bc329 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Mon, 20 Apr 2015 17:57:34 +1000 Subject: [PATCH] microblaze-generic_defconfig: Disable configs @@ -6,20 +5,38 @@ Subject: [PATCH] microblaze-generic_defconfig: Disable configs Signed-off-by: Nathan Rossi Upstream-Status: Configuration --- - configs/microblaze-generic_defconfig | 3 --- - 1 file changed, 3 deletions(-) + configs/microblaze-generic_defconfig | 4 +--- + include/configs/microblaze-generic.h | 5 +++++ + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig -index 5cfd596..5ce5492 100644 +index 4211d71..69b8023 100644 --- a/configs/microblaze-generic_defconfig +++ b/configs/microblaze-generic_defconfig -@@ -1,6 +1,3 @@ +@@ -1,6 +1,4 @@ -CONFIG_SPL=y - +S:CONFIG_MICROBLAZE=y - +S:CONFIG_TARGET_MICROBLAZE_GENERIC=y + CONFIG_MICROBLAZE=y + CONFIG_TARGET_MICROBLAZE_GENERIC=y -CONFIG_OF_CONTROL=y -CONFIG_OF_EMBED=y CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" ++CONFIG_SYS_BOOTM_LEN=33554432 +diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h +index 073f3ef..26e85c7 100644 +--- a/include/configs/microblaze-generic.h ++++ b/include/configs/microblaze-generic.h +@@ -219,6 +219,11 @@ + #endif + + /* ++ * BOOTM options ++ */ ++#define CONFIG_SYS_BOOTM_LEN (32 * 1024 * 1024) ++ ++/* + * BOOTP options + */ + #define CONFIG_BOOTP_BOOTFILESIZE -- -1.7.10.4 +2.5.1 diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch index c3521500..73220774 100644 --- a/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch +++ b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch @@ -1,6 +1,6 @@ -From 7bbdb62ff8513ff1d7c1bacb43be49d70c44539d Mon Sep 17 00:00:00 2001 +From 8d00cfe0fb3132a5d2035f5945e81c212121326e Mon Sep 17 00:00:00 2001 From: Nathan Rossi -Date: Tue, 7 Apr 2015 11:27:20 +1000 +Date: Tue, 14 Apr 2015 14:58:10 +1000 Subject: [PATCH] zynq: Add Zynq PicoZed board support The PicoZed is a System-on-Module board which is marketed as part of @@ -17,13 +17,15 @@ More information on this board, its variants and available carrier boards is available at: http://zedboard.org/product/picozed Signed-off-by: Nathan Rossi +Signed-off-by: Michal Simek +Upstream-Status: Backport --- - arch/arm/cpu/armv7/zynq/Kconfig | 4 ++++ - arch/arm/dts/Makefile | 1 + - arch/arm/dts/zynq-picozed.dts | 23 +++++++++++++++++++++++ - configs/zynq_picozed_defconfig | 6 ++++++ - include/configs/zynq_picozed.h | 28 ++++++++++++++++++++++++++++ - 5 files changed, 62 insertions(+) + arch/arm/cpu/armv7/zynq/Kconfig | 4 ++++ + arch/arm/dts/Makefile | 1 + + arch/arm/dts/zynq-picozed.dts | 23 +++++++++++++++++++++++ + configs/zynq_picozed_defconfig | 6 ++++++ + include/configs/zynq_picozed.h | 27 +++++++++++++++++++++++++++ + 5 files changed, 61 insertions(+) create mode 100644 arch/arm/dts/zynq-picozed.dts create mode 100644 configs/zynq_picozed_defconfig create mode 100644 include/configs/zynq_picozed.h @@ -51,7 +53,7 @@ index 2482bbb..d0874ab 100644 default "zynq_zc770" if TARGET_ZYNQ_ZC770 default "zynq_zybo" if TARGET_ZYNQ_ZYBO diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile -index 5b49004..8cdd003 100644 +index e08546b..84b0bed 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_ZYNQ) += zynq-zc702.dtb \ @@ -93,22 +95,22 @@ index 0000000..686b98f +}; diff --git a/configs/zynq_picozed_defconfig b/configs/zynq_picozed_defconfig new file mode 100644 -index 0000000..8a4916a +index 0000000..b782873 --- /dev/null +++ b/configs/zynq_picozed_defconfig @@ -0,0 +1,6 @@ +CONFIG_SPL=y -++S:CONFIG_ARM=y -++S:CONFIG_ZYNQ=y -++S:CONFIG_TARGET_ZYNQ_PICOZED=y ++CONFIG_ARM=y ++CONFIG_ZYNQ=y ++CONFIG_TARGET_ZYNQ_PICOZED=y +CONFIG_OF_CONTROL=n +CONFIG_DEFAULT_DEVICE_TREE="zynq-picozed" diff --git a/include/configs/zynq_picozed.h b/include/configs/zynq_picozed.h new file mode 100644 -index 0000000..337457c +index 0000000..d116e05 --- /dev/null +++ b/include/configs/zynq_picozed.h -@@ -0,0 +1,28 @@ +@@ -0,0 +1,27 @@ +/* + * (C) Copyright 2015 Xilinx, Inc. + * @@ -131,12 +133,11 @@ index 0000000..337457c + +#define CONFIG_ZYNQ_SDHCI1 +#define CONFIG_ZYNQ_USB -+#define CONFIG_ZYNQ_QSPI +#define CONFIG_ZYNQ_BOOT_FREEBSD + +#include + +#endif /* __CONFIG_ZYNQ_PICOZED_H */ -- -1.7.10.4 +2.5.1 diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb b/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb deleted file mode 100644 index 81499125..00000000 --- a/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb +++ /dev/null @@ -1,17 +0,0 @@ -include u-boot-xlnx.inc -include u-boot-xlnx-2015.01.inc -include u-boot-extra.inc - -UBOOT_ENV_zc702-zynq7 = "uEnv" -UBOOT_ENV_zedboard-zynq7 = "uEnv" - -SRC_URI_append_zc702-zynq7 += "file://uEnv.txt" -SRC_URI_append_zedboard-zynq7 += "file://uEnv.txt" - -do_compile_append() { - # link u-boot-dtb.img to u-boot.img. - if [ ! -e ${B}/u-boot-dtb.img ]; then - ln -sf u-boot.img ${B}/u-boot-dtb.img - fi -} - diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2015.04.bb b/recipes-bsp/u-boot/u-boot-xlnx_2015.04.bb new file mode 100644 index 00000000..fd28fbee --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx_2015.04.bb @@ -0,0 +1,17 @@ +include u-boot-xlnx.inc +include u-boot-xlnx-2015.04.inc +include u-boot-extra.inc + +UBOOT_ENV_zc702-zynq7 = "uEnv" +UBOOT_ENV_zedboard-zynq7 = "uEnv" + +SRC_URI_append_zc702-zynq7 += "file://uEnv.txt" +SRC_URI_append_zedboard-zynq7 += "file://uEnv.txt" + +do_compile_append() { + # link u-boot-dtb.img to u-boot.img. + if [ ! -e ${B}/u-boot-dtb.img ]; then + ln -sf u-boot.img ${B}/u-boot-dtb.img + fi +} + -- cgit v1.2.3-54-g00ecf