Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] zedboard: add Avnet Zedboard support.
@ 2014-02-06 22:04 Thomas Petazzoni
  2014-02-06 22:10 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-02-06 22:04 UTC (permalink / raw)
  To: buildroot

From: Spenser Gilliland <spenser@gillilanding.com>

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

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 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

diff --git a/board/avnet/zedboard/readme.txt b/board/avnet/zedboard/readme.txt
new file mode 100644
index 0000000..b869066
--- /dev/null
+++ b/board/avnet/zedboard/readme.txt
@@ -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
+
diff --git a/configs/zedboard_defconfig b/configs/zedboard_defconfig
new file mode 100644
index 0000000..2a67fdd
--- /dev/null
+++ b/configs/zedboard_defconfig
@@ -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
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] zedboard: add Avnet Zedboard support.
  2014-02-06 22:04 [Buildroot] [PATCH] zedboard: add Avnet Zedboard support Thomas Petazzoni
@ 2014-02-06 22:10 ` Peter Korsgaard
  2014-02-06 22:28   ` Spenser Gilliland
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2014-02-06 22:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

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

 > Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Committed, thanks.

 > +++ b/board/avnet/zedboard/readme.txt
 > @@ -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

What about u-boot?

 > +# 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] zedboard: add Avnet Zedboard support.
  2014-02-06 22:10 ` Peter Korsgaard
@ 2014-02-06 22:28   ` Spenser Gilliland
  2014-02-07  8:01     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Spenser Gilliland @ 2014-02-06 22:28 UTC (permalink / raw)
  To: buildroot

On Thu, Feb 6, 2014 at 4:10 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>
>  > From: Spenser Gilliland <spenser@gillilanding.com>
>  > [Thomas: update to recent Buildroot which had renamed several
>  > Config.in options, lock down kernel headers version]
>
>  > Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
>  > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>
> Committed, thanks.
>
>  > +++ b/board/avnet/zedboard/readme.txt
>  > @@ -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
>
> 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.

>
>  > +# 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



-- 
Spenser Gilliland
Computer Engineer
Doctoral Candidate

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] zedboard: add Avnet Zedboard support.
  2014-02-06 22:28   ` Spenser Gilliland
@ 2014-02-07  8:01     ` Thomas Petazzoni
  2014-02-07  9:37       ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-02-07  8:01 UTC (permalink / raw)
  To: buildroot

Dear Spenser Gilliland,

On Thu, 6 Feb 2014 16:28:03 -0600, Spenser Gilliland wrote:

> > 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.

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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] zedboard: add Avnet Zedboard support.
  2014-02-07  8:01     ` Thomas Petazzoni
@ 2014-02-07  9:37       ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2014-02-07  9:37 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 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!

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-07  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 22:04 [Buildroot] [PATCH] zedboard: add Avnet Zedboard support Thomas Petazzoni
2014-02-06 22:10 ` Peter Korsgaard
2014-02-06 22:28   ` Spenser Gilliland
2014-02-07  8:01     ` Thomas Petazzoni
2014-02-07  9:37       ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox