[meta-fsl-arm][PATCH 07/10] xf86-video-imxfb-vivante: Add Vivant Xorg driver for iMX SoCs
Otavio Salvador
From: Adrian Alonso <aalonso00@...>
Change-Id: I2b9a107b1fe6d50f3f0aa47a0df3115d7a8bc650 Signed-off-by: Adrian Alonso <aalonso00@...> Signed-off-by: Otavio Salvador <otavio@...> --- .../Makefile.am-remove-prefixed-include-path.patch | 29 ++++++++++++++++++++ .../xf86-video-imxfb-vivante_12.09.01.bb | 27 ++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch create mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch new file mode 100644 index 0000000..4354ae4 --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch @@ -0,0 +1,29 @@ +From 230acf40ab9ed8ab5f291ff6644160b3f3859d69 Mon Sep 17 00:00:00 2001 +From: Adrian Alonso <aalonso00@...> +Date: Fri, 15 Jun 2012 00:46:28 -0500 +Subject: [PATCH] Makefile.am remove prefixed include path + +* Remove prefixed include path, use ${STAGING_INCDIR} + to locate drm headers. + +Signed-off-by: Adrian Alonso <aalonso00@...> +--- + src/Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 820278b..4acdf6a 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -50,7 +50,7 @@ VIVSRC_CFLAGS = \ + -I./vivante_util \ + -I./vivante_exa + +-AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) -I/usr/include/drm ++AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) ${CFLAGS} + vivante_drv_la_LTLIBRARIES = vivante_drv.la + vivante_drv_la_LDFLAGS = -module -avoid-version + vivante_drv_ladir = @moduledir@/drivers +-- +1.7.7.6 + diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb new file mode 100644 index 0000000..3eb3f4a --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb @@ -0,0 +1,27 @@ +# Copyright (C) 2012 Freescale Semiconductor +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-graphics/xorg-driver/xorg-driver-video.inc + +DEPENDS += "virtual/libgal-x11 gpu-viv-bin-mx6q" + +LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a" + +SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \ + file://Makefile.am-remove-prefixed-include-path.patch" +SRC_URI[md5sum] = "1948119717aa01bed1f630be9ee7a708" +SRC_URI[sha256sum] = "5b3be4b426d2d2803554df9e4d8919d1f9d17659c3153c71c6529f43c37e6ed1" + +EXTRA_OECONF_armv7a = " --enable-neon --disable-static" +CFLAGS += " -I${STAGING_INCDIR}/xorg -I${STAGING_INCDIR}/drm" +LDFLAGS += "-lm -ldl -lGAL-x11" + +S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}" + +do_install_append () { + install -d ${D}${includedir} + cp -axr ${S}/src/vivante_gal/vivante_priv.h ${D}${includedir} + find ${D}${includedir} -type f -exec chmod 660 {} \; +} + +#FILES_${PN}-dev = "${includedir}/vivante_priv.h" -- 1.7.10.4 |
|
|
|
[meta-fsl-arm][PATCH 08/10] mesa-dri: Change provided set of libraries when building for iMX6
Otavio Salvador
This overrides the 8.0.4 and git versions of mesa-dri recipe.
Change-Id: Ica3e05ade74ccc8c8c2090cac2c2f9e72fb0f66d Signed-off-by: Otavio Salvador <otavio@...> --- recipes-graphics/mesa/mesa-dri_8.0.4.bbappend | 4 +++- recipes-graphics/mesa/mesa-dri_git.bbappend | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend b/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend index 1dff9fe..8b5cfe6 100644 --- a/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend +++ b/recipes-graphics/mesa/mesa-dri_8.0.4.bbappend @@ -1,5 +1,7 @@ -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" PROVIDES_mx5 = "virtual/libgl" +PROVIDES_mx6 = "virtual/libgl" PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}" +PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" diff --git a/recipes-graphics/mesa/mesa-dri_git.bbappend b/recipes-graphics/mesa/mesa-dri_git.bbappend index 1dff9fe..8b5cfe6 100644 --- a/recipes-graphics/mesa/mesa-dri_git.bbappend +++ b/recipes-graphics/mesa/mesa-dri_git.bbappend @@ -1,5 +1,7 @@ -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" PROVIDES_mx5 = "virtual/libgl" +PROVIDES_mx6 = "virtual/libgl" PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}" +PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" -- 1.7.10.4 |
|
|
|
[meta-fsl-arm][PATCH 09/10] imx-base: Use xf86-video-imxfb-vivant for iMX6 targets
Otavio Salvador
Change-Id: I9fb4fa04aef988fb8fd3105ab9444276ea0cbc29
Signed-off-by: Adrian Alonso <aalonso00@...> Signed-off-by: Otavio Salvador <otavio@...> --- conf/machine/include/imx-base.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 0c2f10d..a920a4b 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc @@ -24,6 +24,7 @@ UBOOT_LOADADDRESS_mx6 = "0x10800000" XSERVER_DRIVER = "xf86-video-fbdev" XSERVER_DRIVER_mx5 = "xf86-video-imxfb" +XSERVER_DRIVER_mx6 = "xf86-video-imxfb-vivante" XSERVER = "xserver-xorg \ xf86-input-evdev \ ${XSERVER_DRIVER}" -- 1.7.10.4 |
|
|
|
[meta-fsl-arm][PATCH 10/10] xserver-xf86-config: Use Vivant accelerated driver for iMX6
Otavio Salvador
Change-Id: Ief51e752d58efbdf5412c93a786c442e3531a961
Signed-off-by: Adrian Alonso <aalonso00@...> Signed-off-by: Otavio Salvador <otavio@...> --- .../xorg-xserver/xserver-xf86-config/mx6/xorg.conf | 8 +++++--- recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf index 79b6c0f..b89bed6 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/mx6/xorg.conf @@ -1,7 +1,9 @@ Section "Device" - Identifier "Kernel Framebuffer Device" - Driver "fbdev" - Option "fbdev" "/dev/fb0" + Identifier "i.MX Accelerated Framebuffer Device" + Driver "vivante" + Option "fbdev" "/dev/fb0" + Option "vivante_fbdev" "/dev/fb0" + Option "HWcursor" "false" EndSection Section "ServerFlags" diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend index f9ea3a4..8337e55 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend @@ -1,4 +1,4 @@ # Append path for freescale layer to include bsp xorg.conf FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PRINC := "${@int(PRINC) + 7}" +PRINC := "${@int(PRINC) + 8}" -- 1.7.10.4 |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-20 08:11, Otavio Salvador wrote:
Hello,I'll be glad to test this :-) Any guidance on what/how to build so the test coverage is maximised? I have a SabreLight with LCD+touch and would love to see a full-up X running on it. Thanks
|
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Tue, Nov 20, 2012 at 1:20 PM, Gary Thomas <samoht.yrag@...> wrote:
I am looking at a build failure when building fsl-image-gui (as it depends on mesa-demos) so I'd say for you to use core-image-x11 for now.  Otavio Salvador               O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854        http://projetos.ossystems.com.br |
|
|
|
Re: how can I start?
Andre Bella <scancool@...>
--- On Mon, 11/19/12, Angolini Daiane-B19406 <B19406@...> wrote:
|
|
|
|
Re: how can I start?
Otavio Salvador
On Tue, Nov 20, 2012 at 1:46 PM, Andre Bella <scancool@...> wrote: --
You should read the Yocto documentation so you will be able to grasp all the need information from it. Please look at https://www.yoctoproject.org/ Â
Otavio Salvador               O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854        http://projetos.ossystems.com.br |
|
|
|
Re: how can I start?
Daiane
Please, take a look here
toggle quoted message
Show quoted text
https://github.com/Freescale/Documentation/wiki/Build-and-Flash-the-SD-card-Image I think it would help you. The documentation is not complete, but for the first steps it´s fine. Please, let me know if you face any error/mistake/typo Daiane On Tue, Nov 20, 2012 at 1:46 PM, Andre Bella <scancool@...> wrote:
|
|
|
|
Re: how can I start?
Andre Bella <scancool@...>
--- On Tue, 11/20/12, Daiane Angolini <daiane.list@...> wrote:
|
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-20 08:23, Otavio Salvador wrote:
On Tue, Nov 20, 2012 at 1:20 PM, Gary Thomas <samoht.yrag@... <mailto:samoht.yrag@...>> wrote:Where do I get a recipe for xserver-xorg-module-exa? |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Tue, Nov 20, 2012 at 7:29 PM, Gary Thomas <samoht.yrag@...> wrote:
On 2012-11-20 08:23, Otavio Salvador wrote:Something is wrong here. Why you needed it?On Tue, Nov 20, 2012 at 1:20 PM, Gary Thomas <samoht.yrag@... -- Otavio Salvador O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-21 03:46, Otavio Salvador wrote:
On Tue, Nov 20, 2012 at 7:29 PM, Gary Thomas <samoht.yrag@...> wrote:The X server failed to start:On 2012-11-20 08:23, Otavio Salvador wrote:Something is wrong here. Why you needed it?On Tue, Nov 20, 2012 at 1:20 PM, Gary Thomas <samoht.yrag@... # /etc/init.d/xserver-nodm restart Stopping XServer Starting Xserver X.Org X Server 1.11.4 Release Date: 2012-01-27 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.34.9-69.fc13.i686.PAE i686 Current Operating System: Linux sabrelite 3.0.35-12.09.01+yocto+geaaf30e #2 SMP PREEMPT Thu Nov 8 08:19:03 MST 2012 armv7l Kernel command line: console=ttymxc1,115200 root=/dev/ram0 rootfstype=ext3 ramdisk_size=65536 console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p2 rootwait consoleblank=0 video=mxcfb0:dev=lcd,CLAA-WVGA,if=RGB666 video=mxcfb1:dev=hdmi,1280x720M@60,if=RGB24 calibration tsdev=tsc2004 fbmem=10M,28M Build Date: 20 November 2012 11:23:40AM Current version of pixman: 0.27.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue Nov 20 20:08:35 2012 (==) Using config file: "/etc/X11/xorg.conf" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Failed to load module "extmod" (module does not exist, 0) (EE) Failed to load module "dbe" (module does not exist, 0) (EE) Failed to load module "glx" (module does not exist, 0) (EE) Failed to load module "dri" (module does not exist, 0) (EE) Failed to load module "dri2" (module does not exist, 0) (EE) VIVANTE: Failed to load module "exa" (module does not exist, 0) xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error root@sabrelite:~# Warning: Permanently added '192.168.1.182' (RSA) to the list of known hosts. root@sabrelite:~# opkg list-installed 'xf86*' xf86-input-evdev - 2:2.7.3-r19.0 xf86-video-fbdev - 2:0.4.3-r19.0 xf86-video-imxfb-vivante - 2:12.09.01-r0 Full log attached. What am I missing? |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Wed, Nov 21, 2012 at 9:34 AM, Gary Thomas <samoht.yrag@...> wrote:
On 2012-11-21 03:46, Otavio Salvador wrote:I fixed it locally.The X server failed to start: I am attaching the patch for you to apply locally. It will be fixed in a v2 of the patchset. -- Otavio Salvador O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-21 04:45, Otavio Salvador wrote:
On Wed, Nov 21, 2012 at 9:34 AM, Gary Thomas <samoht.yrag@...> wrote:That helped, but then it dies:On 2012-11-21 03:46, Otavio Salvador wrote:I fixed it locally.The X server failed to start: [579761.853] (II) VIVANTE(0): FB Start = 0x2b0f9000 FB Base = 0x2b0f9000 FB Offset = (nil) [579761.865] (II) VIVANTE(0): test Initializing EXA [579761.865] Backtrace: [579761.865] Segmentation fault at address 0xc [579761.865] Fatal server error: [579761.865] Caught signal 11 (Segmentation fault). Server aborting [579761.865] [579761.865] |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Wed, Nov 21, 2012 at 10:01 AM, Gary Thomas <samoht.yrag@...> wrote:
... That helped, but then it dies:Good; now we need to fix this. I will take a look on this and I let you know if any news. -- Otavio Salvador O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-21 05:21, Otavio Salvador wrote:
On Wed, Nov 21, 2012 at 10:01 AM, Gary Thomas <samoht.yrag@...> wrote:Here's a GDB backtrace: Program received signal SIGSEGV, Segmentation fault. 0x2b078fac in gcoOS_GetBaseAddress () from /usr/lib/libGAL.so (gdb) bt #0 0x2b078fac in gcoOS_GetBaseAddress () from /usr/lib/libGAL.so #1 0x2afeca78 in gcoHAL_MapUserMemory () from /usr/lib/libGAL.so #2 0x2ab341c0 in ?? () from /usr/lib/xorg/modules/drivers/vivante_drv.so #3 0x2ab341c0 in ?? () from /usr/lib/xorg/modules/drivers/vivante_drv.so Backtrace stopped: previous frame identical to this frame (corrupt stack?) Maybe I'm missing some piece, e.g. loading the video acceleration firmware? n.b. I don't know much about this platform, so I'm a bit in the dark. |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Wed, Nov 21, 2012 at 10:34 AM, Gary Thomas <samoht.yrag@...> wrote:
On 2012-11-21 05:21, Otavio Salvador wrote:It seems to be all done; I am pondering if it might be a problem withHere's a GDB backtrace: our U-Boot; you might try to use Freescale U-Boot and give it a try. -- Otavio Salvador O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Gary Thomas <samoht.yrag@...>
On 2012-11-21 05:38, Otavio Salvador wrote:
On Wed, Nov 21, 2012 at 10:34 AM, Gary Thomas <samoht.yrag@...> wrote:I'm using the U-Boot that came with the board.On 2012-11-21 05:21, Otavio Salvador wrote:It seems to be all done; I am pondering if it might be a problem withHere's a GDB backtrace: Should I try the one just built? If so, how (is there a temporary way to try it)? |
|
|
|
Re: [meta-fsl-arm][PATCH 00/10] iMX6 Yocto Support based on 12.09.01 BSP
Otavio Salvador
On Wed, Nov 21, 2012 at 10:53 AM, Gary Thomas <samoht.yrag@...> wrote:
On 2012-11-21 05:38, Otavio Salvador wrote:You can use the .sdcard file generated. It has all set. -- Otavio Salvador O.S. Systems E-mail: otavio@... http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br |
|
|