[meta-freescale] i.MX6, Mesa, GLES2, Vivante GC320 + GC880

Gaëtan Carlier gcembed at gmail.com
Fri May 10 01:21:59 PDT 2019


Hi,

On 5/10/19 7:52 AM, Gaëtan Carlier wrote:
> Hi ,
> Thank you but it didn't help.
> I remove everything and start from scratch and everything is now building (except u-boot.imx which don't want to install).
Finally, this is not working. I fixed the problem with u-boot by replacing u-boot-imx by DHCom version:

===
#UBOOT_MACHINE ?= "mx6sabresd_defconfig"

# Use fslc u-boot by default. See also imx-base.inc.
#UBOOT_MAKE_TARGET = "all"
#UBOOT_SUFFIX = "img"
#SPL_BINARY = "SPL"
#WKS_FILE = "imx-uboot-spl-bootpart.wks"

PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx6-dhcom"
PREFERRED_PROVIDER_u-boot = "u-boot-imx6-dhcom"
PREFERRED_VERSION_u-boot-imx6-dhcom = "v2018.05"
IMAGE_BOOTLOADER ?= "u-boot"

#UBOOT_CONFIG ??= "all"
UBOOT_CONFIG ??= "dl"
UBOOT_CONFIG[all] = "dh_imx6_defconfig"
UBOOT_CONFIG[solo] = "dh_imx6s_config"
#UBOOT_CONFIG[dl] = "dh_imx6dl_config"
UBOOT_CONFIG[dl] = "dh_imx6_defconfig"
UBOOT_CONFIG[d] = "dh_imx6q_config"
UBOOT_CONFIG[q] = "dh_imx6q_config"

UBOOT_MAKE_TARGET = "u-boot.imx"
UBOOT_BINARY = "u-boot.imx"
===


But now, another error occurs about xf86-video-imx-vivante:
===
Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "imx6qdlsabresd"
DISTRO               = "poky"
DISTRO_VERSION       = "2.7"
TUNE_FEATURES        = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "warrior:0e392026ffefee098a890c39bc3ca1f697bacb52"
meta-freescale       = "warrior:a047911c5ad1e06d7878dfdffa8674a7edc28961"
meta-dhcom_imx6      = "thud:74785e4121c13a235ab6d2ba3de7390d8b84d7c4"

ERROR: core-image-x11-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/rootfs --setopt=logdir=/home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/temp --repofrompath=oe-repo,/home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/oe-rootfs-repo --nogpgcheck install dnf packagegroup-base-extended packagegroup-core-boot packagegroup-core-x11-base psplash rpm run-postinsts locale-base-en-us locale-base-en-gb' returned 1:
DNF version: 4.1.0
cachedir: /home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for: 
not found modules for: 
not found deltainfo for: 
not found updateinfo for: 
oe-repo: using metadata from Fri 10 May 2019 08:07:09 AM UTC.
Last metadata expiration check: 0:00:01 ago on Fri 10 May 2019 08:07:10 AM UTC.
No module defaults found
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: package packagegroup-core-x11-base-1.0-r1.noarch requires packagegroup-core-x11-xserver, but none of the providers can be installed
  - conflicting requests
  - nothing provides xf86-video-imx-vivante needed by packagegroup-core-x11-xserver-1.0-r40.imx6qdlsabresd
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

ERROR: core-image-x11-1.0-r0 do_rootfs: 
ERROR: core-image-x11-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/gc/Documents/projects/dev_git/imx28/poky/build-warrior/tmp/work/imx6qdlsabresd-poky-linux-gnueabi/core-image-x11/1.0-r0/temp/log.do_rootfs.15071
ERROR: Task (/home/gc/Documents/projects/dev_git/imx28/poky/meta/recipes-graphics/images/core-image-x11.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5065 tasks of which 5060 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/gc/Documents/projects/dev_git/imx28/poky/meta/recipes-graphics/images/core-image-x11.bb:do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
===

I do not change anything but UBOOT variables in imx6qdlsabresd.conf file. Only U-Boot recipe from DHcom is active there is no bb/bbappend that overrides other recipes.
Does anyone have any idea how to solve that ?

Best regards,
Gaëtan

> 
> 1) Are libdrm, kernel-module-imlx-gpu-viv, ... patches/bbappends still needed as EtnaViv's Github[1] says that everything have been upstreamed to drm, mesa and kernel ?
> It seems that a great job has been done to avoid the need of extra packages to have 2D/3D acceleration working in mainline trees, so I am now totally lost of what it is really needed or not.
> 
> 2) I really want a minimum of extra freescale packages because I was so disappointed with i.MX27. So, is the package imx-gpu-viv still needed ?
> 
> I am going to test the image and try to enable Qt. I will wait to have a fully working image because trying to switch to kernel 5.0
> 
> Best regards,
> Gaëtan.
> 
> [1] https://github.com/etnaviv/etna_viv
> 
> On 5/10/19 6:20 AM, Sivasubramanian Patchaiperumal wrote:
>> Hi Gaëtan,
>> Kindly check which component (mostly
>> https://github.com/Freescale/meta-freescale/blob/master/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
>> should)
>> is providing "virtual/egl" package for iMX6 like
>>
>> PROVIDES = "virtual/egl"
>>
>> and confirm whether it's building first by say
>>
>> bitbake imx-gpu-viv (if imx-gpu-viv provides virtual/egl)
>>
>> On Thu, 9 May 2019 at 17:09, Gaëtan Carlier <gcembed at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have a board with a i.MX6 DL which has a Vivante GC320 (2D) and GC880
>>> (3D) GPUs.
>>> I successfully build an image on Debian 8 using rocko branches of the
>>> following meta: meta-poky, meta-yocto-bsp, meta-freescale, meta-etnaviv
>>> The Kernel used is imx_4.9.88_2.0.0_ga with CONFIG_DRM_VIVANTE enabled
>>>
>>> The following packages were built :
>>>     - eglinfo-x11 armv7ahf_neon_imx 1.0.0
>>>     - libdrm-armada0 armv7ahf_neon 0.1+git0+6b461c163b
>>>     - libdrm-etnaviv1 armv7ahf_neon 2.4.83
>>>     - libegl-mesa armv7ahf_neon_imx 17.1.7
>>>     - libgl-mesa armv7ahf_neon_imx 17.1.7
>>>     - libglapi0 armv7ahf_neon_imx 17.1.7
>>>     - libgles1-mesa armv7ahf_neon_imx 17.1.7
>>>     - libgles2-mesa armv7ahf_neon_imx 17.1.7
>>>     - mesa armv7ahf_neon_imx 17.1.7
>>>     - mesa-demos armv7ahf_neon_imx 8.3.0
>>>     - xf86-video-armada armv7ahf_neon 0.1+git0+a4306d9717_f64d77abbb
>>>     - xserver-xorg armv7ahf_neon_imx 1.19.3
>>>
>>> Now that I am using Debian 10, I had to switch to Warrior branch but when
>>> I try to build the image, I have several errors due to mesa-demos or any
>>> other OpenGL demos packages because nothing provides virtual/libegl. I try
>>> several configuration enabling X11, disabling X11 and only use gles2, ...
>>> but each time there is an different error "Nothing provides virtal/xxx".
>>> Sometimes it talks me about imx-gpu-viv package.
>>> On Warrior branch, Mesa is now 19.x and meta-etnaviv is just used to have
>>> the xorg.conf file as everything else is now upstreamed in mesa, libdrm and
>>> kernel
>>>
>>>
>>> conf/local.conf is the clean/original generated when I called "source
>>> oe-init-build-env".
>>> conf/bblayers.conf only has the following meta enabled : meta, meta-poky,
>>> meta-yocto-bsp and meta-freescale.
>>>
>>> The command I used is :
>>> MACHINE=imx6qdl bitbake core-image-x11
>>>
>>> Here is the resulting error:
>>> ERROR: Nothing PROVIDES 'virtual/egl' (but
>>> /home/gc/Documents/projects/dev_git/imx28/poky/meta/recipes-gnome/gtk+/gtk+
>>> 3_3.24.5.bb,
>>> /home/gc/Documents/projects/dev_git/imx28/poky/meta/recipes-graphics/libepoxy/
>>> libepoxy_1.5.3.bb DEPENDS on or otherwise requires it). Close matches:
>>>   virtual/kernel
>>>   virtual/perf
>>>   virtual/mesa
>>> NOTE: Runtime target 'matchbox-terminal' is unbuildable, removing...
>>> Missing or unbuildable dependency chain was: ['matchbox-terminal',
>>> 'gtk+3', 'virtual/egl']
>>> NOTE: Runtime target 'packagegroup-core-x11-base' is unbuildable,
>>> removing...
>>> Missing or unbuildable dependency chain was:
>>> ['packagegroup-core-x11-base', 'matchbox-terminal', 'gtk+3', 'virtual/egl']
>>> ERROR: Required build target 'core-image-x11' has no buildable providers.
>>> Missing or unbuildable dependency chain was: ['core-image-x11',
>>> 'packagegroup-core-x11-base', 'matchbox-terminal', 'gtk+3', 'virtual/egl']
>>>
>>>
>>> The goal is also to use the kernel 5.x
>>>
>>> Thank you for your help.
>>>
>>> Best regards,
>>> Gaëtan.
>>> --
>>> _______________________________________________
>>> meta-freescale mailing list
>>> meta-freescale at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>>
>>
>>
> 



More information about the meta-freescale mailing list