xilinx_running_petalinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xilinx_running_petalinux [2019/10/19 20:01] – [Format of the HDF file] rpjdayxilinx_running_petalinux [2019/10/20 12:01] (current) – [Configuration options] rpjday
Line 3: Line 3:
 This page steps through building for a ZCU102 using an ''.hdf'' file downloaded from GitHub, and PetaLinux 2019.1. This page steps through building for a ZCU102 using an ''.hdf'' file downloaded from GitHub, and PetaLinux 2019.1.
  
-===== Format of the HDF file ===== +===== Format of the ZCU102 HDF file =====
- +
-Downloaded from [[https://github.com/Xilinx/hdf-examples/blob/master/ultra96-zynqmp/system.hdf|here]]:+
  
 <code> <code>
Line 18: Line 16:
 -rw-r--r--. 1 rpjday rpjday   881371 May  5 15:09 psu_init.tcl -rw-r--r--. 1 rpjday rpjday   881371 May  5 15:09 psu_init.tcl
 -rw-r--r--. 1 rpjday rpjday     1007 May  5 15:09 sysdef.xml -rw-r--r--. 1 rpjday rpjday     1007 May  5 15:09 sysdef.xml
 +</code>
 +
 +''system.xml'':
 +
 +<code>
 +<?xml version="1.0"?>
 +<Project Version="1" Minor="3" DIGEST="">
 +        <TOOL_VERSION Version="2019.1"/>
 +        <MODE Name="Post-Synthesis"/>
 +        <SYSTEMINFO BOARD="xilinx.com:zcu102:3.3" PART="xczu9eg-ffvb1156-2-e" ARCH="zynquplus" PACKAGE="ffvb1156" DEVICE="xczu9eg" SPEED="-2" LUT="274080" FF="548160" BRAM="912" DSP="2520"/>
 +        <HIERARCHY Name="design_1_wrapper"/>
 +        <File Type="HW_HANDOFF" Name="design_1.hwh" DESIGN_HIERARCHY="design_1_i" BD_TYPE="DEFAULT_BD"/>
 +        <File Type="BD_TCL" Name="design_1_bd.tcl"/>
 +        <File Type="PS_FSBL_INIT" Name="psu_init.c"/>
 +        <File Type="PS_FSBL_INIT" Name="psu_init.h"/>
 +        <File Type="PS_FSBL_INIT_GPL" Name="psu_init_gpl.c"/>
 +        <File Type="PS_FSBL_INIT_GPL" Name="psu_init_gpl.h"/>
 +        <File Type="PS_INIT_HELP" Name="psu_init.html"/>
 +        <File Type="PS_XMD_INIT" Name="psu_init.tcl"/>
 +        <File Type="BIT" Name="design_1_wrapper.bit"/>
 +        <BOARD Type="NotIntegrated">
 +                <BASEBOARD Name="xilinx.com:zcu102:3.3">
 +                </BASEBOARD>
 +        </BOARD>
 +        <USEDRESOURCES LUT="300" FF="1" BRAM="0" DSP="0"/>
 +</Project>
 </code> </code>
 ===== PetaLinux build procedure ===== ===== PetaLinux build procedure =====
Line 37: Line 61:
 $ petalinux-create \ $ petalinux-create \
   --type project \   --type project \
-  --name ultra96v2 \+  --name zcu102 \
   --template zynqMP   --template zynqMP
-$ cd ultra96v2+$ cd zcu102
 </code> </code>
  
 +End result:
 +
 +<code>
 +$ tree -d
 +.
 +└── project-spec
 +    ├── configs
 +    ├── hw-description
 +    └── meta-user
 +        ├── conf
 +        ├── recipes-apps
 +        │   ├── gpio-demo
 +        │   │   └── files
 +        │   └── peekpoke
 +        │       └── files
 +        ├── recipes-bsp
 +        │   ├── device-tree
 +        │   │   └── files
 +        │   │       └── multi-arch
 +        │   └── u-boot
 +        │       └── files
 +        └── recipes-core
 +            └── images
 +</code>
 ==== Incorporating the HDF file ==== ==== Incorporating the HDF file ====
  
Line 47: Line 95:
  
 <code> <code>
-$ petalinux-config --get-hw-description <dirname of HDF File>+$ petalinux-config --get-hw-description <dirname of ZCU102 HDF File>
 </code> </code>
  
 at which time you will be placed in the PetaLinux "System Configuration" utility; if you have nothing to change, simply exit and //save your configuration//. at which time you will be placed in the PetaLinux "System Configuration" utility; if you have nothing to change, simply exit and //save your configuration//.
  
-==== Configuring the project ====+Major result is new content under ''project-spec/meta-plnx-generated''
 + 
 +===== Configuration options =====
  
 <code> <code>
 $ petalinux-config $ petalinux-config
 $ petalinux-config -c bootloader   [virtual/fsbl] $ petalinux-config -c bootloader   [virtual/fsbl]
-$ petalinux-config -c u-boot       ... hangs ...+$ petalinux-config -c u-boot       [virtual/bootloader]
 $ petalinux-config -c kernel $ petalinux-config -c kernel
 $ petalinux-config -c rootfs $ petalinux-config -c rootfs
Line 65: Line 115:
 </code> </code>
  
-==== The build process ====+===== The build process =====
  
 Now that all of the project configuration is complete, kick off the PetaLinux build with: Now that all of the project configuration is complete, kick off the PetaLinux build with:
  • xilinx_running_petalinux.1571515282.txt.gz
  • Last modified: 2019/10/19 20:01
  • by rpjday