AR# 71722

2018.2/3 Ultra96: PetaLinux BSP image does not shut down the board completely when using Matchbox desktop GUI power button or single press power button on board

描述

On Ultra96 boards using 2018.2/3 PetaLinux BSP build images, when I click on the shutdown icon from the matchbox desktop GUI, the X window server shuts down and the screen goes blank but the board keeps running.

解决方案

This is a known issue in the 2018.2/3 PetaLinux BSP for an Ultra96 board.

To work around this issue, apply the attached patch to the PMUFW and enable the below debugs in order to shut down properly. 

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

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


  1. Copy the attached patch to the pmu-firmware directory. If this directory does not exist, create one in the meta-user layer:

    $ cp 0001-zynqmp_pmufw-Add-support-for-Ultra96-power-button.patch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/pmu-firmware/files

  1. Enable PMUFW compiler flags in <plnx-proj-root>/project-spec/meta-user/recipes-bsp/pmu-firmware/pmu-firmware_%.bbappend:


SRC_URI_append = " \
        file://0001-zynqmp_pmufw-Add-support-for-Ultra96-power-button.patch \
        "
 
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

YAML_COMPILER_FLAGS_append_ultra96-zynqmp = " -DBOARD_SHUTDOWN_PIN=2 -DBOARD_SHUTDOWN_PIN_STATE=0 -DENABLE_MOD_ULTRA96 -DENABLE_SCHEDULER"
 
EXTERNALXSCTSRC = ""
EXTERNALXSCTSRC_BUILD = ""

  1. Clean the project after making the changes.

    $ petalinux-build -x mrproper

    $ petalinux-build

附件

文件名 文件大小 File Type
AR71722-patch.zip 3 KB ZIP
AR# 71722
日期 12/03/2018
状态 Active
Type 综合文章
器件
Tools