cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3008202060
Participant
Participant
1,715 Views
Registered: ‎06-15-2016

How to add PL bitstream to linux application project

Jump to solution

Hi all,

 

In my old design, I built several IP core, and added them to a top project that could be controlled by the ZYNQ processing system.(which is run on standalone).

 

Now, I want to run the code on linux system while still to use the IP core as hardware accelerator. I was wondering how should I do this.

 

I already get petalinux working and could generate the BOOT.bin/ devicetree.dtb/uImage/uramdisk.image.gz files. I could use these file to boot the board from sd card.

 

However, when I try to generate the BOOT.BIN file using fsbl.elf/bitstream.bit/u-boot.elf, and put the new BOOT.BIN to the sd card. It didn't work.

 

Could any one tell me where I was wrong? Thanks a lot.

 

Am I need to write linux device driver for those hardware accelerator?

 

----------------------detail action--------------------

1.start Vivado software.

2. New Project.

3. Select zedboard from Board lists.

4. Create Block Design.

5. Add Ip

6. Add Zynq7 Processing System.

7. Run Block Automation

8. Route M_AXI_GP0_ACLK pin to FCLK_CLK0 pin.

9. Validate Design (no error).

10. create wrapper

11. Generate Bit stream

12. open petalinux 

13. create and build one test project(generated all the boot.bin/uimage..)

14. Open sdk

15. create boot image : add design_1_wrapper.bit as data file, add fsbl.elf/u-boot.elf generated from petalinux project

16.copy the BOOT.bin to sd card.

17. power on.

18. connect the board through the terminal : sudo minicom -D /dev/ttyACM0 -b 115200 -8 -o

(this is how to usually connect the board, it works fine when I just other BOOT.BIN)

19. Nothing happened

 

 

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
fincs
Adventurer
Adventurer
1,820 Views
Registered: ‎03-21-2016

I might not quite understand the question, but you can do this:

11. Generate Bit stream

11.1 File => Export => hardware (include bitstream) => the result is .hdf file

12. open petalinux 

13. petalinux-create --type project --template zynq --name test_ip_project

14. petalinux-config--get-hw-description=<PATH-TO-HDF-DIRECTORY>

...

UG1144 => Create a New PetaLinux Project

View solution in original post

0 Kudos
2 Replies
fincs
Adventurer
Adventurer
1,821 Views
Registered: ‎03-21-2016

I might not quite understand the question, but you can do this:

11. Generate Bit stream

11.1 File => Export => hardware (include bitstream) => the result is .hdf file

12. open petalinux 

13. petalinux-create --type project --template zynq --name test_ip_project

14. petalinux-config--get-hw-description=<PATH-TO-HDF-DIRECTORY>

...

UG1144 => Create a New PetaLinux Project

View solution in original post

0 Kudos
3008202060
Participant
Participant
1,632 Views
Registered: ‎06-15-2016

Thanks for your reply. It did work. Again Thanks a lot.

0 Kudos