Skip to contentSkip to conversation

zedboard: add Avnet Zedboard support.

PATCH New Thomas Petazzoni 3 participants 5 messages Feb 6, 2014 – Feb 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zedboard: add Avnet Zedboard support.

From: Spenser Gilliland <[email protected]>

[Thomas: update to recent Buildroot which had renamed several Config.in options, lock down kernel headers version]

---
 board/avnet/zedboard/readme.txt | 13 +++++++++++++
 configs/zedboard_defconfig      | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 board/avnet/zedboard/readme.txt
 create mode 100644 configs/zedboard_defconfig
board/avnet/zedboard/readme.txt new file +13 -0
new file mode 100644
index 0000000..b869066
@@ -0,0 +1,13 @@
+This is the buildroot board support for the Avnet Zedboard. The Zedboard is
+a development board based on the Xilinx Zynq-7000 based All-Programmable
+System-On-Chip.
+
+Zedboard information including schematics, reference designs, and manuals are
+available from http://www.zedboard.org .
+
+To boot the Zedboard using a buildroot generated image copy the following files
+to the sdcard:
+	zynq-zed.dtb -> devicetree.dtb
+	rootfs.cpio.gz.uboot -> uramdisk.image.gz
+	uImage -> uImage
+
configs/zedboard_defconfig new file +32 -0
new file mode 100644
index 0000000..2a67fdd
@@ -0,0 +1,32 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_ENABLE_NEON=y
+
+# Lock to 3.8 headers as the kernel is based off 3.8
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.8"
+
+BR2_TARGET_GENERIC_GETTY_PORT="ttyPS0"
+
+# Kernel
+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-v14.5"
+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-zed"
+
+# Root filesystem
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zed"
+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-v14.5"
+BR2_TARGET_UBOOT_FORMAT_ELF=y
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 zedboard: add Avnet Zedboard support.

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

From: Spenser Gilliland <[email protected]> [Thomas: update to recent Buildroot which had renamed several Config.in options, lock down kernel headers version]

Committed, thanks.

Quoted 4 lines

+++ b/board/avnet/zedboard/readme.txt

board/avnet/zedboard/readme.txt new file +2 -0
@@ -0,0 +1,13 @@
+This is the buildroot board support for the Avnet Zedboard. The Zedboard is
+a development board based on the Xilinx Zynq-7000 based All-Programmable

board/avnet/zedboard/readme.txt line 12

Quoted 10 lines
board/avnet/zedboard/readme.txt new file +10 -0
+System-On-Chip.
+
+Zedboard information including schematics, reference designs, and manuals are
+available from http://www.zedboard.org .
+
+To boot the Zedboard using a buildroot generated image copy the following files
+to the sdcard:
+	zynq-zed.dtb -> devicetree.dtb
+	rootfs.cpio.gz.uboot -> uramdisk.image.gz
+	uImage -> uImage

What about u-boot?

Quoted 7 lines
configs/zedboard_defconfig new file +7 -0
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zed"
+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-v14.5"
+BR2_TARGET_UBOOT_FORMAT_ELF=y
Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 zedboard: add Avnet Zedboard support.

Quoted 11 lines · Peter Korsgaard
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

From: Spenser Gilliland <[email protected]> [Thomas: update to recent Buildroot which had renamed several Config.in options, lock down kernel headers version]

Committed, thanks.

Quoted 16 lines
Quoted 4 lines

+++ b/board/avnet/zedboard/readme.txt

board/avnet/zedboard/readme.txt new file +2 -0
@@ -0,0 +1,13 @@
+This is the buildroot board support for the Avnet Zedboard. The Zedboard is
+a development board based on the Xilinx Zynq-7000 based All-Programmable

board/avnet/zedboard/readme.txt line 12

Quoted 10 lines
board/avnet/zedboard/readme.txt new file +10 -0
+System-On-Chip.
+
+Zedboard information including schematics, reference designs, and manuals are
+available from http://www.zedboard.org .
+
+To boot the Zedboard using a buildroot generated image copy the following files
+to the sdcard:
+    zynq-zed.dtb -> devicetree.dtb
+    rootfs.cpio.gz.uboot -> uramdisk.image.gz
+    uImage -> uImage

What about u-boot?

Building u-boot for the zed board is not difficult the problem is the convoluted wrapper which requires the XIlinx tools in order to install it. I can add directions to the readme.

The basic process is.

source <path/to/xilinx/settings.sh>
cat <<EOF > boot.bif
{
[bootloader]<path/to/fsbl.elf>
<path/to/system.bit>
<path/to/uboot.elf>
}
bootgen -image boot.bif -o i BOOT.BIN

This file then needs to be placed on the SD Card.

Quoted 15 lines

configs/zedboard_defconfig line 32

Quoted 8 lines
configs/zedboard_defconfig new file +7 -0
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="zynq_zed"
+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-v14.5"
+BR2_TARGET_UBOOT_FORMAT_ELF=y

--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 3 lines
Spenser Gilliland
Computer Engineer
Doctoral Candidate
#3 lore raw

PATCH 1/1 zedboard: add Avnet Zedboard support.

Dear Spenser Gilliland,

Quoted 10 lines · Spenser Gilliland
Quoted 1 line

What about u-boot?

Building u-boot for the zed board is not difficult the problem is the convoluted wrapper which requires the XIlinx tools in order to install it. I can add directions to the readme.

The basic process is.

source <path/to/xilinx/settings.sh>
cat <<EOF > boot.bif

Quoted 8 lines
{
   [bootloader]<path/to/fsbl.elf>
   <path/to/system.bit>
   <path/to/uboot.elf>
}

bootgen -image boot.bif -o i BOOT.BIN

This file then needs to be placed on the SD Card.

Since we're building u-boot, I believe it makes sense to indicate in the README how to use it. Could you send a followup patch, now that the initial board support has been merged?

Thanks!

Thomas

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

PATCH 1/1 zedboard: add Avnet Zedboard support.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

This file then needs to be placed on the SD Card.

Since we're building u-boot, I believe it makes sense to indicate in the README how to use it. Could you send a followup patch, now that the initial board support has been merged?

Just what I was going to suggest - Thanks!

Signature · 1 line
Bye, Peter Korsgaard