AR# 76231

|

2020.2 Zynq UltraScale+ RFSoC: ATF prints out XCZUUNKN for device when running on ZU43/46/47DR devices

Description

In the 2020.2 release version of Arm Trusted Firmware (ATF), while booting ATF it prints out XCZUUNKN for the device instead of the actual device name when running on ZU43/46/47DR devices.

Xilinx Zynq MP First Stage Boot Loader
Release 2020.2 Mar 3 2021 - 02:00:20
NOTICE: ATF running on XCZUUNKN/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: v2.2(release):xilinx_rebase_v2.2_2020.1-10-ge6eea88b1
NOTICE: BL31: Built : 02:36:10, Mar 3 2021

U-Boot 2020.01 (Mar 03 2021 - 02:36:54 +0000)

Model: ZynqMP RFSoC
Board: Xilinx ZynqMP
DRAM: 4 GiB
PMUFW: v1.1
EL Level: EL2
Chip ID: zu47dr
NAND: 0 MiB
MMC: mmc@ff170000: 0
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Bootmode: JTAG_MODE
Reset reason: EXTERNAL
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id

Warning: ethernet@ff0e0000 using MAC address from DT
eth0: ethernet@ff0e0000
Hit any key to stop autoboot: 0
ZynqMP>

Solution

This is a known issue in the 2020.2 release of ATF. 

To work around this issue, you will need to apply the attached patches to ATF.

Root Cause:

Device IDCODE's for 43/46/47DR RFSoC devices are missing from the ZynqMP ID table.

PetaLinux:

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_%.bbappend recipes

Note: For information on how to apply a patch to recipes in PetaLinux, please refer to (UG1144) or https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips

1) Copy the attached patch from the Attachments section to the arm-trusted-firmware directory as shown below.

If these directory and recipes do not exist then manually create <plnx-proj-root>/project-spec/meta-user/recipes-bsp/arm-trusted-firmware/files/

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-bsp/arm-trusted-firmware/files
$ cp 0001-plat-xilinx-zynqmp-Add-missing-ids-for-43-46-47dr-de.patch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/arm-trusted-firmware/files

2) Modify the arm-trusted-firmware_%.bbappend file with the below content using a text editor:

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_%.bbappend

# arm-trusted-firmware_%.bbappend content
SRC_URI_append = " \
file://0001-plat-xilinx-zynqmp-Add-missing-ids-for-43-46-47dr-de.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

3) Clean the arm-trusted-firmware sstate cache and rebuild the arm-trusted-firmware recipes:

$ petalinux-build -c arm-trusted-firmware -x cleansstate
$ petalinux-build -c arm-trusted-firmware

Yocto:

The patch should be applied to <yocto-proj-root>/sources/meta-xilinx/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_%.bbappend recipes

1) Copy the attached patch from the Attachments section to the arm-trusted-firmware directory as shown below.

If these directory and recipes do not exist then manually create <yocto-proj-root>/sources/meta-xilinx/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/files

$ mkdir -p <yocto-proj-root>/sources/meta-xilinx/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/files
$ cp 0001-plat-xilinx-zynqmp-Add-missing-ids-for-43-46-47dr-de.patch <yocto-proj-root>/sources/meta-xilinx/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/files

2) Modify the arm-trusted-firmware_%.bbappend file with the below content using a text editor:

$ vim <yocto-proj-root>/sources/meta-xilinx/meta-xilinx-bsp/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_%.bbappend

# arm-trusted-firmware_%.bbappend content
SRC_URI_append = " \
file://0001-plat-xilinx-zynqmp-Add-missing-ids-for-43-46-47dr-de.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

3) Clean the arm-trusted-firmware sstate cache and rebuild the arm-trusted-firmware recipes:

$ bitbake arm-trusted-firmware -c cleansstate
$ bitbake arm-trusted-firmware

Attachments

Associated Attachments

AR# 76231
Date 03/09/2021
Status Active
Type Known Issues
Devices
Tools
People Also Viewed