Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] configs: bump zedboard to 2014.1
@ 2014-05-27 21:15 Spenser Gilliland
  2014-05-28  6:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 15+ messages in thread
From: Spenser Gilliland @ 2014-05-27 21:15 UTC (permalink / raw)
  To: buildroot

Bump zedboard defconfig to version 2014.1.  This makes it possible to use
uboot-spl instead of the xilinx specific fsbl.  However, the result is kinda
hacky due to the licensing state of ps7_init.{c,h} needed for building uboot
spl.  Directions for building a proper boot.bin using the new methodolgy is
included in the readme.txt.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 board/avnet/zedboard/readme.txt |   26 ++++++++++++++------------
 configs/zedboard_defconfig      |   17 +++++------------
 2 files changed, 19 insertions(+), 24 deletions(-)

diff --git a/board/avnet/zedboard/readme.txt b/board/avnet/zedboard/readme.txt
index 6b6df36..efd076f 100644
--- a/board/avnet/zedboard/readme.txt
+++ b/board/avnet/zedboard/readme.txt
@@ -10,19 +10,21 @@ to the sdcard:
 	zynq-zed.dtb -> devicetree.dtb
 	rootfs.cpio.gz.uboot -> uramdisk.image.gz
 	uImage -> uImage
+	boot.bin -> boot.bin
 
-Uboot Support
+U-Boot SPL Support
 -------------
 
-Uboot is installed in a wrapper file called BOOT.BIN located on the root of
-the SD card.  To create the BOOT.BIN file do the following.
+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 follwing sequence will
+unpack, patch and build the rfs, kernel, uboot, and uboot-spl.
+
+make zedboard_defconfig
+make uboot-patch
+cp ${XILINX}/ISE_DS/EDK/sw/lib/hwplatform_templates/zed_hw_platform/ps7_init.{c,h} \
+output/build/uboot-xilinx-v2014.1/boards/xilinx/zynq/
+make
 
-source <path/to/xilinx/settings.sh>
-cat <<EOF > boot.bif
-{
-   [bootloader]<path/to/fsbl.elf>
-   <path/to/system.bit>
-   <path/to/uboot.elf>
-}
-EOF
-bootgen -image boot.bif -o i BOOT.BIN
diff --git a/configs/zedboard_defconfig b/configs/zedboard_defconfig
index 071ff65..e0e7760 100644
--- a/configs/zedboard_defconfig
+++ b/configs/zedboard_defconfig
@@ -1,33 +1,26 @@
 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_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
-
 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_CUSTOM_REPO_VERSION="xilinx-v2014.1"
 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
+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"
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [Buildroot]  [PATCH 1/1] configs: bump zedboard to 2014.1
@ 2014-06-01 13:48 Javier Domingo Cansino
  2014-06-01 15:26 ` Spenser Gilliland
  0 siblings, 1 reply; 15+ messages in thread
From: Javier Domingo Cansino @ 2014-06-01 13:48 UTC (permalink / raw)
  To: buildroot

Hello!

I am trying to use this patch to boot a zedboard, but I can't get it
working, I also tried doing it without the patch, and didn't succeed
neither.

I had started rewriting a more complete readme.txt to make it easier
for people create a buildroot based system[1], but didn't get zedboard
boot with those instructions neither.

Regarding your patch, I followed the specified commands in the readme,
and I noticed a failure on it, the path to copy the sources to has a
typo, needs to be board instead of boards:

>+output/build/uboot-xilinx-v2014.1/boards/xilinx/zynq/
+output/build/uboot-xilinx-v2014.1/board/xilinx/zynq/

The steps I made after make (as stated in the readme) ended, have been

cp output/images/uImage SD/
cp output/images/rootfs.cpio.uboot SD/uramdisk.image
gzip SD/uramdisk.image
cp output/images/boot.bin SD/
cp output/images/zynq-zed.dtb SD/devicetree.dtb

The board doesn't even boot, nor load with the blue led (DONE one).

I will be in #buildroot as txomon or txomon|home , and can have the
card available for testing for one week,

Cheers,

Javier Domingo Cansino

[1] Github buildroot clone: https://github.com/txomon/buildroot ->
doc/zedboard-instructions

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

end of thread, other threads:[~2014-06-01 17:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 21:15 [Buildroot] [PATCH 1/1] configs: bump zedboard to 2014.1 Spenser Gilliland
2014-05-28  6:16 ` Thomas Petazzoni
2014-05-28  6:30   ` Spenser Gilliland
2014-05-28  6:43     ` Thomas Petazzoni
2014-05-28 14:20       ` Spenser Gilliland
2014-05-28 14:36         ` Thomas Petazzoni
2014-05-28 14:45           ` Spenser Gilliland
2014-05-28 14:47             ` Thomas Petazzoni
2014-05-28 15:03               ` Spenser Gilliland
2014-05-28 15:17                 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2014-06-01 13:48 Javier Domingo Cansino
2014-06-01 15:26 ` Spenser Gilliland
2014-06-01 16:14   ` Javier Domingo Cansino
2014-06-01 16:52     ` Spenser Gilliland
2014-06-01 17:14       ` Javier Domingo Cansino

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