© Copyright 2016 Xilinx
Building the DTB:
Here, the DTS at the link
is used. This is also added to this tutorial in the
linux_files
folder. Users
can modify this to suit their needs.
linux-xlnx/scripts/dtc/dtc -I dts -O dtb -o linux_files/system.dtb linux_files/ zynqmp-zcu102-
revB.dts
Booting U-BOOT SD Boot Image:
Launch HSI and use the bootgen commands below:
bootgen -arch zynqmp -image bootgen.bif -o i BOOT.BIN -w on
The bootgen.bif file is seen below:
the_ROM_image:
{
[fsbl_config] a53_x64
[pmufw_image] pmufw.elf
[bootloader] zynqmp_fsbl.elf
[destination_device=pl] design_1_wrapper.bit
[, destination_cpu=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, this would be the uImage.
Copy the resulting BOOT.BIN onto a SD Card, and plug this into the ZCU102. Set the Boot mode to
boot from the SD card: (shown below), then set up the serial port, and power on the ZCU102.
This will boot the u-boot, then the Linux kernel. If it fails to boot the Linux image, view the
xilinx_zynqmp.h in the uboot include/configs. Otherwise, just use the command below:
booti 0x80000 – 0x4000000
Note:
Users can also achieve this from the SDK create boot image GUI. User can create a new BIF
from scratch, or import one from above. This flow is recommended as it is less error prone.