On Tue, Aug 4, 2015 at 6:17 PM, Javier Martinez Canillas <jav...@osg.samsung.com> wrote: > Hello Andreas, > > On 08/03/2015 10:14 PM, Andreas Müller wrote: >> On Thu, Jul 30, 2015 at 10:34 AM, Javier Martinez Canillas >> <jav...@osg.samsung.com> wrote: >>> From: Derek Foreman <der...@osg.samsung.com> >>> >>> The Raspberry Pi boards can use one of two graphics stacks: The "userland" >>> user-space driver or the VC4 drm/kms kernel driver. This patch allows the >>> user to choose if the VC4 driver has to be used instead and set the right >>> preferred providers for that case. >>> >>> Signed-off-by: Derek Foreman <der...@osg.samsung.com> >>> [javier: Extend commit msg and made conditional instead removing userland] >>> Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> >>> >>> --- >>> >>> conf/machine/include/rpi-default-providers.inc | 8 ++++---- >>> conf/machine/include/rpi-default-versions.inc | 2 +- >>> 2 files changed, 5 insertions(+), 5 deletions(-) >>> >>> diff --git a/conf/machine/include/rpi-default-providers.inc >>> b/conf/machine/include/rpi-default-providers.inc >>> index ee3a3acce7bd..233f177bd16e 100644 >>> --- a/conf/machine/include/rpi-default-providers.inc >>> +++ b/conf/machine/include/rpi-default-providers.inc >>> @@ -3,8 +3,8 @@ >>> PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi" >>> PREFERRED_PROVIDER_u-boot = "u-boot-rpi" >>> PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" >>> -PREFERRED_PROVIDER_virtual/egl ?= "userland" >>> -PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" >>> -PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" >>> -PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" >>> +PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains('DISTRO_FEATURES', >>> 'vc4-gfx', 'mesa', 'userland', d)}" >>> +PREFERRED_PROVIDER_virtual/libgles2 ?= >>> "${@bb.utils.contains('DISTRO_FEATURES', 'vc4-gfx', 'mesa', 'userland', d)}" >>> +PREFERRED_PROVIDER_virtual/libgl ?= >>> "${@bb.utils.contains('DISTRO_FEATURES', 'vc4-gfx', 'mesa', 'mesa-gl', d)}" >>> +PREFERRED_PROVIDER_virtual/mesa ?= >>> "${@bb.utils.contains('DISTRO_FEATURES', 'vc4-gfx', 'mesa', 'mesa-gl', d)}" >>> PREFERRED_PROVIDER_jpeg = "jpeg" >>> diff --git a/conf/machine/include/rpi-default-versions.inc >>> b/conf/machine/include/rpi-default-versions.inc >>> index bcf78281b6ff..c07ecac5924b 100644 >>> --- a/conf/machine/include/rpi-default-versions.inc >>> +++ b/conf/machine/include/rpi-default-versions.inc >>> @@ -1,3 +1,3 @@ >>> # RaspberryPi BSP default versions >>> >>> -PREFERRED_VERSION_linux-raspberrypi ?= "3.18.%" >>> +PREFERRED_VERSION_linux-raspberrypi ?= >>> "${@bb.utils.contains("DISTRO_FEATURES", "vc4-gfx", "4.1.%", "3.18.%", d)}" >>> -- >>> 2.4.3 >>> >>> -- >> This patch series is an exciting starter but I think it is incomplete: >> Without further configuration mesa simply builds swrast which is not >> what we want. We need some '--with-gallium-drivers=vc4' right? [1] >> > > Yes, this is only the kernel changes. I'm testing with more patches on top > for mesa and libdrm [0]. I always find hard to draw a line between a BSP > and a distro layer so I didn't know if I should include those in the series > or not. But you are right and probably at least the GALLIUMDRIVERSTIZEN > vc4 append should be in a mesa .bbappend. I'll do that when posting a v2 > once I get more feedback from others. > >> Andreas >> >> [1] http://dri.freedesktop.org/wiki/VC4/ >> > > [0]: https://github.com/martinezjavier/meta-raspberrypi/commits/rpi2-vc4-gfx > > Best regards, > -- > Javier Martinez Canillas > Open Source Group > Samsung Research America Another thing: With witch version of RasPi did you test. With V2 I get
[ 1.342175] [drm:vc4_hdmi_bind] *ERROR* Failed to get ddc i2c adapter by node [ 1.349359] vc4-drm soc:vc4@0x7e4c0000: failed to bind 3f902000.brcm,vc4-hdmi (ops vc4_hdmi_ops): -517 Andreas -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto