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 skaat27
Participant
2,967 Views
Registered: ‎08-28-2017

Petalinux, Bitstream not compatible with target - ISSUE

I have an arty z7 FPGA an am working on a petalinux project. I am able to config and build my project. But when i boot it it says bitstream is not compatible with the target. What does that mean? any suggestions? I exported the HDF from vivado and in project settings the target device is same as the one i am using.

Capture2.JPG
0 Kudos
13 Replies
Scholar austin
Scholar
2,960 Views
Registered: ‎02-27-2008

Re: Petalinux, Bitstream not compatible with target - ISSUE

s.

 

In the first stage boot loader (fsbl) are all of the hardware control configuration bits for the processor system, and also the programmable logic section (typically called the bitstream).  Following the fsbl, is the program to run in the processor section (petalinux in this case).  So, the processor gets configured OK, the bitstream fails, and linux boots.  This does happen...if the bitstream is broken in some way.

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Participant skaat27
Participant
2,952 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@austin

 

Thanks. What is the solution? Do i generate bitstream again? I was successfully able to synth and impl with no timing issues. Bitsream was also generated properly.  

0 Kudos
Voyager
Voyager
2,943 Views
Registered: ‎06-24-2013

Re: Petalinux, Bitstream not compatible with target - ISSUE

Hey @skaat27,

 

Double check that the bit-stream was generated for the correct device, i.e. has the same ID code.

You can get the ID code from your device from the hardware manager (General tab) and from the bit-stream by looking for the first eight byte hex sequence starting with 0x30 0x01 0x80 0x01 which will be followed by the ID code used in the bit-stream.

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Participant skaat27
Participant
2,935 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@hpoetzl

Yes, i can see the ID code for the device. But how do i check in the bitstream. Its encoded right?

0 Kudos
Voyager
Voyager
2,927 Views
Registered: ‎06-24-2013

Re: Petalinux, Bitstream not compatible with target - ISSUE

Hey @skaat27,

 

But how do i check in the bitstream?

You can check with a hex editor or the xxd command (Linux).

The green part here is the marker and the red part is the ID ...

00000000: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000010: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000020: 0000 00bb 1122 0044 ffff ffff ffff ffff  .....".D........
00000030: aa99 5566 2000 0000 3002 2001 0000 0000  ..Uf ...0. .....
00000040: 3002 0001 0000 0000 3000 8001 0000 0000  0.......0.......
00000050: 2000 0000 3000 8001 0000 0007 2000 0000   ...0....... ...
00000060: 2000 0000 3001 a001 0000 0000 3002 6001   ...0.......0.`.
00000070: 0000 0000 3001 2001 0200 3fe5 3001 c001  ....0. ...?.0...
00000080: 0000 0000 3001 8001 0362 e093 3000 8001  ....0....b..0...

 

Best,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Participant skaat27
Participant
2,922 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@hpoetzl

 

I couldnt find the marker in my bitstream. Did a search too. Does this mean it is corrupted?

0 Kudos
Voyager
Voyager
2,919 Views
Registered: ‎06-24-2013

Re: Petalinux, Bitstream not compatible with target - ISSUE

Hey @skaat27,

 

I couldnt find the marker in my bitstream.

Does this mean it is corrupted?

Maybe, can you upload your bit-stream for inspection?

 

Best,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Participant skaat27
Participant
2,904 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@hpoetzl

 

Yes. I found it. Used a viewer on windows instead of linux. Attached images. But they are different. bit stream says 03727093 but hardware manager says 23727093. But i have chosen the correct part number in vivado

Capture3.JPG
Capture4.JPG
0 Kudos
Voyager
Voyager
2,894 Views
Registered: ‎06-24-2013

Re: Petalinux, Bitstream not compatible with target - ISSUE

Hey @skaat27,

 

IIRC, 03727093 is the Engineering sample while 23727093 is Production.

 

Best,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Participant skaat27
Participant
1,663 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@hpoetzl

 

Okay. That means the devices match and the bitstream is correct??

0 Kudos
Moderator
Moderator
1,642 Views
Registered: ‎09-12-2007

Re: Petalinux, Bitstream not compatible with target - ISSUE

So in Vivado make sure you are selecting the correct part, Not the es.

 

You can also just use the -no-rev option in XSCT to download the FPGA.

 

Also, you can use the petalinux-package --boot --fsbl path to fsbl -fpga path to bit --u-boot

Then place the boot.bin on your SD card. 

0 Kudos
Highlighted
Participant skaat27
Participant
1,631 Views
Registered: ‎08-28-2017

Re: Petalinux, Bitstream not compatible with target - ISSUE

@stephenm

 

Yes. I did choose the correct part. Its not an ES(Image attached). I

 

Ill just go through want I want to achieve.

 

1. generate HDF from vivado

2. Import it to my petalinux hw-definition

3. Run config and build.

4. boot it to my FPGA.(Facing issues here, says bitstream not compatible)

 

any suggestions ?

Capture5.JPG
0 Kudos
Moderator
Moderator
1,599 Views
Registered: ‎09-12-2007

Re: Petalinux, Bitstream not compatible with target - ISSUE

You can use the microSD on the board

 

cd images/linux

petalinux-package --boot --fpga design_1_wrapper.bit --fsbl zynqmp_fsbl.elf --u-boot

 

Place the Boot.BIN, and the image.ub on the microSD and change the bootmode jumper (JP4) to boot from the 

microSD. see fig 3.1:

 

https://reference.digilentinc.com/reference/programmable-logic/arty-z7/reference-manual

 

0 Kudos