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: 
Highlighted
Scholar vanmierlo
Scholar
323 Views
Registered: ‎06-10-2008

bootgen -o fails

Jump to solution

I tried to run bootgen from petalinux 2018.3 with the -o option to specifiy the output file. But it is totally ignored.

What gives?

Maarten

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
201 Views
Registered: ‎03-27-2018

Re: bootgen -o fails

Jump to solution

Hi vanmierlo

The command to generate an output bin file in your case should be some thing like - 

  • bootgen -arch zynq -image bootgen.bif -o system.bin -w on

When you use -process_bitstream, bootgen processes only bitstream from the BIF, and outputs it as bin/mcs. For example: If encryption is selected for bitstream in the BIF file, the output is an encrypted bitstream. When -process_bitstream is used, then -o will be ignored.

When a complete bin is genrated with the option -o, it will have all the headers, and so is the difference in format.

0 Kudos
6 Replies
Moderator
Moderator
260 Views
Registered: ‎09-12-2007

Re: bootgen -o fails

Jump to solution

can you post your bootgen command, then we can tell what is giving 

0 Kudos
Scholar vanmierlo
Scholar
251 Views
Registered: ‎06-10-2008

Re: bootgen -o fails

Jump to solution

I used:

bootgen -image system.bif -arch zynq -o system.bin -process_bitstream bin

The contents of system.bif:

all:
{
    test2018.3.runs/impl_1/top.bit
}

And it generates test2018.3.runs/impl_1/top.bit.bin and not system.bin in the current dir.

0 Kudos
Moderator
Moderator
247 Views
Registered: ‎09-12-2007

Re: bootgen -o fails

Jump to solution

Use the commad below:

  • bootgen -arch zynq -image bootgen.bif -o i system.bin -w on
0 Kudos
Scholar vanmierlo
Scholar
220 Views
Registered: ‎06-10-2008

Re: bootgen -o fails

Jump to solution

Ok, thanks. It seems to work.

So I should not use -process_bitstream, right?

And where did that i between -o and system.bin come from?

And the generated files are different as well.

0 Kudos
Xilinx Employee
Xilinx Employee
202 Views
Registered: ‎03-27-2018

Re: bootgen -o fails

Jump to solution

Hi vanmierlo

The command to generate an output bin file in your case should be some thing like - 

  • bootgen -arch zynq -image bootgen.bif -o system.bin -w on

When you use -process_bitstream, bootgen processes only bitstream from the BIF, and outputs it as bin/mcs. For example: If encryption is selected for bitstream in the BIF file, the output is an encrypted bitstream. When -process_bitstream is used, then -o will be ignored.

When a complete bin is genrated with the option -o, it will have all the headers, and so is the difference in format.

0 Kudos
Scholar vanmierlo
Scholar
185 Views
Registered: ‎06-10-2008

Re: bootgen -o fails

Jump to solution

So @stephenm 's i was a typo? It worked though.

I was expecting it to be a typo and generate a file named i and then ignore or fail on system.bin, but it didn't.

0 Kudos