Adding xf86-video-omap support for Pandaboard
cover Adding xf86-video-omap support for Pandaboard
From: Nicolas Dechesne <[email protected]>
Hi there,
here is a refreshed series to add support for xf86-video-omap for Pandaboard.
We've switched all our OMAP4 and OMAP5 support on this new X11 video driver, which is hosted here:
http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/
that drivers requires changes in libdrm which have all been merged into upstream, we just need to enable the 'omap' support in libdrm which is still experimental.
we try to restrict this to 'omap4|omap5' machines so that we don't impact other TI devices.
this series is tested on PandaES, with:
BB_VERSION = "1.16.0" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "pandaboard" DISTRO = "poky" DISTRO_VERSION = "1.3+snapshot-20121018" TUNE_FEATURES = "armv7a vfp neon cortexa9" TARGET_FPU = "vfp-neon"
meta
meta-yocto = "master:e6e2b9bd66100c078c029ca7e34829cf1dfb5490"
meta-ti = "master:9d5f7904444febfaeaacce88f50c5ceb700552f1"
The pandaboard task list is:
DONE: refresh OMAP4 kernel
DONE: introduce new X11 video driver
TODO: introduce customized Gst/gst-ducati and libdce
TODO: add support for DRI2, SGX accelerated EXA, DRI2Video
Some of these patches could certainly make their way in oe-core at some point.
This Xf86-video-omap driver has been tested with 1.11 Xserver, but also locally with 1.12. With 1.12 xrandr rotation is working, as a few rotation related bugs were fixed indeed in 1.12, that could be backported in 1.11 if needed. xrandr mode setting has been tested with 1.11 and 1.12. Multi display support should work too.
Enrico Butera (1):
libdrm: enable omap experimental api support
Nicolas Dechesne (2):
xf86-video-omap: add new recipe for OMAP4/5 X11 video driver
pandaboard: use xf86-video-omap by default in XSERVER config
conf/machine/include/omap4.inc | 3 +- recipes-graphics/drm/libdrm_2.4.39.bbappend | 3 + .../xorg-driver/xf86-video-omap_git.bb | 31 ++++++++++++++ .../xserver-xf86-config/omap4/xorg.conf | 44 +++++++------------- 4 files changed, 51 insertions(+), 30 deletions(-) create mode 100644 recipes-graphics/drm/libdrm_2.4.39.bbappend create mode 100644 recipes-graphics/xorg-driver/xf86-video-omap_git.bb
PATCH 2/3 xf86-video-omap: add new recipe for OMAP4/5 X11 video driver
From: Nicolas Dechesne <[email protected]>
Since this component is still actively being developed, let's use a _git.bb recipe. We can introduce 'x.y' version later.
Even though xf-video-omap can be combined with private/restricted EXA sub-driver for SGX/PVR, it can also work without it. In which case EXA aren't using SGX, but all standard driver features still work, and it is a replacement for xf-video-fbdev.
--- .../xorg-driver/xf86-video-omap_git.bb | 31 ++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 recipes-graphics/xorg-driver/xf86-video-omap_git.bb
recipes-graphics/xorg-driver/xf86-video-omap_git.bb new file +31 -0
@@ -0,0 +1,31 @@ +require recipes-graphics/xorg-driver/xorg-driver-video.inc + +SUMMARY = "X.Org X server -- TI OMAP integrated graphics chipsets driver" + +DESCRIPTION = "Open-source X.org graphics driver for TI OMAP graphics \ +Currently relies on a closed-source submodule for EXA acceleration on \ +the following chipsets: \ + + OMAP3430 \ + + OMAP3630 \ + + OMAP4430 \ + + OMAP4460 \ + + OMAP5430 \ + + OMAP5432 \ +\ +NOTE: this driver is work in progress.. you probably don't want to try \ +and use it yet. The API/ABI between driver and kernel, and driver and \ +acceleration submodules is not stable yet. This driver requires the \ +omapdrm kernel driver w/ GEM support. \ +" + +LIC_FILES_CHKSUM = "file://COPYING;md5=10ce5de3b111315ea652a5f74ec0c602" + +DEPENDS += "virtual/libx11 drm xf86driproto udev" + +SRCREV = "653ccadb38c87be565df3fbf2ff24a0cbe5a5e98" +PR = "${INC_PR}.1" +PV = "0.4.2+gitr${SRCPV}" + +SRC_URI = "git://anongit.freedesktop.org/xorg/driver/xf86-video-omap;protocol=git" + +S = "${WORKDIR}/git"
Signature · 1 line
1.7.0.4
PATCH 1/3 libdrm: enable omap experimental api support
In reply to Nicolas DechesneFrom: Enrico Butera <[email protected]>
This is needed to build gst-plugin-ducati.
--- recipes-graphics/drm/libdrm_2.4.39.bbappend | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) create mode 100644 recipes-graphics/drm/libdrm_2.4.39.bbappend
recipes-graphics/drm/libdrm_2.4.39.bbappend new file +3 -0
@@ -0,0 +1,3 @@ +COMPATIBLE_MACHINE = "omap4|omap5" + +EXTRA_OECONF += "--enable-omap-experimental-api"
Signature · 1 line
1.7.0.4
PATCH 3/3 pandaboard: use xf86-video-omap by default in XSERVER config
In reply to Nicolas DechesneFrom: Nicolas Dechesne <[email protected]>
Also we need to pull in module-exa as xf86-video-omap relies on it, at run time.
And replaced the default xorg.conf for 'omap4' machine to take new driver into account. Do not enable HWcursor (e.g. mouse using DSS overlay) to keep things simple for now..
--- conf/machine/include/omap4.inc | 3 +- .../xserver-xf86-config/omap4/xorg.conf | 44 +++++++------------- 2 files changed, 17 insertions(+), 30 deletions(-)
conf/machine/include/omap4.inc +2 -1
@@ -11,8 +11,9 @@ XSERVER = "xserver-xorg \ xserver-xorg-extension-dri \ xserver-xorg-extension-dri2 \ xserver-xorg-extension-glx \ + xserver-xorg-module-exa \ xf86-input-evdev \ - xf86-video-fbdev" + xf86-video-omap" # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r1"
recipes-graphics/xorg-xserver/xserver-xf86-config/omap4/xorg.conf +15 -29
44 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Denys Dmytriyenko
AppliedQuoted 6 lines · Nicolas Dechesne
From: Nicolas Dechesne <[email protected]>
Hi there,
here is a refreshed series to add support for xf86-video-omap for Pandaboard.
Thank you, applied.
Signature · 1 line
Denys
Quoted 61 lines
We've switched all our OMAP4 and OMAP5 support on this new X11 video driver, which is hosted here:
http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/that drivers requires changes in libdrm which have all been merged into upstream, we just need to enable the 'omap' support in libdrm which is still experimental.
we try to restrict this to 'omap4|omap5' machines so that we don't impact other TI devices.
this series is tested on PandaES, with:
BB_VERSION = "1.16.0" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "pandaboard" DISTRO = "poky" DISTRO_VERSION = "1.3+snapshot-20121018" TUNE_FEATURES = "armv7a vfp neon cortexa9" TARGET_FPU = "vfp-neon"meta
meta-yocto = "master:e6e2b9bd66100c078c029ca7e34829cf1dfb5490"
meta-ti = "master:9d5f7904444febfaeaacce88f50c5ceb700552f1"The pandaboard task list is:
DONE: refresh OMAP4 kernel
DONE: introduce new X11 video driver
TODO: introduce customized Gst/gst-ducati and libdce
TODO: add support for DRI2, SGX accelerated EXA, DRI2VideoSome of these patches could certainly make their way in oe-core at some point.
This Xf86-video-omap driver has been tested with 1.11 Xserver, but also locally with 1.12. With 1.12 xrandr rotation is working, as a few rotation related bugs were fixed indeed in 1.12, that could be backported in 1.11 if needed. xrandr mode setting has been tested with 1.11 and 1.12. Multi display support should work too.
Enrico Butera (1):
libdrm: enable omap experimental api supportNicolas Dechesne (2):
xf86-video-omap: add new recipe for OMAP4/5 X11 video driver
pandaboard: use xf86-video-omap by default in XSERVER configconf/machine/include/omap4.inc | 3 +- recipes-graphics/drm/libdrm_2.4.39.bbappend | 3 + .../xorg-driver/xf86-video-omap_git.bb | 31 ++++++++++++++ .../xserver-xf86-config/omap4/xorg.conf | 44 +++++++------------- 4 files changed, 51 insertions(+), 30 deletions(-) create mode 100644 recipes-graphics/drm/libdrm_2.4.39.bbappend create mode 100644 recipes-graphics/xorg-driver/xf86-video-omap_git.bb_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti