Xilinx ZCU102 Getting Started Quick Manual Download Page 10

 

© Copyright 2016 Xilinx 

 

Building OS Linux Image for the ZCU102: 

Here, we shall be using the latest version of the u-boot, kernel and the DTG (devicetree generator). 
Bootgen is used to create the SD BOOT.BIN file.  

More Info:

 The steps to use the Petalinux can be seen further in this tutorial. Using Petalinux versus 

the OSL flow is highly recommended. 

The ZCU102 released images, can also be downloaded from the Xilinx Wiki, 

here

 

Building the u-boot:  

 

 

git clon

https://github.com/Xilinx/u-boot-xlnx.git

  

 

cd u-boot-xlnx 

 

Copy u-boot_files/xilinx_zynqmp.h into u-boot-xlnx/include/configs/xilinx_zynqmp.h 

 

<bash> make distclean 

 

<bash> export CROSS_COMPILE=aarch64-linux-gnu- 

 

<bash> ARCH=aarch64 

 

<bash> make xilinx_zynqmp_zcu102_revB_defconfig

 

 

<bash> make -j8

 

 
 

Building the ATF (ARM Trusted Firmware): 

 

 

git clone https://github.com/Xilinx/arm-trusted-firmware.git

 

 

cd arm-trusted-firmware 

 

git checkout xilinx-v2016.1 

 

<bash> export CROSS_COMPILE=aarch64-linux-gnu- 

 

<bash> make DEBUG=0 RESET_TO_BL31=1 PLAT=zynqmp bl31

 

o

 

Use bl31.elf in arm-trusted-firmware\build\zynqmp\release\bl31

 

 
 

Building Linux Image: 

 

git clone https://github.com/Xilinx/linux-xlnx.git 

 

 

cd linux-xlnx 

 

 

copy the linux_files/rootfs.cpio.gz into linux_xlnx/usr

 

o

 

open the Makefile in linux-xlnx/usr:

 

o

 

change DINITRAMFS_IMAGE="usr/

initramfs_data

.cpio$(suffix_y)"

 

o

 

to DINITRAMFS_IMAGE="usr/

rootfs

.cpio$(suffix_y)"

 

 

<bash> export CROSS_COMPILE=aarch64-linux-gnu- 

 

<bash> make ARCH=arm64 xilinx_zynqmp_defconfig

 

 

<bash> make ARCH=arm64 Image -j16

 

o

 

This will create an Image file at arch/arm64/boot/Image

 

 

Building the FSBL and PMUFW 

 

 

Launch HSI and use the commands below 

 

o

 

open_hw_design <path to HDF> 

 

o

 

generate_app -app zynqmp_fsbl -proc psu_cortexa53_0 -dir fsbl_out –compile

 

 

rename the fsbl_out/executable.elf to zynqmp_fsbl.elf 

o

 

generate_app -app zynqmp_pmufw -proc psu_pmu_0 -dir pmufw_out -compile  

 

Summary of Contents for ZCU102

Page 1: ...talling Board files for the ZCU102 The board files are not released with the 2016 X public release Users can download this from the ZCU102 HeadStart lounge http www xilinx com member zcu102_headstart...

Page 2: ...pmu Create the FSBL App and BSP A53 Create the Echo Server App and BSP A53 o Note This is a custom Echo Server for the ZCU102 that will reset the PHY Create the LED test app and BSP A53 Create the Hel...

Page 3: ...Copyright 2016 Xilinx Task 3 ZCU102 board Setup Set the Boot Mode SW6 pins to JTAG Mode Plug in the Ethernet Cable into P12 Plug the USB UART and the USB JTAG...

Page 4: ...Copyright 2016 Xilinx Set up your host settings on your PC Setup the serial port Finally power on the ZCU102...

Page 5: ...the command below source test_on_hw tcl demo option stop rst Where Options are led echo helloa53 hellor5 and bram Type help for all the options Note User may need to power cycle between tests When th...

Page 6: ...ght 2016 Xilinx When the helloa53 or hellor5 demo is run you should see the Hello World printed to the serial console When the bram demo is run you should see the AXI BRAM results printed to the XSDB...

Page 7: ...ck on any of the applications to debug For example echo_server Right click and select Debug As Debug Configurations Double click on the Xilinx C C application System Debugger In the Target Setup tick...

Page 8: ...Copyright 2016 Xilinx Note you may need to scroll up to find the Download application box Click Apply and Debug Select Yes to launch the Debug Perspective...

Page 9: ...Debug View you should see something similar to below User can open a serial port by selecting the SDK terminal tab and select the green plus icon as shown below Setup the Port as below User can then s...

Page 10: ...inx arm trusted firmware git cd arm trusted firmware git checkout xilinx v2016 1 bash export CROSS_COMPILE aarch64 linux gnu bash make DEBUG 0 RESET_TO_BL31 1 PLAT zynqmp bl31 o Use bl31 elf in arm tr...

Page 11: ...pu a53 0 bl31 elf destination_cpu a53 0 u boot elf destination_cpu a53 0 load 0x80000 Image bin destination_cpu a53 0 load 0x4000000 system dtb Note The Image is renamed Image bin If using Petalinux t...

Page 12: ...18 0x00800000 0x00800000 mask_write 0XFFD80120 0x00800000 0x00800000 write bootloop and release A53 0 reset mwr 0xffff0000 0x14000000 mwr 0xFD1A0104 0x380E exec sleep 1 source psu_init tcl psu_init ps...

Page 13: ...pre built linux images images linux o Note you can also just use petalinux build here More Info See the Petalinux guide here for more info Users can also use a HDF file from the previous section to bu...

Page 14: ...Copyright 2016 Xilinx Booting ZCU102 on QEMU To boot use the command below from the same Petalinux project as built above cd petalinux_project petalinux boot qemu kernel...

Reviews: