UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant imuguruza
Participant
3,540 Views
Registered: ‎03-22-2017

How to create BOOT.BIN out of yocto image & Vivado Design

Hi there,

 

I have completed a Yocto compilation for a Zynq board (XC7Z10 partnumber) and I have this files as output:

 

core-image-minimal-dev-zynqberry-20170331102214.rootfs.cpio
core-image-minimal-dev-zynqberry-20170331102214.rootfs.cpio.gz.u-boot
core-image-minimal-dev-zynqberry-20170331102214.rootfs.manifest
core-image-minimal-dev-zynqberry-20170331102214.rootfs.tar.gz
core-image-minimal-dev-zynqberry.cpio
core-image-minimal-dev-zynqberry.cpio.gz.u-boot
core-image-minimal-dev-zynqberry.manifest
core-image-minimal-dev-zynqberry.tar.gz
modules--4.4-xilinx+git0+89cc643aff-r0-zynqberry-20170331102214.tgz
modules-zynqberry.tgz
README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
u-boot.elf
u-boot.img
u-boot-zynqberry.elf
u-boot-zynqberry.img
u-boot-zynqberry-v2016.01-xilinx+gitAUTOINC+07b02489f2-r0.elf
u-boot-zynqberry-v2016.01-xilinx+gitAUTOINC+07b02489f2-r0.img
uImage
uImage--4.4-xilinx+git0+89cc643aff-r0-zynqberry-20170331102214.bin
uImage-zynqberry.bin

Now I also have a Vivado design including the Bitstream and HDF files. My doubt is about how I create a suitable BOOT.BIN file that will boot properly my Yocto compilation.

 

I have found this link, but I'm not able to create the mentioned file...

Also I have found this link saying how to create a SD card with the image.

 

But as I'm running a PetaLinux BOOT.BIN file, does not understand the kernel I have uploaded. How can I change the u-boot configuration and make a proper BOOT.BIN image??

 

This is the output of the U-BOOT once I run it:

 

reading image.ub
** Unable to read file image.ub **
U-Boot-PetaLinux> bootm 0x3000000 - 0x2A00000
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Thanks in advance!

0 Kudos
3 Replies
Explorer
Explorer
3,341 Views
Registered: ‎03-17-2011

Re: How to create BOOT.BIN out of yocto image & Vivado Design

Hi,

 

What you can do is this.

Create a bif file with these three items:
//arch = zynq; split = false; format = BIN
the_ROM_image:
{
[bootloader]/path-to-fsbl/executable.elf
/path_to_bitfile/bitstream.bit
/path_to_yocto/poky/build/tmp/deploy/images/zynqberry/u-boot.elf
}
Run the following command line:
$ bootgen -image your_bif_file.bif -arch zynq -o /path_to_bin/BOOT.bin

 

You may also have a problem with teh FSBL: use this link to create it

 

--Sebastien
0 Kudos
Visitor rajeshvadla
Visitor
2,780 Views
Registered: ‎06-14-2017

Re: How to create BOOT.BIN out of yocto image & Vivado Design

Hello,

 

Can you please help me how to build yocto for xilinx xc7z020 board ? I am not seeing any machine config file for this board in meta-xilinx layer so how can we built for this particular hardware.

 

I am trying this from so many days,i am not getting the correct solution .please help me i think you built for XC710.

 

Thanks for your reply,

V Rajesh

0 Kudos
Visitor rajeshvadla
Visitor
2,767 Views
Registered: ‎06-14-2017

Re: How to create BOOT.BIN out of yocto image & Vivado Design

Hello imuguruza,

I am trying to build yocto for XC7Z010 board ,i copied the zc702 board config file and renaming with this board and this file consists of

UBOOT_MACHINE = "zynq_zc702_config"
SPL_BINARY = "spl/boot.bin"

SERIAL_CONSOLE = "115200 ttyPS0"

KERNEL_DEVICETREE = "zynq-zc702.dtb"
KERNEL_FEATURES += "features/rtc/rtc.scc"

IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zc702.dtb"


So,how can i give xc7z010 board files here like config file and dtb file

Thanks for your reply,
V Rajesh
0 Kudos