cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tw011
Explorer
Explorer
12,455 Views
Registered: ‎08-17-2015

xapp1082 with VIVADO 2015.4

Jump to solution

HI 

 

I have been doing xapp1082 using vivado 2015.4

 

http://www.wiki.xilinx.com/Zynq+PL+Ethernet

 

I got stuck on PS-EMIO section when i was builidng linux in petalinux.

 

 

I have copy the files from "fsbl_patch_files:" into the bootloader/zynq_fsbl.

 

and I have built images using petalinux

 

However, I got a failure message 

 

linux.PNG

 

Can you tell me where the error come from?

 

I appreciate any comment or help 

thank you

0 Kudos
1 Solution

Accepted Solutions
sampatd
Scholar
Scholar
23,878 Views
Registered: ‎09-05-2011

I suspect this could be a package dependency.

Can you please check if you have all the required packages installed on your Linux system? For a complete list of required packages, please check page 11 of the following guide:
http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_4/ug1144-petalinux-tools-reference-guide.pdf

 

Also, the following discussions should help:

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2015-2-Invalid-ELF-file-vmlinux/td-p/659064

View solution in original post

7 Replies
sampatd
Scholar
Scholar
23,879 Views
Registered: ‎09-05-2011

I suspect this could be a package dependency.

Can you please check if you have all the required packages installed on your Linux system? For a complete list of required packages, please check page 11 of the following guide:
http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_4/ug1144-petalinux-tools-reference-guide.pdf

 

Also, the following discussions should help:

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2015-2-Invalid-ELF-file-vmlinux/td-p/659064

View solution in original post

tw011
Explorer
Explorer
12,429 Views
Registered: ‎08-17-2015

Hi @sampatd

Thank you for reply

 

First of all, it works at that step after I install all the library.

 

However, I got another issue from the next step (create zynq boot image)

 

bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth_sgmii/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot (sgmii)

when I typed it it saying that  

 

ERROR : This tool requires 'bootgen' and it is missing. Please source Xilinx Tools settings first.

 

Do you know how to fix it?

 

 

Also, Is it same process in SDK using "create Boot Image" to generate BOOT.bin?

if it doesn't work in linux, can I just use SDK to generate BOOT.bin?

 

Thank you

 

0 Kudos
tw011
Explorer
Explorer
12,428 Views
Registered: ‎08-17-2015

I need to modify what I posted above.

 

from 

bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth_sgmii/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot (sgmii)

 

to

bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth_sgmii/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot

 

 

thank you

0 Kudos
sampatd
Scholar
Scholar
12,422 Views
Registered: ‎09-05-2011

PetaLinux tools invoke bootgen to invoke BOOT.bin; It is same as using "create Boot Image" in SDK.

 

However, if you set up the 2015.4 environment by sourcing settings64.sh(csh) file in your install, you do not need to go back to SDK to create the image. PetaLinux tool will do that for you.

 

In your bash type,

 

source <Xilinx Install directory>\SDK\2015.4\settings64.sh

 

and then issue the petalinux-package command.

 

tw011
Explorer
Explorer
12,413 Views
Registered: ‎08-17-2015

Thank you @sampatd

 

however, I haven't installed vivado in linux system.

I am using vivado in window, and doing some steps in linux.

 

i don't have settings64.sh in linux machine

 

If i don't have settings64.sh in the system, (since I have used vivado in window)

 

If it is same as using "create boot image", can I just do it in window SDK ?

 

Thank you

0 Kudos
sampatd
Scholar
Scholar
12,410 Views
Registered: ‎09-05-2011
sure. you can use sdk.
tw011
Explorer
Explorer
12,365 Views
Registered: ‎08-17-2015

HI @sampatd

I have used SDK for generating BOOT.bin.

 

bash> petalinux-package --boot --fsbl=zynq_fsbl.elf --fpga=$PETALINUX/xapp1082_ps_emio_eth/subsystems/linux/hw-description/ps_emio_sfp.bit --u-boot

 

I used 

 

zynq_fsbl.elf

ps_emio_sfp.bit

u-boot.elf


Do you think i have to generate fsbl.elf in SDK again, if i want to use SDK to generate BOOT.bin?

 

When I used BOOT.bin (which is made in SDK),

It doesn't boot up Linux.

 

Also, there is --u-boot command at the end (above command)

Can I use u-boot.elf instead of u-boot?

because I don't see any u-boot in the directory

 

 

I appeciate your help.

 

Thank you

0 Kudos