[meta-xilinx] [RFC 0/2] Platform Headers
Nathan Rossi
nathan.rossi at xilinx.com
Mon Nov 17 20:33:52 PST 2014
> -----Original Message-----
> From: Philip Balister [mailto:philip at balister.org]
> Sent: Tuesday, November 18, 2014 2:00 PM
> To: Nathan Rossi; meta-xilinx at yoctoproject.org
> Subject: Re: [meta-xilinx] [RFC 0/2] Platform Headers
>
> On 11/17/2014 10:45 PM, Nathan Rossi wrote:
> > These two patches add the ps7_init_gpl* platform headers as a recipe and
> > dependency of u-boot. I am looking for some feedback on these patches.
> >
> > Instead of supplying the ps7_init_gpl.c/h files from the layer itself
> > use the files supplied by the fsbl repository for the zc702, zc706 and
> > zedboard. This allows for external sources to provide the files and
> > deploy them into the sysroot for u-boot or other recipes to use.
>
> How do you intend for people to build u-boot/fsbl for their own boards
> based on this?
So the main goal with this patch set, is to make the ps7_init_gpl* files come from a proper dependency. By doing that the files could then be sourced a number of different ways depending on how the end user wants to provide the files, three possible use cases:
1. Provide the ps7_init_gpl* in the bsp layer (would need to create a recipe similar to the 'fsbl-platform-headers_2014.3.bb' in this patch set)
e.g. Mike does something like this in his meta-topic layer:
https://github.com/topic-embedded-products/meta-topic/blob/master/recipes-bsp/fpga/miami-xilinx-sdk.bb
2. Provide the ps7_init_gpl* from a separate tarball/download or repository (e.g. embeddedsw.git as this patch set shows).
e.g. A 'reference-design' recipe could be responsible for providing the bitstream and these ps7_init* files, which is provided by a downloadable archive (e.g. for the zybo http://digilentinc.com/Data/Products/ZYBO/zybo_base_system.zip)
3. Dynamically build and generate the ps7_init_gpl* files during the build
Additionally to that I want to make maintaining the ps7_init_gpl* files in meta-xilinx easier, by using the repository it is much easier to track changes that happen to the files in the embeddedsw repo.
Regards,
Nathan
>
> Philip
>
> >
> > This patch set also resolves the issue where if the platform headers are
> > not avaliable u-boot will still build an invalid boot.bin file.
> > SPL_BINARY is now set from the machine.conf level and when set to
> > 'boot.bin' enables building of u-boot-spl with the ps_init_gpl* files.
> > Which makes the build hard fail or not deploy invalid boot.bin files if
> > it is not possible to build a valid boot.bin.
> >
> > Nathan Rossi (2):
> > recipes-bsp/fsbl-platform-headers: Add recipe for ps7_init_gpl.[ch]
> > u-boot-xlnx: Update recipe to use platform-headers from sysroot
> >
> > classes/zynq7-platform-headers.bbclass | 4 ++
> > conf/machine/zc702-zynq7.conf | 1 +
> > conf/machine/zc706-zynq7.conf | 1 +
> > conf/machine/zedboard-zynq7.conf | 1 +
> > .../fsbl-platform-headers_2014.3.bb | 51
> ++++++++++++++++++++++
> > recipes-bsp/u-boot/u-boot-xlnx.inc | 11 +++--
> > .../u-boot-xlnx/zynq-Use-GPLed-files-for-SPL.patch | 38
> ++++++++++++++++
> > recipes-bsp/u-boot/u-boot-xlnx_2014.01.bb | 5 ++-
> > 8 files changed, 107 insertions(+), 5 deletions(-)
> > create mode 100644 classes/zynq7-platform-headers.bbclass
> > create mode 100644 recipes-bsp/platform-headers/fsbl-platform-
> headers_2014.3.bb
> > create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/zynq-Use-GPLed-files-
> for-SPL.patch
> >
More information about the meta-xilinx
mailing list