Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] zedboard: Upgrade to U-Boot 2015.07
Date: Thu, 18 Jun 2015 23:18:16 +0200	[thread overview]
Message-ID: <20150618231816.513316f9@free-electrons.com> (raw)
In-Reply-To: <1434644878-595-2-git-send-email-xvikto03@stud.fit.vutbr.cz>

Dear Jan Viktorin,

On Thu, 18 Jun 2015 18:27:58 +0200, Jan Viktorin wrote:
> From: Jan Viktorin <viktorin@rehivetech.com>
> 
> Until recently, generation of a bootloader for the Avnet
> Zedboard (and in general all Xilinx Zynq based boards)
> has required to use the development tools by Xilinx
> (Vivado, XSDK) and to walk through a quite painful
> procedure to generate the First Stage Boot Loader
> (FSBL) and the bootable BOOT.BIN image.
> 
> This commit makes Buildroot independent on the Xilinx
> flow by utilizing U-Boot SPL and booting the Zynq's
> PL by U-Boot.
> 
> The FSBL generation is not a problem anymore with U-Boot
> 2015.07 where a generic ps7_init.c file is included and
> used to build the U-Boot SPL for various boards including
> Zedboard. The ps7_init.c file has been released under
> GNU/GPL license for this purpose. For details, see
> 
>  http://lists.denx.de/pipermail/u-boot/2015-April/210664.html
> 
> To create the BOOT.BIN automatically, there is a script
> zynq-boot-bin.py in the Xilinx github repository. This
> script is not included in the upstream of U-Boot so
> I attach it as a series of patchs (0001-0003) generated
> against U-Boot 2015.07.

It is a bit annoying to have this script as patches. Will it be merged
in the upstream U-Boot at some point? If yes, then having it as patches
is OK. Otherwise, I'd prefer to have a separate host-zync-boot-script
package, which simply downloads and installs this script in
$(HOST_DIR), and then only the patch changing the U-Boot Makefile to
call this script.

> There is a little catch, the U-Boot 2015.07 is not released
> yet, so this commit is based on 2015.07-rc2. However, as
> soon as it is out, the download site of U-Boot can be
> redirected to the release archive instead of fetching it
> by git.

Yes, this is OK.

> Steps to create a working Buildroot for Zedboard:
> 
> a) use U-Boot 2015.07 (done by this commit)
> b) patch it to use zynq-boot-bin.py (done by this commit)
> --------------------------
> 1) make zedboard_defconfig
> 2) make UBOOT_BIN=u-boot-dtb.img
> 3) copy files boot.bin, u-boot-dtb.img, rootfs.cpio.uboot,
> 	uImage, zynq-zed.dtb into your SD card
> 4) boot your Zedboard

This should just go to board/avnet/zedboard/readme.txt, no need to have
it in the commit log if you're updating that readme file.

Thanks!

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

  reply	other threads:[~2015-06-18 21:18 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18 16:27 [Buildroot] [PATCH 1/2] zedboard: Upgrade to Linux xilinx-v2015.1 (3.18) Jan Viktorin
2015-06-18 16:27 ` [Buildroot] [PATCH 2/2] zedboard: Upgrade to U-Boot 2015.07 Jan Viktorin
2015-06-18 21:18   ` Thomas Petazzoni [this message]
2015-06-19 13:38     ` [Buildroot] [PATCH v1 0/2] Make Buildroot for Zedboard independent on Xilinx tools Jan Viktorin
2015-06-19 19:59       ` Arnout Vandecappelle
2015-06-20  8:26         ` Jan Viktorin
2015-06-20  9:30           ` Arnout Vandecappelle
2015-06-19 13:40     ` [Buildroot] [PATCH v1 1/2] host-zynq-boot-bin: new package Jan Viktorin
2015-06-19 13:40       ` [Buildroot] [PATCH v1 2/2] zedboard: Upgrade to U-Boot 2015.07 Jan Viktorin
2015-06-22 11:15     ` [Buildroot] [PATCH v2 0/2] Make Buildroot for Zedboard independent on Xilinx tools Jan Viktorin
2015-06-22 11:15       ` [Buildroot] [PATCH v2 1/2] host-zynq-boot-bin: new package Jan Viktorin
2015-06-22 17:32         ` Baruch Siach
2015-06-22 21:58         ` Arnout Vandecappelle
2015-06-22 11:15       ` [Buildroot] [PATCH v2 2/2] zedboard: Upgrade to U-Boot 2015.07 Jan Viktorin
2015-06-23 12:49       ` [Buildroot] [PATCH v3 0/2] Make Buildroot for Zedboard independent on Xilinx tools Jan Viktorin
2015-06-23 12:49         ` [Buildroot] [PATCH v3 1/2] host-zynq-boot-bin: new package Jan Viktorin
2015-07-03 17:33           ` Yann E. MORIN
2015-07-03 20:00             ` Arnout Vandecappelle
2015-07-03 21:51               ` Yann E. MORIN
2015-07-03 23:44                 ` Jan Viktorin
2015-07-04 14:07           ` Thomas Petazzoni
2015-07-14 15:12             ` [Buildroot] [PATCH v4 0/7 Make Buildroot for Zedboard independent on Xilinx tools Jan Viktorin
2015-07-14 15:14               ` [Buildroot] [PATCH v4 3/7] boot/uboot: Add support for dtb.img format Jan Viktorin
2015-07-14 18:51                 ` Maxime Hadjinlian
2015-07-14 22:09                 ` Thomas Petazzoni
2015-07-14 15:14               ` [Buildroot] [PATCH v4 2/7] host-zynq-boot-bin: new package Jan Viktorin
2015-07-18 21:18                 ` Thomas Petazzoni
2015-07-14 15:14               ` [Buildroot] [PATCH v4 5/7] zedboard: Generate BOOT.BIN automatically Jan Viktorin
2015-07-14 15:16               ` [Buildroot] [PATCH v4 4/7] boot/uboot: Generate BOOT.BIN file when building for Xilinx Zynq Jan Viktorin
2015-07-18 21:19                 ` Thomas Petazzoni
2015-07-14 15:16               ` [Buildroot] [PATCH v4 6/7] zedboard: Patch default U-Boot environment for zedboard Jan Viktorin
2015-07-18 21:19                 ` Thomas Petazzoni
2015-07-14 15:16               ` [Buildroot] [PATCH v4 7/7] zedboard: Update readme.txt to reflect BOOT.BIN generation Jan Viktorin
2015-07-18 21:19                 ` Thomas Petazzoni
2015-07-14 15:17               ` [Buildroot] [PATCH v4 1/7] docs/manual: Fix trivial typo Jan Viktorin
2015-07-14 18:13                 ` Maxime Hadjinlian
2015-07-14 21:57                 ` Thomas Petazzoni
2015-06-23 12:49         ` [Buildroot] [PATCH v3 2/2] zedboard: Upgrade to U-Boot 2015.07 Jan Viktorin
2015-07-02 12:40         ` [Buildroot] [PATCH v3 0/2] Make Buildroot for Zedboard independent on Xilinx tools Jan Viktorin
2015-07-03 17:40           ` Yann E. MORIN
2015-07-03 23:52             ` Jan Viktorin
2015-06-18 21:15 ` [Buildroot] [PATCH 1/2] zedboard: Upgrade to Linux xilinx-v2015.1 (3.18) Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150618231816.513316f9@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox