Zynq UltraScale MPSoC 2016.2 - Tutorial for design module 1

Table of Contents

Abstract
Block Diagram
Component Diagram
Source Code
How to build images

Abstract



Block Diagram

Component Diagram


<< TODO >>

Source Code


$ mkdir 1_apu_smp_linux

$ git clone https://gitenterprise.xilinx.com/PAEG/zynqmp_petalinux_bsp.git
$ cd zynqmp_petaliunux_bsp
$ git checkout 2016.2/4.4
This creates a folder “zynqmp_petalinux_bsp” and gets all source files correspond to 2016.2 from git repository

$ git apply 0001-Mini-Reference-Design-1-ZCU102-2016.2.patch

$ git clone https://gitenterprise.xilinx.com/PAEG/pmu_fw.git
This creates a folder “pmu_fw” and gets all source files from git repository

How to build images


Apply Patches
Apply the design-1 patch
$ git apply 0001-Mini-Reference-Design-1-ZCU102-2016.2.patch

FSBL
FSBL build
follow common_procedure Build FSBL in the link: Common Functions

PMU Firmware
PMU FW build
follow common_procedure Build PMUFW in the link: Common Functions

Kernel
Build the kernel image
$ petalinux-build

This will create zynqmp_petalinux_bsp/images/linux/images.ub

BOOT.BIN image
Copy the PMUFW image into petalinux build area
$ cp default_pmufw/Debug/default_pmufw.elf zynqmp_petalinux_bsp/images/linux/pmufw.elf

Copy the FSBL image into petalinux build area, if it is build by xsdk
$ cp default_fsbl/Debug/default_fsbl.elf zynqmp_petalinux_bsp/images/linux/zynqmp_fsbl.elf

Create BOOT.BIN
$ cd images/linux
$ petalinux-package --force --boot --fsbl zynqmp_fsbl.elf --pmufw pmufw.elf --atf bl31.elf --uboot

This will create zynqmp_petalinux_bsp/images/linux/BOOT.BIN

How to Execute

image.ub
boot.bin