AR# 75869

|

2020.2 Versal ACAP: Does DTG support PL Ethernet with MRMAC subsystem

Description

Does the 2020.2 release version of DTG support the PL Ethernet with MRMAC Subsystem for Versal ACAP devices?

Solution

To support the PL Ethernet with MRMAC Subsystem in the 2020.2 release version of DTG for Versal ACAP devices, you will need to apply the attached patch.

Root Cause:

Out of box DTG does not support generating all of the DT nodes for PL Ethernet with the MRMAC Subsystem in the 2020.2 release version of DTG.

PetaLinux:

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree_%.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 device-tree directory as shown below.

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

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files
$ cp 0001-mrmac-Fix-the-mrmac-node-generation.patch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files
$ cp 0002-mrmac-Update-the-clock-nodes-for-mrmac-IP.patch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files

2) Modify the device-tree.bbappend file with the below content using a text editor:

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree.bbappend

# device-tree.bbappend content
# Note: system-user.dtsi is autogenerated from petalinux tool.
SRC_URI += " \
file://system-user.dtsi \
file://0001-mrmac-Fix-the-mrmac-node-generation.patch \
file://0002-mrmac-Update-the-clock-nodes-for-mrmac-IP.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:

3) Clean the device-tree sstate cache and rebuild the device-tree recipes:

$ petalinux-build -c device-tree -x cleansstate
$ petalinux-build -c device-tree

Yocto:

The patch should be applied to <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/device-tree.bbappend recipes

1) Copy the attached patch from the Attachments section to the device-tree directory as shown below.

If these directory and recipes do not exist then manually create <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files

$ mkdir -p <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files
$ cp 0001-mrmac-Fix-the-mrmac-node-generation.patch <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files
$ cp 0002-mrmac-Update-the-clock-nodes-for-mrmac-IP.patch <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files

2) Modify the device-tree.bbappend file with the below content using a text editor:

$ vim <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/device-tree.bbappend

# device-tree.bbappend content
SRC_URI_append = " \
file://0001-mrmac-Fix-the-mrmac-node-generation.patch \
file://0002-mrmac-Update-the-clock-nodes-for-mrmac-IP.patch \
"

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

3) Clean the device-tree sstate cache and rebuild the device-tree recipes:

$ bitbake device-tree -c cleansstate
$ bitbake device-tree

Attachments

Associated Attachments

Name File Size File Type
AR-75869-patches.zip 3 KB ZIP

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
75775 PetaLinux 2020.2/3 - Product Update Release Notes and Known Issues N/A N/A
AR# 75869
Date 11/24/2020
Status Active
Type Known Issues
Devices
Tools
IP
People Also Viewed