background image

 

© Copyright 2016 Xilinx 

 

 

Using Petalinux 2016.X to build Linux Image for ZCU102 

In the last section we used the OSL flow to create the Linux image. Here, we shall be using the 
Petalinux 2016.X to create the image.  

Note:

 It is assumed that the user has pre-installed the Petalinux tools. There is an installer at the 

link

 

here. Users can use the ZCU102 BSP to create the linux, Image, or they can use the HDF to config the 
image. Both flows are discussed here. 

First download the ZCU102 BSP from Xilinx.com 

here

and use the instructions below to build the 

Petalinux project: 

 

petalinux-create -t project -s Xilinx-ZCU102-v2016.X-final.bsp  

o

 

Where X is either 1 or 2 

 

cd Xilinx-ZCU102-2016.1 

 

cp -r pre-built/linux/images/* images/linux/ 

o

 

Note: you can also just use petalinux-build here. 
 

More Info:

 See the Petalinux guid

here

 for more info. 

Users can also use a HDF file from the previous section to build the Linux Image (and SD boot 
images): 

 

petalinux-create --type project --template zynqMP --name petalinux_2016 

 

 

petalinux-config --get-hw-description=<path/to/folder/containing/HDF> -p petalinux_2016

 

o

 

Save, and Exit 

 

cd petalinux_2016

 

 

Open the subsystem/linux/configs/device-tree.dts file and add the content below:

 

&gem3 { 
 

status = "okay"; 

 

local-mac-address = [00 0a 35 00 02 90]; 

 

phy-mode = "rgmii-id"; 

 

phy-handle = <&phy0>; 

 

phy0: phy@c { 

 

 

reg = <0xc>; 

 

 

ti,rx-internal-delay = <0x8>; 

 

 

ti,tx-internal-delay = <0xa>; 

 

 

ti,fifo-depth = <0x1>; 

 

}; 

}; 

 

petalinux_build

 

 

petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --fpga 
images/linux/design_1_wrapper.bit --uboot 

 

o

 

This will create the two files needed on the SD card:

 

 

BOOT.BIN

 

 

/images/linux/image.ub

 

 

 

 

 

Содержание ZCU102

Страница 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...

Страница 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...

Страница 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...

Страница 4: ...Copyright 2016 Xilinx Set up your host settings on your PC Setup the serial port Finally power on the ZCU102...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: