Vivado HLS --> Vivado --> Petalinux --> SDCard (Boot on Board).
To fully understand what is happening at each of these stages I will go through it step by step.
C) Developing Petalinux: an operating system to be installed on the Zedboard
PetaLinux is our full Linux distribution which includes the Linux OS as well as a complete configuration, build and deploy environment for Xilinx silicon. Because PetaLinux is fully featured, integrated, tested, and documented, it is the recommended and supported Linux deployment mechanism for our customers.
Steps
- Install Petalinux if it is not already installed:
- In a terminal, navigate to the directory where you have saved both your Vivado HLS and Vivado Projects.
- Type the command:
- petalinux-create --type project --template zynq --name <Project Name>
- Where <Project Name> is the name of your project (e.g. Pre_Filter_petalinux)
- Change to project directory (the one you just created above e.g. Pre_Filter_petalinux)
- Type the command:
- petalinux-config --get-hw-description=<path-to-directory-which-contains-hardware-description-file>
- Note that the hardware description file is typically located in the .sdk/xxx_hw_platform_0 directory. For example, on my system the directory is '/home/zynquser/Projects/working/HLS_Test/Pre_Filter/Pre_Filter.sdk/Pre_Filter_wrapper_hw_platform_0'
- A GUI will appear, choose exit to exit and save the current settings.
- Enter the kernel configuration program and remove the auto internet configuration. There are problems with connecting the Ethernet cable to the Zedboard, so we remove this functionality
- Type the command:
- petalinux-config -c kernel
- deselect Networking Support --> Networking Options TCP/IP networking
- Save Settings and Exit GUI
- Ensure you are in the Petalinux project directory (e.g. Pre_Filter_petalinux):
- Type the command:
- petalinux-build
- wait a few minutes, this takes awhile
- To generate a boot image for the Zynq system:
- Type the command:
- petalinux-package --boot --fsbl <FSBL image> --fpga <FPGA bitstream> --u-boot --force
- Both files will be located in a directory similar to this:
- /home/zynquser/Projects/working/HLS_Test/Pre_Filter_peta/images/linux/zynq_fsbl.elf
- /home/zynquser/Projects/working/HLS_Test/Pre_Filter_peta/images/linux/Pre_Filter_wrapper.bit
- Copy the following files from /home/zynquser/Projects/working/HLS_Test/Pre_Filter_peta/images/linux/ to an SD card:
- Boot.BIN
- Image.ub
- Place the SD Card inside the Zedboard and turn on the board. Disconnect the Cypress UART cable from the Virtual Machine and connect it to the Host Machine:
- Choose PuTTy from Windows Start Menu and choose the correct USB Serial Port (can be found in Device Manager in Control Panel)
- Press enter and you should see a boot sequence on the terminal
- Type in username and password:
- User: root
- PW: root
Hi,
ReplyDeleteAfter getting license,where to keep in license,any variable to update the path of the license.i ma trying in ubuntu(16.04),please help me.or Any shell script i need to update the path.i am getting error,i am unable to create a project using petalinux-create command please help me