Skip to contentSkip to conversation

board: add support for Xilinx zc706

PATCH New Jordi Montagne 4 participants 8 messages Mar 11, 2015 – Jul 20, 2015 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

This is a Xilinx Zynq (xc7z045) development board, based on Xilinx Zynq (xc7z045).

This support is based on Avnet Zedboard defconfig/readme.

---
Changes since v1:
* use EABIHF instead of EABI
* some fix on readme.txt (thanks Thomas Petazzoni)

---
 board/xilinx/zc706/readme.txt | 57 +++++++++++++++++++++++++++++++++++++++++++
 configs/zc706_defconfig       | 27 ++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 board/xilinx/zc706/readme.txt
 create mode 100644 configs/zc706_defconfig
board/xilinx/zc706/readme.txt new file +57 -0
new file mode 100644
index 0000000..6ab5bc9
@@ -0,0 +1,57 @@
+This is the Buildroot board support for the Xilinx ZC706. The ZC706 is
+a development board based on the Xilinx Zynq-7000 based All-Programmable
+System-On-Chip.
+
+ZC706 information including schematics, reference designs, and manuals are
+available from
+http://www.xilinx.com/products/boards-and-kits/ek-z7-zc706-g.html.
+
+uboot.bin  -- U-Boot SPL w/ Xilinx boot.bin wrapper
+---------------------------------------------------
+
+Due to licensing issues, the files ps7_init.c/h are not able to be
+distributed with the U-Boot source code.  These files are required to make a
+boot.bin file.
+
+If you already have the Xilinx tools installed, the following sequence will
+unpack, patch and build the rfs, kernel, uboot, and uboot-spl.
+
+make zc706_defconfig
+make uboot-patch
+cp ${XILINX_SDK_LIB}/hwplatform_templates/ZC706_hw_platform/ps7_init.{c,h} \
+output/build/uboot-xilinx-v2014.1/board/xilinx/zynq/
+
+Where ${XILINX_SDK_LIB} is ${XILINX}/SDK/${VERSION}/data/embeddedsw/lib.
+
+After copying these files into the U-Boot source tree, you can
+continue the build with:
+
+make
+
+*Notice*
+While the build will successfully complete without the ps7_init.*
+files, the uboot.bin file generated by this configuration will not
+function properly on the ZC706. Therefore, it is imperative that
+the ps7_init.* files be copied into the U-Boot source tree any time
+the clean, or uboot-dirclean targets are executed.
+
+
+Resulting system
+----------------
+
+A FAT32 partition should be created at the beggining of the SD Card
+and the following files should be installed:
+	boot.bin
+	devicetree.dtb
+	uImage
+	uramdisk.image.gz
+	u-boot.img
+
+
+All needed files can be taken from <output>/images/
+
+cp <output>/images/boot.bin /media/sdcard/
+cp <output>/images/uImage /media/sdcard/
+cp <output>/images/u-boot.img /media/sdcard/
+cp <output>/images/zynq-zc706.dtb /media/sdcard/devicetree.dtb
+cp <output>/images/rootfs.cpio.uboot /media/sdcard/uramdisk.image.gz
configs/zc706_defconfig new file +27 -0
new file mode 100644
index 0000000..f7600b1
@@ -0,0 +1,27 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_EABIHF=y
+BR2_ARM_ENABLE_NEON=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.8"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyPS0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/Xilinx/linux-xlnx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="xilinx-v2014.2.01"
+BR2_LINUX_KERNEL_DEFCONFIG="xilinx_zynq"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="zynq-zc706"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zc70x"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Xilinx/u-boot-xlnx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xilinx-v2014.1"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="boot.bin"
Signature · 1 line
2.0.5
#1 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

up

Quoted 116 lines · Jordi Montagne

This is a Xilinx Zynq (xc7z045) development board, based on Xilinx Zynq (xc7z045).

This support is based on Avnet Zedboard defconfig/readme.

---
Changes since v1:
* use EABIHF instead of EABI
* some fix on readme.txt (thanks Thomas Petazzoni)

---
 board/xilinx/zc706/readme.txt | 57 +++++++++++++++++++++++++++++++++++++++++++
 configs/zc706_defconfig       | 27 ++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 board/xilinx/zc706/readme.txt
 create mode 100644 configs/zc706_defconfig
board/xilinx/zc706/readme.txt new file +57 -0
new file mode 100644
index 0000000..6ab5bc9
@@ -0,0 +1,57 @@
+This is the Buildroot board support for the Xilinx ZC706. The ZC706 is
+a development board based on the Xilinx Zynq-7000 based All-Programmable
+System-On-Chip.
+
+ZC706 information including schematics, reference designs, and manuals are
+available from
+http://www.xilinx.com/products/boards-and-kits/ek-z7-zc706-g.html.
+
+uboot.bin  -- U-Boot SPL w/ Xilinx boot.bin wrapper
+---------------------------------------------------
+
+Due to licensing issues, the files ps7_init.c/h are not able to be
+distributed with the U-Boot source code.  These files are required to make a
+boot.bin file.
+
+If you already have the Xilinx tools installed, the following sequence will
+unpack, patch and build the rfs, kernel, uboot, and uboot-spl.
+
+make zc706_defconfig
+make uboot-patch
+cp ${XILINX_SDK_LIB}/hwplatform_templates/ZC706_hw_platform/ps7_init.{c,h} \
+output/build/uboot-xilinx-v2014.1/board/xilinx/zynq/
+
+Where ${XILINX_SDK_LIB} is ${XILINX}/SDK/${VERSION}/data/embeddedsw/lib.
+
+After copying these files into the U-Boot source tree, you can
+continue the build with:
+
+make
+
+*Notice*
+While the build will successfully complete without the ps7_init.*
+files, the uboot.bin file generated by this configuration will not
+function properly on the ZC706. Therefore, it is imperative that
+the ps7_init.* files be copied into the U-Boot source tree any time
+the clean, or uboot-dirclean targets are executed.
+
+
+Resulting system
+----------------
+
+A FAT32 partition should be created at the beggining of the SD Card
+and the following files should be installed:
+       boot.bin
+       devicetree.dtb
+       uImage
+       uramdisk.image.gz
+       u-boot.img
+
+
+All needed files can be taken from <output>/images/
+
+cp <output>/images/boot.bin /media/sdcard/
+cp <output>/images/uImage /media/sdcard/
+cp <output>/images/u-boot.img /media/sdcard/
+cp <output>/images/zynq-zc706.dtb /media/sdcard/devicetree.dtb
+cp <output>/images/rootfs.cpio.uboot /media/sdcard/uramdisk.image.gz
configs/zc706_defconfig new file +27 -1
new file mode 100644
index 0000000..f7600b1
@@ -0,0 +1,27 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_EABIHF=y
+BR2_ARM_ENABLE_NEON=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.8"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyPS0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/Xilinx/linux-xlnx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="xilinx-v2014.2.01"
+BR2_LINUX_KERNEL_DEFCONFIG="xilinx_zynq"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="zynq-zc706"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zc70x"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Xilinx/u-boot-xlnx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xilinx-v2014.1"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="boot.bin"
--

2.0.5

#2 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

In reply to Jordi Montagne

up

Quoted 116 lines · Jordi Montagne

This is a Xilinx Zynq (xc7z045) development board, based on Xilinx Zynq (xc7z045).

This support is based on Avnet Zedboard defconfig/readme.

---
Changes since v1:
* use EABIHF instead of EABI
* some fix on readme.txt (thanks Thomas Petazzoni)

---
 board/xilinx/zc706/readme.txt | 57 +++++++++++++++++++++++++++++++++++++++++++
 configs/zc706_defconfig       | 27 ++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 board/xilinx/zc706/readme.txt
 create mode 100644 configs/zc706_defconfig
board/xilinx/zc706/readme.txt new file +57 -0
new file mode 100644
index 0000000..6ab5bc9
@@ -0,0 +1,57 @@
+This is the Buildroot board support for the Xilinx ZC706. The ZC706 is
+a development board based on the Xilinx Zynq-7000 based All-Programmable
+System-On-Chip.
+
+ZC706 information including schematics, reference designs, and manuals are
+available from
+http://www.xilinx.com/products/boards-and-kits/ek-z7-zc706-g.html.
+
+uboot.bin  -- U-Boot SPL w/ Xilinx boot.bin wrapper
+---------------------------------------------------
+
+Due to licensing issues, the files ps7_init.c/h are not able to be
+distributed with the U-Boot source code.  These files are required to make a
+boot.bin file.
+
+If you already have the Xilinx tools installed, the following sequence will
+unpack, patch and build the rfs, kernel, uboot, and uboot-spl.
+
+make zc706_defconfig
+make uboot-patch
+cp ${XILINX_SDK_LIB}/hwplatform_templates/ZC706_hw_platform/ps7_init.{c,h} \
+output/build/uboot-xilinx-v2014.1/board/xilinx/zynq/
+
+Where ${XILINX_SDK_LIB} is ${XILINX}/SDK/${VERSION}/data/embeddedsw/lib.
+
+After copying these files into the U-Boot source tree, you can
+continue the build with:
+
+make
+
+*Notice*
+While the build will successfully complete without the ps7_init.*
+files, the uboot.bin file generated by this configuration will not
+function properly on the ZC706. Therefore, it is imperative that
+the ps7_init.* files be copied into the U-Boot source tree any time
+the clean, or uboot-dirclean targets are executed.
+
+
+Resulting system
+----------------
+
+A FAT32 partition should be created at the beggining of the SD Card
+and the following files should be installed:
+       boot.bin
+       devicetree.dtb
+       uImage
+       uramdisk.image.gz
+       u-boot.img
+
+
+All needed files can be taken from <output>/images/
+
+cp <output>/images/boot.bin /media/sdcard/
+cp <output>/images/uImage /media/sdcard/
+cp <output>/images/u-boot.img /media/sdcard/
+cp <output>/images/zynq-zc706.dtb /media/sdcard/devicetree.dtb
+cp <output>/images/rootfs.cpio.uboot /media/sdcard/uramdisk.image.gz
configs/zc706_defconfig new file +27 -1
new file mode 100644
index 0000000..f7600b1
@@ -0,0 +1,27 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_EABIHF=y
+BR2_ARM_ENABLE_NEON=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.8"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyPS0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/Xilinx/linux-xlnx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="xilinx-v2014.2.01"
+BR2_LINUX_KERNEL_DEFCONFIG="xilinx_zynq"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="zynq-zc706"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zc70x"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Xilinx/u-boot-xlnx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xilinx-v2014.1"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="boot.bin"
--

2.0.5

#3 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

Jordi,

Quoted 1 line · jordi montagne

up

Thanks Jordi. However, there is no need to "up" a patch only 4 days after it has been submitted. Waiting ~2 weeks is probably more appropriate.

You can see the state of our patch queue at
http://patchwork.ozlabs.org/project/buildroot/list/. There are 300+ patches currently waiting there.

If you want to see your own patch merged faster, then the best way is to participate by reviewing and testing the patches submitted by others.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

Sorry for the noise. I fear I do not have the level required to review ... Regards.

Jordi

Quoted 116 lines · Jordi Montagne

This is a Xilinx Zynq (xc7z045) development board, based on Xilinx Zynq (xc7z045).

This support is based on Avnet Zedboard defconfig/readme.

---
Changes since v1:
* use EABIHF instead of EABI
* some fix on readme.txt (thanks Thomas Petazzoni)

---
 board/xilinx/zc706/readme.txt | 57 +++++++++++++++++++++++++++++++++++++++++++
 configs/zc706_defconfig       | 27 ++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 board/xilinx/zc706/readme.txt
 create mode 100644 configs/zc706_defconfig
board/xilinx/zc706/readme.txt new file +57 -0
new file mode 100644
index 0000000..6ab5bc9
@@ -0,0 +1,57 @@
+This is the Buildroot board support for the Xilinx ZC706. The ZC706 is
+a development board based on the Xilinx Zynq-7000 based All-Programmable
+System-On-Chip.
+
+ZC706 information including schematics, reference designs, and manuals are
+available from
+http://www.xilinx.com/products/boards-and-kits/ek-z7-zc706-g.html.
+
+uboot.bin  -- U-Boot SPL w/ Xilinx boot.bin wrapper
+---------------------------------------------------
+
+Due to licensing issues, the files ps7_init.c/h are not able to be
+distributed with the U-Boot source code.  These files are required to make a
+boot.bin file.
+
+If you already have the Xilinx tools installed, the following sequence will
+unpack, patch and build the rfs, kernel, uboot, and uboot-spl.
+
+make zc706_defconfig
+make uboot-patch
+cp ${XILINX_SDK_LIB}/hwplatform_templates/ZC706_hw_platform/ps7_init.{c,h} \
+output/build/uboot-xilinx-v2014.1/board/xilinx/zynq/
+
+Where ${XILINX_SDK_LIB} is ${XILINX}/SDK/${VERSION}/data/embeddedsw/lib.
+
+After copying these files into the U-Boot source tree, you can
+continue the build with:
+
+make
+
+*Notice*
+While the build will successfully complete without the ps7_init.*
+files, the uboot.bin file generated by this configuration will not
+function properly on the ZC706. Therefore, it is imperative that
+the ps7_init.* files be copied into the U-Boot source tree any time
+the clean, or uboot-dirclean targets are executed.
+
+
+Resulting system
+----------------
+
+A FAT32 partition should be created at the beggining of the SD Card
+and the following files should be installed:
+       boot.bin
+       devicetree.dtb
+       uImage
+       uramdisk.image.gz
+       u-boot.img
+
+
+All needed files can be taken from <output>/images/
+
+cp <output>/images/boot.bin /media/sdcard/
+cp <output>/images/uImage /media/sdcard/
+cp <output>/images/u-boot.img /media/sdcard/
+cp <output>/images/zynq-zc706.dtb /media/sdcard/devicetree.dtb
+cp <output>/images/rootfs.cpio.uboot /media/sdcard/uramdisk.image.gz
configs/zc706_defconfig new file +27 -1
new file mode 100644
index 0000000..f7600b1
@@ -0,0 +1,27 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_EABIHF=y
+BR2_ARM_ENABLE_NEON=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.8"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyPS0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/Xilinx/linux-xlnx.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="xilinx-v2014.2.01"
+BR2_LINUX_KERNEL_DEFCONFIG="xilinx_zynq"
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="zynq-zc706"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zc70x"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Xilinx/u-boot-xlnx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xilinx-v2014.1"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="boot.bin"
--

2.0.5

#5 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

Quoted 1 line · jordi montagne

Sorry for the noise. I fear I do not have the level required to review ...

It's not just reviewing, also testing patches is very useful! See
http://nightly.buildroot.org/manual.html#_reviewing_and_testing_patches

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#7 lore raw

PATCH v2 1/1 board: add support for Xilinx zc706

In reply to Jordi Montagne

Dear Jordi Montagne,

Quoted 10 lines · Jordi Montagne

This is a Xilinx Zynq (xc7z045) development board, based on Xilinx Zynq (xc7z045).

This support is based on Avnet Zedboard defconfig/readme.

---
Changes since v1:
* use EABIHF instead of EABI
* some fix on readme.txt (thanks Thomas Petazzoni)

Quoted 6 lines
---
 board/xilinx/zc706/readme.txt | 57 +++++++++++++++++++++++++++++++++++++++++++
 configs/zc706_defconfig       | 27 ++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 board/xilinx/zc706/readme.txt
 create mode 100644 configs/zc706_defconfig

I've finally applied your patch, after some minor changes:

[Thomas:
- minor fixes in the readme.txt
- rename defconfig from zc706_defconfig to xilinx_zc706_defconfig.]

However, in the mean time, the zedboard_defconfig has been quite significantly improved. Especially, it no longer requires the special ps7_init.c/h from the Xilinx SDK. See the following commits for details:

http://git.buildroot.net/buildroot/commit/?id=ee845a46e2e7d60ac52c38555c183020ce8cd711
http://git.buildroot.net/buildroot/commit/?id=aabe23f8615f065d7bf62801d38efd17125e78d0
http://git.buildroot.net/buildroot/commit/?id=46d6a561be418e67c3f859f7d3e7461b2a663749
http://git.buildroot.net/buildroot/commit/?id=c139f0cce7d78e21b67f4649541a25ae8b5251f4

Maybe you can have a look at the new Zedboard support and update the ZC706 support as well?

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com