AR# 76583

|

2021.1 and later Ultra96: How to shut down the Ultra96 V1 or V2 boards directly

描述

This Answer Record covers how to shut down the Ultra96 V1 or V2 boards directly.

解决方案

This feature for Ultra96 boards is implemented in the 2021.1 release.

To use this feature, enable the below debugs in the PMUFW order to shut down directly.

PetaLinux:

The compiler flags should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/embeddedsw/pmu-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) Create a embeddedsw directory and pmu-firmware_%.bbappend recipes in the meta-user layer as shown below.

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-bsp/embeddedsw
$ touch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/embededsw/pmu-firmware_%.bbappend

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

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-bsp/pmu-firmware/pmu-firmware_%.bbappend
# pmu-firmware_%.bbappend content
# For Ultra96-V1 boards
ULTRA96_VERSION = "1"

# For Ultra96-V2 boards
# ULTRA96_VERSION = "2"

YAML_COMPILER_FLAGS_append_ultra96 = " -DENABLE_MOD_ULTRA96 -DENABLE_SCHEDULER -DENABLE_DIRECT_POWEROFF_ULTRA96"

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

$ petalinux-build -c pmu-firmware -x cleansstate
$ petalinux-build -c pmu-firmware
 

Yocto:

The compiler flags should be applied to <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend recipes

1) Modify the pmu-firmware_git.bbappend file with the below content using a text editor:

$ vim <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend
# pmu-firmware_%.bbappend content
# For Ultra96-V1 boards
ULTRA96_VERSION ?= "1"

# For Ultra96-V2 boards
# ULTRA96_VERSION = "2"

YAML_COMPILER_FLAGS_append_ultra96 = " -DENABLE_MOD_ULTRA96 -DENABLE_SCHEDULER -DENABLE_DIRECT_POWEROFF_ULTRA96"

2) Clean the pmu-firmware sstate cache and rebuild the pmu-firmware recipes:

$ bitbake pmu-firmware -c cleansstate
$ bitbake pmu-firmware

附件

文件名 文件大小 File Type
AR71722-patch.zip 6 KB ZIP

链接问答记录

主要问答记录

Answer Number 问答标题 问题版本 已解决问题的版本
76526 PetaLinux 2021.1 - Product Update Release Notes and Known Issues N/A N/A
AR# 76583
日期 06/21/2021
状态 Active
Type 综合文章
器件
Tools
Boards & Kits
People Also Viewed