libgles-omap3: Add v4.08.00.01 of the Graphics SDK
PATCH v2 1/2 libgles-omap3: Add v4.08.00.01 of the Graphics SDK
From: Franklin S. Cooper Jr <[email protected]>
* Add version v4.08.00.01 of the Graphics SDK.
* Add X11 support via DRI/DRM Xorg driver
* Replace pvrsrvinit with pvrsrvctl (Imagination Technologies based change)
---
Version 2:
Update SRC_URI link to use official SDK download link
.../libgles/libgles-omap3-4.08.00.01/rc.pvr | 124 ++++++++++++++++++ .../libgles/libgles-omap3-4.08.00.01/rc_dri.pvr | 136 ++++++++++++++++++++ .../libgles/libgles-omap3_4.08.00.01.bb | 76 +++++++++++ 3 files changed, 336 insertions(+), 0 deletions(-) create mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr create mode 100755 recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr create mode 100644 recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr new file +124 -0
@@ -0,0 +1,124 @@ +#!/bin/sh +PATH=$PATH:/usr/sbin + +# Check if an fb device is available. If not then just go ahead and +# exit because we have no display. +fbset > /dev/null 2>&1 +if [ "$?" == "1" ] +then + # looks like there is no display, so let's exit + exit 0 +fi + +BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')" +YRES="$(fbset | grep geom | awk '{print $3}')" + +CPUTYPE="$(cputype)" + +if [ "$1" = "" ]; then + echo PVR-INIT: Please use start, stop, or restart. + exit 1 +fi + +if [ "$1" = "stop" -o "$1" = "restart" ]; then + echo Stopping PVR + rmmod bufferclass_ti + rmmod omaplfb 2>/dev/null + rmmod pvrsrvkm 2>/dev/null +fi + +if [ "$1" = "stop" ]; then + exit 0 +fi + +# Set RGBA ordering to something the drivers like +if [ "$BITSPERPIXEL" = "32" ] ; then + fbset -rgba 8/16,8/8,8/0,8/24 +fi + +# Try to enable triple buffering when there's enough VRAM +fbset -vyres $(expr $YRES \* 3) + +sgxprepare () { + echo Starting PVR + insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko") + + if [ "$?" != "0" ] + then + echo "Could not find pvrsrvkm driver" + exit 1 + fi + + modprobe omaplfb + modprobe bufferclass_ti + + pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3` + bc_maj=`grep "bc" /proc/devices | cut -b1,2,3` + + if [ -e /dev/pvrsrvkm ] ; then + rm -f /dev/pvrsrvkm + fi + + mknod /dev/pvrsrvkm c $pvr_maj 0 + chmod 666 /dev/pvrsrvkm + + touch /etc/powervr-esrev + + SAVED_ESREVISION="$(cat /etc/powervr-esrev)" +} + +sgxfinish () { + # Fix up a bug in opkg + if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then + cd /usr/lib + ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so + fi + + if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then + echo -n "Starting SGX fixup for" + echo " ES${ES_REVISION}.x" + cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib + cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin + echo "${ES_REVISION}" > /etc/powervr-esrev + fi + + if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi +} + +case $CPUTYPE in +"OMAP3530") + sgxprepare + + devmem2 0x48004B48 w 0x2 > /dev/null + devmem2 0x48004B10 w 0x1 > /dev/null + devmem2 0x48004B00 w 0x2 > /dev/null + + ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')" + + sgxfinish + ;; +"TI33XX") + sgxprepare + + devmem2 0x44e01104 w 0x0 > /dev/null + devmem2 0x44e00904 w 0x2 > /dev/null + + ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')" + + sgxfinish + ;; +"TI816x") + sgxprepare + + devmem2 0x48180F04 w 0x0 > /dev/null + devmem2 0x48180900 w 0x2 > /dev/null + devmem2 0x48180920 w 0x2 > /dev/null + + ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')" + + sgxfinish + ;; +*) + echo No SGX hardware, not starting PVR + ;; +esac
recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr new file +136 -0
136 lines not on this page · raw message
recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb new file +76 -0
76 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH 2/2 omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
From: Franklin S. Cooper Jr <[email protected]>
* Add version 4.08.00.01 of the SGX modules.
---
Version 2:
Update SRC_URI link to use official SDK download link
.../omap3-sgx-modules_4.08.00.01.bb | 56 ++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb new file +56 -0
@@ -0,0 +1,56 @@ +DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4" + +TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" +require ../../recipes-ti/includes/ti-eula-unpack.inc + +SGXPV = "4_08_00_01" +IMGPV = "1.9.2139099" +BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin" + +inherit module + +MACHINE_KERNEL_PR_append = "a" +PR = "${MACHINE_KERNEL_PR}" + +DEFAULT_PREFERENCE = "-1" + +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}" + +SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159" +SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a" + +TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}" +S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM" + +PVRBUILD = "release" +export KERNELDIR = "${STAGING_KERNEL_DIR}" + +INHIBIT_PACKAGE_STRIP = "1" + +TI_PLATFORM_omap3 = "omap3630" +TI_PLATFORM_ti814x = "ti81xx" +TI_PLATFORM_ti816x = "ti81xx" +TI_PLATFORM_ti33x = "ti335x" + +MODULESLOCATION_omap3 = "dc_omapfb3_linux" +MODULESLOCATION_ti814x = "dc_ti81xx_linux" +MODULESLOCATION_ti816x = "dc_ti81xx_linux" +MODULESLOCATION_ti33x = "dc_ti335x_linux" + +export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}" + +MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}" + +do_install() { + mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + cp ${S}/pvrsrvkm.ko \ + ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \ + ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \ + ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + + if [ "${SUPPORT_XORG}" = "1" ]; then + cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr + fi +}
Signature · 1 line
1.7.0.4
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 4 lines · On Wed, Feb 6, 2013 at 7:57 AM, <[email protected]> wrote:
From: Franklin S. Cooper Jr <[email protected]>
* Add version 4.08.00.01 of the SGX modules.
Quoted 9 lines
Signed-off-by Franklin S. Cooper Jr <[email protected]>---
Version 2:
UpdateSRC_URIlink to use official SDK download link.../omap3-sgx-modules_4.08.00.01.bb | 56 ++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
Just a question: With which kernel version did you test that - because 4.05 currently used need patching for kernels > 3.3 for me.
Andreas
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
3.2
Denys
-----Original Message-----
From: Andreas Müller [[email protected]]
Received: Wednesday, 06 Feb 2013, 2:34
To: [email protected] [[email protected]]
CC: [email protected] [[email protected]]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 4 lines · On Wed, Feb 6, 2013 at 7:57 AM, <[email protected]> wrote:
From: Franklin S. Cooper Jr <[email protected]>
* Add version 4.08.00.01 of the SGX modules.
Quoted 9 lines
Signed-off-by Franklin S. Cooper Jr <[email protected]>---
Version 2:
UpdateSRC_URIlink to use official SDK download link.../omap3-sgx-modules_4.08.00.01.bb | 56 ++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
Just a question: With which kernel version did you test that - because 4.05 currently used need patching for kernels > 3.3 for me.
Andreas
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 31 lines · Denys
3.2
Denys
-----Original Message-----
From: Andreas Müller [[email protected]]
Received: Wednesday, 06 Feb 2013, 2:34
To: [email protected] [[email protected]]
CC: [email protected] [[email protected]]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modulesQuoted 9 lines · On Wed, Feb 6, 2013 at 7:57 AM, <[email protected]> wrote:
From: Franklin S. Cooper Jr <[email protected]>
* Add version 4.08.00.01 of the SGX modules.
Signed-off-by Franklin S. Cooper Jr <[email protected]>---
Version 2:
UpdateSRC_URIlink to use official SDK download linkQuoted 6 lines
.../omap3-sgx-modules_4.08.00.01.bb | 56 ++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
Quoted 4 lines
Just a question: With which kernel version did you test that - because 4.05 currently used need patching for kernels > 3.3 for me.
Andreas
With linux-omap 3.5 which I use in meta-gumstix-community for a while I get
ERROR: Function failed: do_compile (see /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757 for further information)
ERROR: Logfile of failure stored in:/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757 Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 12 -e MAKEFLAGS= KERNEL_PATH=/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel KERNEL_SRC=/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel
KERNEL_VERSION=3.5.0 CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a
-mthumb-interwork -mfloat-abi=softfp -mfpu=neon
--sysroot=/home/andreas/tmp/oe-core-eglibc/sysroots/overo
-mno-thumb-interwork -marm LD=arm-angstrom-linux-gnueabi-ld --sysroot=/home/andreas/tmp/oe-core-eglibc/sysroots/overo
AR=arm-angstrom-linux-gnueabi-ar BUILD=release TI_PLATFORM=omap3630
SUPPORT_XORG=1
| make -C /home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel M=pwd
| make[1]: Entering directory
`/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel'
| LD /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o | CC [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o | LD [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bufferclass_ti.o | LD /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/built-in.o | CC [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/pvr_drm_stubs.o
| make[3]: *** No rule to make target /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm_auth.o', needed by /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm.o'.
Stop.
| make[2]: *** [/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm] Error 2
| make[1]: *** [_module_/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM] Error 2
| make[1]: Leaving directory
`/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel'
| make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see
/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757 for further information)
I added CONFIG_DRM_OMAP=m (CONFIG_DRM=y was there already at first run) but the same error.
drm_auth.o is not found in my sysroot/kernel-image-folder but was built and can be found in the build folder of the kernel.
Any thoughts?
Andreas
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 84 lines · Andreas Müller
Quoted 31 lines · Denys
3.2
Denys
-----Original Message-----
From: Andreas Müller [[email protected]]
Received: Wednesday, 06 Feb 2013, 2:34
To: [email protected] [[email protected]]
CC: [email protected] [[email protected]]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modulesQuoted 9 lines · On Wed, Feb 6, 2013 at 7:57 AM, <[email protected]> wrote:
From: Franklin S. Cooper Jr <[email protected]>
* Add version 4.08.00.01 of the SGX modules.
Signed-off-by Franklin S. Cooper Jr <[email protected]>---
Version 2:
UpdateSRC_URIlink to use official SDK download linkQuoted 6 lines
.../omap3-sgx-modules_4.08.00.01.bb | 56 ++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
Quoted 4 lines
Just a question: With which kernel version did you test that - because 4.05 currently used need patching for kernels > 3.3 for me.
Andreas
With linux-omap 3.5 which I use in meta-gumstix-community for a while I get
ERROR: Function failed:
do_compile(see/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757for further information)
ERROR: Logfile of failure stored in:/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757Log data follows:
| DEBUG: Executing shell functiondo_compile
| NOTE: make -j 12 -e MAKEFLAGS= KERNEL_PATH=/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel KERNEL_SRC=/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel
KERNEL_VERSION=3.5.0 CC=arm-angstrom-linux-gnueabi-gcc -march=armv7-a
-mthumb-interwork -mfloat-abi=softfp -mfpu=neon
--sysroot=/home/andreas/tmp/oe-core-eglibc/sysroots/overo
-mno-thumb-interwork -marm LD=arm-angstrom-linux-gnueabi-ld --sysroot=/home/andreas/tmp/oe-core-eglibc/sysroots/overo
AR=arm-angstrom-linux-gnueabi-ar BUILD=release TI_PLATFORM=omap3630
SUPPORT_XORG=1
| make -C/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernelM=pwd
| make[1]: Entering directory
`/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel'| LD /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o | CC [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o | LD [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bufferclass_ti.o | LD /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/built-in.o | CC [M] /home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/pvr_drm_stubs.o| make[3]: *** No rule to make target
/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm_auth.o', needed by/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm.o'.
Stop.
| make[2]: *** [/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm] Error 2
| make[1]: *** [_module_/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM] Error 2
| make[1]: Leaving directory
`/home/andreas/tmp/oe-core-eglibc/sysroots/overo/usr/src/kernel'| make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see
/home/andreas/tmp/oe-core-eglibc/work/overo-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/temp/log.do_compile.1757for further information)I added
CONFIG_DRM_OMAP=m(CONFIG_DRM=ywas there already at first run) but the same error.
Quoted 6 lines
drm_auth.o is not found in my sysroot/kernel-image-folder but was built and can be found in the build folder of the kernel.
Any thoughts?
Andreas
One - maybe stupid - question: Have you tested with latest oe-core -or do you have
commit c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2
Author: Mark Asselstine <[email protected]> Date: Thu Jan 31 13:31:03 2013 -0500
kernel: avoid copying unnecessary files during do_install
kernel_do_install() populates $kerneldir with files needed to build external modules. To accomplish this there are several copy commands to get source from the kernel source tree and build trees after which a 'clean' is performed. Since we are copying from the build tree we get about 1G of .o and .cmd files copied over only to have them removed when we clean. This adds additional IO overhead as well as overhead caused by pseudo. By avoiding copying these files in the first place we get multiple gains:
* avoid initial copy
* avoid file deletes during clean
* reduce pseudo overhead
Additionally we are making use of cpio vs cp which tends to be significantly faster at performing copies.
With these changes I observe a 15-30% decrease in the time to complete the do_install() operation on the kernel.
[YOCTO #3517]
in your repo?
Andreas
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 29 lines · Andreas Müller
One - maybe stupid - question: Have you tested with latest oe-core -or do you have
commit
c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2Author: Mark Asselstine <[email protected]> Date: Thu Jan 31 13:31:03 2013 -0500kernel: avoid copying unnecessary files during
do_install
kernel_do_install()populates $kerneldir with files needed to build external modules. To accomplish this there are several copy commands to get source from the kernel source tree and build trees after which a 'clean' is performed. Since we are copying from the build tree we get about 1G of .o and .cmd files copied over only to have them removed when we clean. This adds additional IO overhead as well as overhead caused by pseudo. By avoiding copying these files in the first place we get multiple gains:
* avoid initial copy
* avoid file deletes during clean
* reduce pseudo overheadAdditionally we are making use of cpio vs cp which tends to be significantly faster at performing copies.
With these changes I observe a 15-30% decrease in the time to complete the
do_install()operation on the kernel.[YOCTO #3517]
Quoted 7 lines
Signed-off-by Mark Asselstine <[email protected]>Signed-off-by Bruce Ashfield <[email protected]>Signed-off-by Richard Purdie <[email protected]>in your repo?
Andreas
FYI: I removed meta-gumstix-community from my layers and ran
MACHINE="beagleboard" bitbake omap3-sgx-modules
and get same:
| make[3]: *** No rule to make target /home/Superandy/tmp/oe-core-eglibc/work/beagleboard-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm_auth.o', needed by /home/Superandy/tmp/oe-core-eglibc/work/beagleboard-angstrom-linux-gnueabi/omap3-sgx-modules/4.08.00.01-r122a/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/linux_drm/drm.o'.
Stop.
so I think it is related to changes in other layers. Did you test with master or danny?
Andreas
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CALbNGRTnx5Tg8Vcme4eZ77bDSzwkaoHHuTa4C+z6tfM+bB4jwA@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CALbNGRRt7QoifHFqQMDeSY7g2ABt15_KhgBos6ijwGbLAOcpPw@mail.gmail.com
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 12 lines · Andreas Müller
Quoted 10 lines · Andreas Müller
Quoted 6 lines · Franklin
Yes I've got this working for me on danny. However, I do use a non x11 build which is most likely the reason why I am not having this problem.
A related thread about possible issues with x11 distributions
https://lists.yoctoproject.org/pipermail/meta-ti/2012-September/001502.htmlHave fixed this - after testing I will send a follow up patch series because I am really burning to see the X11 stuff...
Quoted 8 lines
Quoted 1 line
Andreas
Aargh - during tests I ran into other issues with oe-core/meta-oe current HEAD so I can not do run-tests. Build-tested results are at
https://gitorious.org/schnitzeltony-oe-meta/meta-ti/commits/sgx-test
As soon as HEADS are back and build working images I'll return on this...
OK I managed to build and am testing now. When loading pvr_drv X complains for wrong ABI (is 10 expected 13). Is there a version of Graphics SDK available with support for xserver 1.13? I saw v4.08.00.02 supports xserver 1.12. Are there any other sources for the userspace-driver part?
Andreas
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 20 lines · Andreas Müller
Quoted 18 lines · Andreas Müller
Quoted 11 lines · Andreas Müller
Quoted 6 lines · Franklin
Yes I've got this working for me on danny. However, I do use a non x11 build which is most likely the reason why I am not having this problem.
A related thread about possible issues with x11 distributions
https://lists.yoctoproject.org/pipermail/meta-ti/2012-September/001502.htmlHave fixed this - after testing I will send a follow up patch series because I am really burning to see the X11 stuff...
Andreas
Aargh - during tests I ran into other issues with oe-core/meta-oe current HEAD so I can not do run-tests. Build-tested results are at
https://gitorious.org/schnitzeltony-oe-meta/meta-ti/commits/sgx-test
Quoted 7 lines
Quoted 2 lines
As soon as HEADS are back and build working images I'll return on this...
OK I managed to build and am testing now. When loading
pvr_drvX complains for wrong ABI (is 10 expected 13). Is there a version of Graphics SDK available with support for xserver 1.13? I saw v4.08.00.02 supports xserver 1.12. Are there any other sources for the userspace-driver part?
Andreas,
I just pushed v4.08.00.01. Please let us know if you have any further comments or patches.
Currently, v4.08.00.02 has some issues compiling from the recipes, as historically recipes didn't use Graphics SDK's Makefiles - we will be reworking that soon. As well as we'll try to address installer's size issue.
As of the xserver support - 1.12 from v4.08.00.02 is as good as it gets right now. While X11 support hasn't been the first priority for Graphics SDK lately, that might change in the near future...
Signature · 1 line
Denys
Re: [PATCH 2/2] omap3-sgx-modules: Add v4.08.00.01 of the SGX modules
Quoted 38 lines · Denys Dmytriyenko
Quoted 20 lines · Andreas Müller
Quoted 18 lines · Andreas Müller
Quoted 11 lines · Andreas Müller
Quoted 6 lines · Franklin
Yes I've got this working for me on danny. However, I do use a non x11 build which is most likely the reason why I am not having this problem.
A related thread about possible issues with x11 distributions
https://lists.yoctoproject.org/pipermail/meta-ti/2012-September/001502.htmlHave fixed this - after testing I will send a follow up patch series because I am really burning to see the X11 stuff...
Andreas
Aargh - during tests I ran into other issues with oe-core/meta-oe current HEAD so I can not do run-tests. Build-tested results are at
https://gitorious.org/schnitzeltony-oe-meta/meta-ti/commits/sgx-test
Quoted 7 lines
Quoted 2 lines
As soon as HEADS are back and build working images I'll return on this...
OK I managed to build and am testing now. When loading
pvr_drvX complains for wrong ABI (is 10 expected 13). Is there a version of Graphics SDK available with support for xserver 1.13? I saw v4.08.00.02 supports xserver 1.12. Are there any other sources for the userspace-driver part?Andreas,
I just pushed v4.08.00.01. Please let us know if you have any further comments or patches.
Currently, v4.08.00.02 has some issues compiling from the recipes, as historically recipes didn't use Graphics SDK's Makefiles - we will be reworking that soon. As well as we'll try to address installer's size issue.
Quoted 6 lines
As of the xserver support - 1.12 from v4.08.00.02 is as good as it gets right now. While X11 support hasn't been the first priority for Graphics SDK lately, that might change in the near future...
--
Denys
I got them to build for X with kernel 3.2 (begleboard) and 3.5 (overo). This you can see at [1] - but it needs some cleanup. More or less accidently I found that much of what I did is already available at [2]. As said - run tests failed due to mismatching ABI version for pvr_dri. So I stopped further activities and wait for later SDK with matching ABI.
Andreas
[1] https://gitorious.org/schnitzeltony-oe-meta/meta-ti/commits/sgx-test
[2] https://github.com/RobertCNelson/ti-sdk-pvr/tree/4.08.00.02