Wind River Support Network

HomeDefectsLIN1021-2284
Fixed

LIN1021-2284 : GPU is not enabled on xilinx-zynqmp BSP

Created: Dec 26, 2021    Updated: Jan 7, 2022
Resolved Date: Dec 28, 2021
Found In Version: 10.21.20.8
Fix Version: 10.21.20.8
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

The GPU is not enabled on xilinx-zynqmp BSP. There is no mali device under /dev as below.

root@xilinx-zynqmp:~# ls /dev/m*
/dev/mem /dev/mmcblk0p1 /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd3 /dev/mtd4 /dev/mtd5 /dev/mtdblock0 /dev/mtdblock2 /dev/mtdblock4
/dev/mmcblk0 /dev/mmcblk0p2 /dev/mtd0ro /dev/mtd1ro /dev/mtd2ro /dev/mtd3ro /dev/mtd4ro /dev/mtd5ro /dev/mtdblock1 /dev/mtdblock3 /dev/mtdblock5

/dev/mapper:
control

/dev/mqueue:

Steps to Reproduce

1. Build project 


$ /lpg-build/cdc/fast_prod/WRL10_21/WRL10_21_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --templates feature/test --distro wrlinux-graphics --accept-eula=yes --dl-layers

$ source environment-setup-x86_64-wrlinuxsdk-linux
$ source oe-init-build-env
$ vi conf/local.conf # update and append the following contents
# Update
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"'
BB_NO_NETWORK ?= '0'
# Append
PREFERRED_PROVIDER_virtual/mesa_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgl_xilinx-zynqmp = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles1_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/libgles2_xilinx-zynqmp = "libmali-xlnx"
PREFERRED_PROVIDER_virtual/egl_xilinx-zynqmp = "libmali-xlnx"
PNWHITELIST_xilinx += "libmali-xlnx"
PNWHITELIST_xilinx += 'kernel-module-mali'
LICENSE_FLAGS_WHITELIST += "xilinx"
$ bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_1021/testcases/wrlinux/wr-testing/bts-dev/
$ echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf
$ bitbake wrlinux-image-std-sato

2. Load images to the target (#29049)
3. Run the following command after booting up

  $ ls /dev/m*

 
Live chat
Online