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

Philip Balister philip at balister.org
Mon Apr 7 17:23:54 PDT 2014


On 04/05/2014 11:30 AM, Elvis Dowson wrote:
> Hi Mike,
> 
> On Apr 5, 2014, at 22:21, Mike Looijmans <mike.looijmans at topic.nl> wrote:
> 
>> Basically, the same method as the other boards. You can use the u-boot-zynq-spl.bb recipe from meta-topic as an example, it builds the reference design using XPS, exports the SDK files which the u-boot recipe picks up to build the bootloader. I'm working on a better method to get the ps7_init.[ch], but as it is now, it doesn't need any manual actions, and no external tools like bootgen (well, you need XPS or Vivado to build the logic) to create a complete image from scratch. It also doesn't need an FSBL.
>>
>> Best would be to have only the MIO and DDR configuration in the bootloader, and leave the rest for the kernel to configure. There is no pinmux support yet, but since everything you need is publicly available, anyone with some kernel hacking skill should be able to cook something up. By far the simplest starting point would be "if a device is initialized by the kernel, but not configured, assume it should be connected to the EMIO”.
> 
> 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?

Some drift from the original topic, but I wanted to point out if you are
using recent u-boot with spl support you can do this:

do_configure_prepend () {
        cp ${WORKDIR}/ps7_init.h ${S}/board/xilinx/zynq/
        cp ${WORKDIR}/ps7_init.c ${S}/board/xilinx/zynq/
}


You'll need the ps7 files from EDK in your files. I realize the license
in them is silly, please complain to Xilinx about this.

I'm still not happy having to use several Gbytes of stuff to make these
files, but it has made it much easier for me to building al the files
needed to make a bootable system.

Philip

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20140407/2c7d7958/attachment.pgp>


More information about the meta-xilinx mailing list