[meta-xilinx] Options for automatically generating BOOT.BIN file for ZC702 using Yocto

Mike Looijmans mike.looijmans at topic.nl
Sun Apr 6 22:33:02 PDT 2014


On 04/06/2014 05:51 PM, Elvis Dowson wrote:
> Hi Mike,
>
> On Apr 6, 2014, at 11:07, Mike Looijmans <mike.looijmans at topic.nl> wrote:
>
>>> Suppose I want to use the traditional method (for the moment), and want to get at the u-boot.elf file using Yocto, how would I got about exporting it to the deploy/images folder (e.g. command/script fragment) ?
>>>
>>> Is there any examples of any layers using a pre-built zynq_fsbl.elf, u-boot.elf and system_top.bit files to create a BOOT.BIN file using Yocto?
>>
>> The other u-boot script in the same layer has been doing that:
>>
>> https://github.com/topic-embedded-products/meta-topic/blob/master/recipes-bsp/u-boot/u-boot-zynq_git.bb
>>
>> It picks a prebuilt fsbl and combines it with u-boot.bin for deployment.
>
> What are the environment variables that I have to set for Vivado-2013.4?
>
> Scanning through the meta-topic layer, I find the following, do let me know if I’ve listed all the variables:
>
> XILINX_TOOL_PATH
> XILINX_VIVADO_PATH
> ZYNQ_BOOTGEN
>
> Should I additionally set the following?
>
> PATH_TO_BITSTREAMS
> PATH_TO_HW_EXPORT

You'll only need to set the ones you need. So you don't need to set the vivado 
patch if you use ISE, and vice versa. You only need to set the bootgen path if 
you plan to use the FSBL loader.

> What about the path to the zynq_fsbl.elf file?

You only need that for the non-spl build. I don't recommend that. The repo 
contains a prebuilt blob for a few board. You could create a bbappend to add 
your own.

> I notice from looking at the fpga-image-adi.bb file that you’re using the ADI fpgahdl_xilinx.git repositories to pull in all the designs.
>
> ADI have recently released Vivado compatible versions of their reference designs here:
>
> https://github.com/analogdevicesinc/hdl

Thanks, I hadn't noticed.

> I suppose the fpga-image.inc file won’t be able to handle the HDL designs from this repo at the moment, and needs to be modified accordingly?

Probably. It can handle Vivado projects, but this one needs a bit more 
attention. In this case, I'd just modify the fpga-image-adi.bb recipe to 
handle the new design completely (probably override the do_compile step), the 
XPS stuff can be removed then.

You can send me a patch or pull-request that does that :)

If the recipe exports the SDK and creates a bitstream, you don't need the 
FSBL, you can just build u-boot-zynq-spl directly and it'll boot fine (and 
faster too).

Mike.





Met vriendelijke groet / kind regards,

Mike Looijmans

TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans at topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Visit us at the Hannover Messe 7 - 11 April 2014 - Hall 002/D10 (Dutch Pavillion)
http://www.hannovermesse.de/exhibitor/topic-embedded-products/V229623




More information about the meta-xilinx mailing list