summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb54
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb54
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb67
-rw-r--r--recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb67
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr124
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr136
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr124
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr136
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr134
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr145
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr134
-rwxr-xr-xrecipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr145
-rw-r--r--recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb74
-rw-r--r--recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb74
-rw-r--r--recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb50
-rw-r--r--recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb50
16 files changed, 0 insertions, 1568 deletions
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
deleted file mode 100644
index e9f71904..00000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.01.bb
+++ /dev/null
@@ -1,54 +0,0 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4"
4
5TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
6require ../../recipes-ti/includes/ti-eula-unpack.inc
7
8SGXPV = "4_08_00_01"
9IMGPV = "1.9.2139099"
10BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin"
11
12inherit module
13
14MACHINE_KERNEL_PR_append = "a"
15PR = "${MACHINE_KERNEL_PR}"
16
17SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
18
19SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159"
20SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a"
21
22TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
23S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
24
25PVRBUILD = "release"
26export KERNELDIR = "${STAGING_KERNEL_DIR}"
27
28INHIBIT_PACKAGE_STRIP = "1"
29
30TI_PLATFORM_omap3 = "omap3630"
31TI_PLATFORM_ti814x = "ti81xx"
32TI_PLATFORM_ti816x = "ti81xx"
33TI_PLATFORM_ti33x = "ti335x"
34
35MODULESLOCATION_omap3 = "dc_omapfb3_linux"
36MODULESLOCATION_ti814x = "dc_ti81xx_linux"
37MODULESLOCATION_ti816x = "dc_ti81xx_linux"
38MODULESLOCATION_ti33x = "dc_ti335x_linux"
39
40export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
41
42MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
43
44do_install() {
45 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
46 cp ${S}/pvrsrvkm.ko \
47 ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
48 ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
49 ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
50
51 if [ "${SUPPORT_XORG}" = "1" ]; then
52 cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
53 fi
54}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb
deleted file mode 100644
index d5737cdf..00000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.08.00.02.bb
+++ /dev/null
@@ -1,54 +0,0 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=ea5743acf520dd81ca172e69f818a3d4"
4
5TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
6require ../../recipes-ti/includes/ti-eula-unpack.inc
7
8SGXPV = "4_08_00_02"
9IMGPV = "1.9.2188537"
10BINFILE = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
11
12inherit module
13
14MACHINE_KERNEL_PR_append = "a"
15PR = "${MACHINE_KERNEL_PR}"
16
17SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
18
19SRC_URI[md5sum] = "0efa3a38266e6f41f8cc4fad0187f0d6"
20SRC_URI[sha256sum] = "c732044b515a598e1fab661b7463aa9c53d4fa37f4980dfa85cd02b7468d0cd9"
21
22TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
23S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
24
25PVRBUILD = "release"
26export KERNELDIR = "${STAGING_KERNEL_DIR}"
27
28INHIBIT_PACKAGE_STRIP = "1"
29
30TI_PLATFORM_omap3 = "omap3630"
31TI_PLATFORM_ti814x = "ti81xx"
32TI_PLATFORM_ti816x = "ti81xx"
33TI_PLATFORM_ti33x = "ti335x"
34
35MODULESLOCATION_omap3 = "dc_omapfb3_linux"
36MODULESLOCATION_ti814x = "dc_ti81xx_linux"
37MODULESLOCATION_ti816x = "dc_ti81xx_linux"
38MODULESLOCATION_ti33x = "dc_ti335x_linux"
39
40export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
41
42MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
43
44do_install() {
45 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
46 cp ${S}/pvrsrvkm.ko \
47 ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
48 ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
49 ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
50
51 if [ "${SUPPORT_XORG}" = "1" ]; then
52 cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
53 fi
54}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb
deleted file mode 100644
index e18ce0cc..00000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.00.00.01.bb
+++ /dev/null
@@ -1,67 +0,0 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e"
4
5TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
6require ../../recipes-ti/includes/ti-eula-unpack.inc
7
8SGXPV = "5_00_00_01"
9IMGPV = "1.10.2359475"
10
11inherit module
12
13MACHINE_KERNEL_PR_append = "a"
14PR = "${MACHINE_KERNEL_PR}"
15
16BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_alpha_hardfp_minimal_demos.bin"
17MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
18SHA256SUM_HARDFP = "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385e0"
19
20# For now we only have hardfp version
21python __anonymous() {
22 tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
23 if not tunes:
24 return
25 pkgn = bb.data.getVar("PN", d, 1)
26 pkgv = bb.data.getVar("PV", d, 1)
27 if "callconvention-hard" not in tunes:
28 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
29 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
30}
31
32BINFILE := "${BINFILE_HARDFP}"
33
34SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
35
36SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
37SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
38
39TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
40S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
41
42PVRBUILD = "release"
43export KERNELDIR = "${STAGING_KERNEL_DIR}"
44
45INHIBIT_PACKAGE_STRIP = "1"
46
47TI_PLATFORM_omap3 = "omap3630"
48TI_PLATFORM_ti814x = "ti81xx"
49TI_PLATFORM_ti816x = "ti81xx"
50TI_PLATFORM_ti33x = "ti335x"
51TI_PLATFORM_ti43x = "ti43xx"
52
53MODULESLOCATION_omap3 = "dc_omapfb3_linux"
54MODULESLOCATION_ti814x = "dc_ti81xx_linux"
55MODULESLOCATION_ti816x = "dc_ti81xx_linux"
56MODULESLOCATION_ti33x = "dc_ti335x_linux"
57MODULESLOCATION_ti43x = "dc_ti43xx_linux"
58
59MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
60
61do_install() {
62 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
63 cp ${S}/pvrsrvkm.ko \
64 ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
65 ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
66 ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
67}
diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb
deleted file mode 100644
index 162e4d59..00000000
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.00.01.bb
+++ /dev/null
@@ -1,67 +0,0 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e"
4
5TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
6require ../../recipes-ti/includes/ti-eula-unpack.inc
7
8SGXPV = "5_01_00_01"
9IMGPV = "1.10.2359475"
10
11inherit module
12
13MACHINE_KERNEL_PR_append = "a"
14PR = "${MACHINE_KERNEL_PR}"
15
16BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
17MD5SUM_HARDFP = "0ee7d59808330d442a51c0990c2cb30e"
18SHA256SUM_HARDFP = "769daae439677a7a85bbbced14cee4f85b19823e0b99560078d0a864c525c128"
19
20# For now we only have hardfp version
21python __anonymous() {
22 tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
23 if not tunes:
24 return
25 pkgn = bb.data.getVar("PN", d, 1)
26 pkgv = bb.data.getVar("PV", d, 1)
27 if "callconvention-hard" not in tunes:
28 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
29 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
30}
31
32BINFILE := "${BINFILE_HARDFP}"
33
34SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
35
36SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
37SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
38
39TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
40S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
41
42PVRBUILD = "release"
43export KERNELDIR = "${STAGING_KERNEL_DIR}"
44
45INHIBIT_PACKAGE_STRIP = "1"
46
47TI_PLATFORM_omap3 = "omap3630"
48TI_PLATFORM_ti814x = "ti81xx"
49TI_PLATFORM_ti816x = "ti81xx"
50TI_PLATFORM_ti33x = "ti335x"
51TI_PLATFORM_ti43x = "ti43xx"
52
53MODULESLOCATION_omap3 = "dc_omapfb3_linux"
54MODULESLOCATION_ti814x = "dc_ti81xx_linux"
55MODULESLOCATION_ti816x = "dc_ti81xx_linux"
56MODULESLOCATION_ti33x = "dc_ti335x_linux"
57MODULESLOCATION_ti43x = "dc_ti43xx_linux"
58
59MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
60
61do_install() {
62 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
63 cp ${S}/pvrsrvkm.ko \
64 ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko \
65 ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
66 ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
67}
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr
deleted file mode 100755
index 7b5cefa5..00000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc.pvr
+++ /dev/null
@@ -1,124 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25 rmmod bufferclass_ti
26 rmmod omaplfb 2>/dev/null
27 rmmod pvrsrvkm 2>/dev/null
28fi
29
30if [ "$1" = "stop" ]; then
31 exit 0
32fi
33
34# Set RGBA ordering to something the drivers like
35if [ "$BITSPERPIXEL" = "32" ] ; then
36 fbset -rgba 8/16,8/8,8/0,8/24
37fi
38
39# Try to enable triple buffering when there's enough VRAM
40fbset -vyres $(expr $YRES \* 3)
41
42sgxprepare () {
43 echo Starting PVR
44 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
45
46 if [ "$?" != "0" ]
47 then
48 echo "Could not find pvrsrvkm driver"
49 exit 1
50 fi
51
52 modprobe omaplfb
53 modprobe bufferclass_ti
54
55 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
56 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
57
58 if [ -e /dev/pvrsrvkm ] ; then
59 rm -f /dev/pvrsrvkm
60 fi
61
62 mknod /dev/pvrsrvkm c $pvr_maj 0
63 chmod 666 /dev/pvrsrvkm
64
65 touch /etc/powervr-esrev
66
67 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
68}
69
70sgxfinish () {
71 # Fix up a bug in opkg
72 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
73 cd /usr/lib
74 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
75 fi
76
77 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
78 echo -n "Starting SGX fixup for"
79 echo " ES${ES_REVISION}.x"
80 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
81 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
82 echo "${ES_REVISION}" > /etc/powervr-esrev
83 fi
84
85 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
86}
87
88case $CPUTYPE in
89"OMAP3530")
90 sgxprepare
91
92 devmem2 0x48004B48 w 0x2 > /dev/null
93 devmem2 0x48004B10 w 0x1 > /dev/null
94 devmem2 0x48004B00 w 0x2 > /dev/null
95
96 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
97
98 sgxfinish
99 ;;
100"TI33XX")
101 sgxprepare
102
103 devmem2 0x44e01104 w 0x0 > /dev/null
104 devmem2 0x44e00904 w 0x2 > /dev/null
105
106 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
107
108 sgxfinish
109 ;;
110"TI816x")
111 sgxprepare
112
113 devmem2 0x48180F04 w 0x0 > /dev/null
114 devmem2 0x48180900 w 0x2 > /dev/null
115 devmem2 0x48180920 w 0x2 > /dev/null
116
117 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
118
119 sgxfinish
120 ;;
121*)
122 echo No SGX hardware, not starting PVR
123 ;;
124esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr
deleted file mode 100755
index dd1e9421..00000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,136 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25
26 # Stop the X Server.
27 #
28 [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
29
30 rmmod bufferclass_ti
31 rmmod pvrsrvkm 2>/dev/null
32 rmmod drm 2>/dev/null
33fi
34
35if [ "$1" = "stop" ]; then
36 exit 0
37fi
38
39# Set RGBA ordering to something the drivers like
40if [ "$BITSPERPIXEL" = "32" ] ; then
41 fbset -rgba 8/16,8/8,8/0,8/24
42fi
43
44# Try to enable triple buffering when there's enough VRAM
45fbset -vyres $(expr $YRES \* 3)
46
47sgxprepare () {
48 echo Starting PVR
49
50 # Start the X Server.
51 # The X Server will load the PVR Services module.
52 #
53 /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
54
55 modprobe drm
56
57 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
58
59 if [ "$?" != "0" ]
60 then
61 echo "Could not find pvrsrvkm driver"
62 exit 1
63 fi
64
65 modprobe bufferclass_ti
66
67 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
68 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
69
70 if [ -e /dev/pvrsrvkm ] ; then
71 rm -f /dev/pvrsrvkm
72 fi
73
74 mknod /dev/pvrsrvkm c $pvr_maj 0
75 chmod 666 /dev/pvrsrvkm
76
77 touch /etc/powervr-esrev
78
79 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
80}
81
82sgxfinish () {
83 # Fix up a bug in opkg
84 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
85 cd /usr/lib
86 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
87 fi
88
89 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
90 echo -n "Starting SGX fixup for"
91 echo " ES${ES_REVISION}.x"
92 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
93 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
94 echo "${ES_REVISION}" > /etc/powervr-esrev
95 fi
96
97 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
98}
99
100case $CPUTYPE in
101"OMAP3530")
102 sgxprepare
103
104 devmem2 0x48004B48 w 0x2 > /dev/null
105 devmem2 0x48004B10 w 0x1 > /dev/null
106 devmem2 0x48004B00 w 0x2 > /dev/null
107
108 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
109
110 sgxfinish
111 ;;
112"TI33XX")
113 sgxprepare
114
115 devmem2 0x44e01104 w 0x0 > /dev/null
116 devmem2 0x44e00904 w 0x2 > /dev/null
117
118 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
119
120 sgxfinish
121 ;;
122"TI816x")
123 sgxprepare
124
125 devmem2 0x48180F04 w 0x0 > /dev/null
126 devmem2 0x48180900 w 0x2 > /dev/null
127 devmem2 0x48180920 w 0x2 > /dev/null
128
129 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
130
131 sgxfinish
132 ;;
133*)
134 echo No SGX hardware, not starting PVR
135 ;;
136esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr
deleted file mode 100755
index 7b5cefa5..00000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc.pvr
+++ /dev/null
@@ -1,124 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25 rmmod bufferclass_ti
26 rmmod omaplfb 2>/dev/null
27 rmmod pvrsrvkm 2>/dev/null
28fi
29
30if [ "$1" = "stop" ]; then
31 exit 0
32fi
33
34# Set RGBA ordering to something the drivers like
35if [ "$BITSPERPIXEL" = "32" ] ; then
36 fbset -rgba 8/16,8/8,8/0,8/24
37fi
38
39# Try to enable triple buffering when there's enough VRAM
40fbset -vyres $(expr $YRES \* 3)
41
42sgxprepare () {
43 echo Starting PVR
44 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
45
46 if [ "$?" != "0" ]
47 then
48 echo "Could not find pvrsrvkm driver"
49 exit 1
50 fi
51
52 modprobe omaplfb
53 modprobe bufferclass_ti
54
55 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
56 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
57
58 if [ -e /dev/pvrsrvkm ] ; then
59 rm -f /dev/pvrsrvkm
60 fi
61
62 mknod /dev/pvrsrvkm c $pvr_maj 0
63 chmod 666 /dev/pvrsrvkm
64
65 touch /etc/powervr-esrev
66
67 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
68}
69
70sgxfinish () {
71 # Fix up a bug in opkg
72 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
73 cd /usr/lib
74 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
75 fi
76
77 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
78 echo -n "Starting SGX fixup for"
79 echo " ES${ES_REVISION}.x"
80 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
81 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
82 echo "${ES_REVISION}" > /etc/powervr-esrev
83 fi
84
85 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
86}
87
88case $CPUTYPE in
89"OMAP3530")
90 sgxprepare
91
92 devmem2 0x48004B48 w 0x2 > /dev/null
93 devmem2 0x48004B10 w 0x1 > /dev/null
94 devmem2 0x48004B00 w 0x2 > /dev/null
95
96 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
97
98 sgxfinish
99 ;;
100"TI33XX")
101 sgxprepare
102
103 devmem2 0x44e01104 w 0x0 > /dev/null
104 devmem2 0x44e00904 w 0x2 > /dev/null
105
106 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
107
108 sgxfinish
109 ;;
110"TI816x")
111 sgxprepare
112
113 devmem2 0x48180F04 w 0x0 > /dev/null
114 devmem2 0x48180900 w 0x2 > /dev/null
115 devmem2 0x48180920 w 0x2 > /dev/null
116
117 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
118
119 sgxfinish
120 ;;
121*)
122 echo No SGX hardware, not starting PVR
123 ;;
124esac
diff --git a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr
deleted file mode 100755
index dd1e9421..00000000
--- a/recipes-graphics/libgles/libgles-omap3-4.08.00.02/rc_dri.pvr
+++ /dev/null
@@ -1,136 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25
26 # Stop the X Server.
27 #
28 [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
29
30 rmmod bufferclass_ti
31 rmmod pvrsrvkm 2>/dev/null
32 rmmod drm 2>/dev/null
33fi
34
35if [ "$1" = "stop" ]; then
36 exit 0
37fi
38
39# Set RGBA ordering to something the drivers like
40if [ "$BITSPERPIXEL" = "32" ] ; then
41 fbset -rgba 8/16,8/8,8/0,8/24
42fi
43
44# Try to enable triple buffering when there's enough VRAM
45fbset -vyres $(expr $YRES \* 3)
46
47sgxprepare () {
48 echo Starting PVR
49
50 # Start the X Server.
51 # The X Server will load the PVR Services module.
52 #
53 /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
54
55 modprobe drm
56
57 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
58
59 if [ "$?" != "0" ]
60 then
61 echo "Could not find pvrsrvkm driver"
62 exit 1
63 fi
64
65 modprobe bufferclass_ti
66
67 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
68 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
69
70 if [ -e /dev/pvrsrvkm ] ; then
71 rm -f /dev/pvrsrvkm
72 fi
73
74 mknod /dev/pvrsrvkm c $pvr_maj 0
75 chmod 666 /dev/pvrsrvkm
76
77 touch /etc/powervr-esrev
78
79 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
80}
81
82sgxfinish () {
83 # Fix up a bug in opkg
84 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
85 cd /usr/lib
86 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
87 fi
88
89 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
90 echo -n "Starting SGX fixup for"
91 echo " ES${ES_REVISION}.x"
92 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
93 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
94 echo "${ES_REVISION}" > /etc/powervr-esrev
95 fi
96
97 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
98}
99
100case $CPUTYPE in
101"OMAP3530")
102 sgxprepare
103
104 devmem2 0x48004B48 w 0x2 > /dev/null
105 devmem2 0x48004B10 w 0x1 > /dev/null
106 devmem2 0x48004B00 w 0x2 > /dev/null
107
108 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
109
110 sgxfinish
111 ;;
112"TI33XX")
113 sgxprepare
114
115 devmem2 0x44e01104 w 0x0 > /dev/null
116 devmem2 0x44e00904 w 0x2 > /dev/null
117
118 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
119
120 sgxfinish
121 ;;
122"TI816x")
123 sgxprepare
124
125 devmem2 0x48180F04 w 0x0 > /dev/null
126 devmem2 0x48180900 w 0x2 > /dev/null
127 devmem2 0x48180920 w 0x2 > /dev/null
128
129 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
130
131 sgxfinish
132 ;;
133*)
134 echo No SGX hardware, not starting PVR
135 ;;
136esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
deleted file mode 100755
index 132749af..00000000
--- a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
+++ /dev/null
@@ -1,134 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25 rmmod bufferclass_ti
26 rmmod omaplfb 2>/dev/null
27 rmmod pvrsrvkm 2>/dev/null
28fi
29
30if [ "$1" = "stop" ]; then
31 exit 0
32fi
33
34# Set RGBA ordering to something the drivers like
35if [ "$BITSPERPIXEL" = "32" ] ; then
36 fbset -rgba 8/16,8/8,8/0,8/24
37fi
38
39# Try to enable triple buffering when there's enough VRAM
40fbset -vyres $(expr $YRES \* 3)
41
42sgxprepare () {
43 echo Starting PVR
44
45 lsmod | grep pvrsrvkm > /dev/null
46
47 if [ "$?" != "0" ]
48 then
49 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
50
51 if [ "$?" != "0" ]
52 then
53 echo "Could not find pvrsrvkm driver"
54 exit 1
55 fi
56 fi
57
58 modprobe omaplfb
59 modprobe bufferclass_ti
60
61 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
62 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
63
64 if [ -e /dev/pvrsrvkm ] ; then
65 rm -f /dev/pvrsrvkm
66 fi
67
68 mknod /dev/pvrsrvkm c $pvr_maj 0
69 chmod 666 /dev/pvrsrvkm
70
71 touch /etc/powervr-esrev
72
73 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
74}
75
76sgxfinish () {
77 # Fix up a bug in opkg
78 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
79 cd /usr/lib
80 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
81 fi
82
83 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
84 echo -n "Starting SGX fixup for"
85 echo " ES${ES_REVISION}.x"
86 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
87 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
88 echo "${ES_REVISION}" > /etc/powervr-esrev
89 fi
90
91 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
92}
93
94case $CPUTYPE in
95"OMAP3530")
96 sgxprepare
97
98 devmem2 0x48004B48 w 0x2 > /dev/null
99 devmem2 0x48004B10 w 0x1 > /dev/null
100 devmem2 0x48004B00 w 0x2 > /dev/null
101
102 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
103
104 sgxfinish
105 ;;
106"TI33XX")
107 sgxprepare
108
109 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
110
111 sgxfinish
112 ;;
113"TI43XX")
114 sgxprepare
115
116 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
117
118 sgxfinish
119 ;;
120"TI816x")
121 sgxprepare
122
123 devmem2 0x48180F04 w 0x0 > /dev/null
124 devmem2 0x48180900 w 0x2 > /dev/null
125 devmem2 0x48180920 w 0x2 > /dev/null
126
127 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
128
129 sgxfinish
130 ;;
131*)
132 echo No SGX hardware, not starting PVR
133 ;;
134esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
deleted file mode 100755
index 9b75aaf5..00000000
--- a/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,145 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25
26 # Stop the X Server.
27 #
28 [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
29
30 rmmod bufferclass_ti
31 rmmod pvrsrvkm 2>/dev/null
32 rmmod drm 2>/dev/null
33fi
34
35if [ "$1" = "stop" ]; then
36 exit 0
37fi
38
39# Set RGBA ordering to something the drivers like
40if [ "$BITSPERPIXEL" = "32" ] ; then
41 fbset -rgba 8/16,8/8,8/0,8/24
42fi
43
44# Try to enable triple buffering when there's enough VRAM
45fbset -vyres $(expr $YRES \* 3)
46
47sgxprepare () {
48 echo Starting PVR
49
50 # Start the X Server.
51 # The X Server will load the PVR Services module.
52 #
53 /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
54
55 modprobe drm
56
57 lsmod | grep pvrsrvkm > /dev/null
58
59 if [ "$?" != "0" ]
60 then
61 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
62
63 if [ "$?" != "0" ]
64 then
65 echo "Could not find pvrsrvkm driver"
66 exit 1
67 fi
68 fi
69
70 modprobe bufferclass_ti
71
72 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
73 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
74
75 if [ -e /dev/pvrsrvkm ] ; then
76 rm -f /dev/pvrsrvkm
77 fi
78
79 mknod /dev/pvrsrvkm c $pvr_maj 0
80 chmod 666 /dev/pvrsrvkm
81
82 touch /etc/powervr-esrev
83
84 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
85}
86
87sgxfinish () {
88 # Fix up a bug in opkg
89 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
90 cd /usr/lib
91 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
92 fi
93
94 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
95 echo -n "Starting SGX fixup for"
96 echo " ES${ES_REVISION}.x"
97 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
98 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
99 echo "${ES_REVISION}" > /etc/powervr-esrev
100 fi
101
102 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
103}
104
105case $CPUTYPE in
106"OMAP3530")
107 sgxprepare
108
109 devmem2 0x48004B48 w 0x2 > /dev/null
110 devmem2 0x48004B10 w 0x1 > /dev/null
111 devmem2 0x48004B00 w 0x2 > /dev/null
112
113 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
114
115 sgxfinish
116 ;;
117"TI33XX")
118 sgxprepare
119
120 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
121
122 sgxfinish
123 ;;
124"TI43XX")
125 sgxprepare
126
127 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
128
129 sgxfinish
130 ;;
131"TI816x")
132 sgxprepare
133
134 devmem2 0x48180F04 w 0x0 > /dev/null
135 devmem2 0x48180900 w 0x2 > /dev/null
136 devmem2 0x48180920 w 0x2 > /dev/null
137
138 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
139
140 sgxfinish
141 ;;
142*)
143 echo No SGX hardware, not starting PVR
144 ;;
145esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr
deleted file mode 100755
index 132749af..00000000
--- a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc.pvr
+++ /dev/null
@@ -1,134 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25 rmmod bufferclass_ti
26 rmmod omaplfb 2>/dev/null
27 rmmod pvrsrvkm 2>/dev/null
28fi
29
30if [ "$1" = "stop" ]; then
31 exit 0
32fi
33
34# Set RGBA ordering to something the drivers like
35if [ "$BITSPERPIXEL" = "32" ] ; then
36 fbset -rgba 8/16,8/8,8/0,8/24
37fi
38
39# Try to enable triple buffering when there's enough VRAM
40fbset -vyres $(expr $YRES \* 3)
41
42sgxprepare () {
43 echo Starting PVR
44
45 lsmod | grep pvrsrvkm > /dev/null
46
47 if [ "$?" != "0" ]
48 then
49 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
50
51 if [ "$?" != "0" ]
52 then
53 echo "Could not find pvrsrvkm driver"
54 exit 1
55 fi
56 fi
57
58 modprobe omaplfb
59 modprobe bufferclass_ti
60
61 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
62 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
63
64 if [ -e /dev/pvrsrvkm ] ; then
65 rm -f /dev/pvrsrvkm
66 fi
67
68 mknod /dev/pvrsrvkm c $pvr_maj 0
69 chmod 666 /dev/pvrsrvkm
70
71 touch /etc/powervr-esrev
72
73 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
74}
75
76sgxfinish () {
77 # Fix up a bug in opkg
78 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
79 cd /usr/lib
80 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
81 fi
82
83 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
84 echo -n "Starting SGX fixup for"
85 echo " ES${ES_REVISION}.x"
86 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
87 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
88 echo "${ES_REVISION}" > /etc/powervr-esrev
89 fi
90
91 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
92}
93
94case $CPUTYPE in
95"OMAP3530")
96 sgxprepare
97
98 devmem2 0x48004B48 w 0x2 > /dev/null
99 devmem2 0x48004B10 w 0x1 > /dev/null
100 devmem2 0x48004B00 w 0x2 > /dev/null
101
102 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
103
104 sgxfinish
105 ;;
106"TI33XX")
107 sgxprepare
108
109 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
110
111 sgxfinish
112 ;;
113"TI43XX")
114 sgxprepare
115
116 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
117
118 sgxfinish
119 ;;
120"TI816x")
121 sgxprepare
122
123 devmem2 0x48180F04 w 0x0 > /dev/null
124 devmem2 0x48180900 w 0x2 > /dev/null
125 devmem2 0x48180920 w 0x2 > /dev/null
126
127 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
128
129 sgxfinish
130 ;;
131*)
132 echo No SGX hardware, not starting PVR
133 ;;
134esac
diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr b/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr
deleted file mode 100755
index 9b75aaf5..00000000
--- a/recipes-graphics/libgles/libgles-omap3-5.01.00.01/rc_dri.pvr
+++ /dev/null
@@ -1,145 +0,0 @@
1#!/bin/sh
2PATH=$PATH:/usr/sbin
3
4# Check if an fb device is available. If not then just go ahead and
5# exit because we have no display.
6fbset > /dev/null 2>&1
7if [ "$?" == "1" ]
8then
9 # looks like there is no display, so let's exit
10 exit 0
11fi
12
13BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
14YRES="$(fbset | grep geom | awk '{print $3}')"
15
16CPUTYPE="$(cputype)"
17
18if [ "$1" = "" ]; then
19 echo PVR-INIT: Please use start, stop, or restart.
20 exit 1
21fi
22
23if [ "$1" = "stop" -o "$1" = "restart" ]; then
24 echo Stopping PVR
25
26 # Stop the X Server.
27 #
28 [ -f /tmp/.X0-lock ] && read XPID < /tmp/.X0-lock && [ -n "$XPID" ] && kill $XPID && while [ -e /proc/$XPID ] ; do sleep 1; done
29
30 rmmod bufferclass_ti
31 rmmod pvrsrvkm 2>/dev/null
32 rmmod drm 2>/dev/null
33fi
34
35if [ "$1" = "stop" ]; then
36 exit 0
37fi
38
39# Set RGBA ordering to something the drivers like
40if [ "$BITSPERPIXEL" = "32" ] ; then
41 fbset -rgba 8/16,8/8,8/0,8/24
42fi
43
44# Try to enable triple buffering when there's enough VRAM
45fbset -vyres $(expr $YRES \* 3)
46
47sgxprepare () {
48 echo Starting PVR
49
50 # Start the X Server.
51 # The X Server will load the PVR Services module.
52 #
53 /usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.conf &
54
55 modprobe drm
56
57 lsmod | grep pvrsrvkm > /dev/null
58
59 if [ "$?" != "0" ]
60 then
61 insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
62
63 if [ "$?" != "0" ]
64 then
65 echo "Could not find pvrsrvkm driver"
66 exit 1
67 fi
68 fi
69
70 modprobe bufferclass_ti
71
72 pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
73 bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
74
75 if [ -e /dev/pvrsrvkm ] ; then
76 rm -f /dev/pvrsrvkm
77 fi
78
79 mknod /dev/pvrsrvkm c $pvr_maj 0
80 chmod 666 /dev/pvrsrvkm
81
82 touch /etc/powervr-esrev
83
84 SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
85}
86
87sgxfinish () {
88 # Fix up a bug in opkg
89 if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
90 cd /usr/lib
91 ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
92 fi
93
94 if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
95 echo -n "Starting SGX fixup for"
96 echo " ES${ES_REVISION}.x"
97 cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
98 cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
99 echo "${ES_REVISION}" > /etc/powervr-esrev
100 fi
101
102 if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi
103}
104
105case $CPUTYPE in
106"OMAP3530")
107 sgxprepare
108
109 devmem2 0x48004B48 w 0x2 > /dev/null
110 devmem2 0x48004B10 w 0x1 > /dev/null
111 devmem2 0x48004B00 w 0x2 > /dev/null
112
113 ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
114
115 sgxfinish
116 ;;
117"TI33XX")
118 sgxprepare
119
120 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
121
122 sgxfinish
123 ;;
124"TI43XX")
125 sgxprepare
126
127 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
128
129 sgxfinish
130 ;;
131"TI816x")
132 sgxprepare
133
134 devmem2 0x48180F04 w 0x0 > /dev/null
135 devmem2 0x48180900 w 0x2 > /dev/null
136 devmem2 0x48180920 w 0x2 > /dev/null
137
138 ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
139
140 sgxfinish
141 ;;
142*)
143 echo No SGX hardware, not starting PVR
144 ;;
145esac
diff --git a/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb b/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
deleted file mode 100644
index e466aab9..00000000
--- a/recipes-graphics/libgles/libgles-omap3_4.08.00.01.bb
+++ /dev/null
@@ -1,74 +0,0 @@
1require libgles-omap3.inc
2
3LICENSE = "TI-TSPA"
4
5BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
6BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
7BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
8BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
9
10PLATFORM = "LinuxARMV7"
11PVR_INIT = "pvrsrvctl"
12
13# download required binary distribution from:
14# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
15# see libgles-omap3.inc for detailed installation instructions
16
17SGXPV = "4_08_00_01"
18IMGPV = "1.9.2139099"
19BINFILE = "Graphics_SDK_setuplinux_${SGXPV}.bin"
20TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
21SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
22 file://cputype \
23 file://rc.pvr \
24 file://rc_dri.pvr \
25 file://sample.desktop \
26 file://99-bufferclass.rules \
27"
28
29SRC_URI[md5sum] = "dd0d994a48ecc4293f272a1fddddf159"
30SRC_URI[sha256sum] = "fd721288c95314e0d676dd89462e1dec994e185cb608bcb8ac4a4b5809f9693a"
31
32S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
33
34LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES', 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
35
36do_configure_append() {
37
38 # Change PVR server's user mode library to point to DRI
39 for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
40 if [ "$drifile" != "" ]
41 then
42 dir=$(dirname ${drifile})
43 if [ "$SUPPORT_XORG" = "1" ]
44 then
45 mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
46 else
47 rm -rf ${dir}/libsrv_um_dri.so
48 fi
49 fi
50
51 done
52}
53
54do_install_append() {
55
56 # In this version of the graphics SDK the following directories do not exist:
57 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h (doesn't exist)
58 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltypes.h (doesn't exist)
59 # Therefore, need to copy these files manually at the only location that they do exist
60 cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
61 cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
62
63 rm ${D}${sysconfdir}/init.d/pvr-init
64
65 if [ "$SUPPORT_XORG" = "1" ]; then
66 cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
67 else
68 cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
69 fi
70
71}
72
73RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
74RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
diff --git a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb b/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
deleted file mode 100644
index f4cd9aec..00000000
--- a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
+++ /dev/null
@@ -1,74 +0,0 @@
1require libgles-omap3.inc
2
3LICENSE = "TI-TSPA"
4
5BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
6BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
7BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
8BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
9
10PLATFORM = "LinuxARMV7"
11PVR_INIT = "pvrsrvctl"
12
13# download required binary distribution from:
14# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
15# see libgles-omap3.inc for detailed installation instructions
16
17SGXPV = "4_08_00_02"
18IMGPV = "1.9.2188537"
19BINFILE = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
20TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
21SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
22 file://cputype \
23 file://rc.pvr \
24 file://rc_dri.pvr \
25 file://sample.desktop \
26 file://99-bufferclass.rules \
27"
28
29SRC_URI[md5sum] = "0efa3a38266e6f41f8cc4fad0187f0d6"
30SRC_URI[sha256sum] = "c732044b515a598e1fab661b7463aa9c53d4fa37f4980dfa85cd02b7468d0cd9"
31
32S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
33
34LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES', 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
35
36do_configure_append() {
37
38 # Change PVR server's user mode library to point to DRI
39 for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
40 if [ "$drifile" != "" ]
41 then
42 dir=$(dirname ${drifile})
43 if [ "$SUPPORT_XORG" = "1" ]
44 then
45 mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
46 else
47 rm -rf ${dir}/libsrv_um_dri.so
48 fi
49 fi
50
51 done
52}
53
54do_install_append() {
55
56 # In this version of the graphics SDK the following directories do not exist:
57 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h (doesn't exist)
58 # /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltypes.h (doesn't exist)
59 # Therefore, need to copy these files manually at the only location that they do exist
60 cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
61 cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
62
63 rm ${D}${sysconfdir}/init.d/pvr-init
64
65 if [ "$SUPPORT_XORG" = "1" ]; then
66 cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
67 else
68 cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
69 fi
70
71}
72
73RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
74RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
diff --git a/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb b/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
deleted file mode 100644
index 22e510bf..00000000
--- a/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
+++ /dev/null
@@ -1,50 +0,0 @@
1require libgles-omap3-no-x.inc
2
3LICENSE = "TI-TSPA"
4
5PR = "${INC_PR}.2"
6
7BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
8BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
9BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
10BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
11BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
12
13PLATFORM = "LinuxARMV7"
14PVR_INIT = "pvrsrvctl"
15
16SGXPV = "5_00_00_01"
17IMGPV = "1.10.2359475"
18
19TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
20
21BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_alpha_hardfp_minimal_demos.bin"
22MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
23SHA256SUM_HARDFP = "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385e0"
24
25# For now we only have hardfp version
26python __anonymous() {
27 tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
28 if not tunes:
29 return
30 pkgn = bb.data.getVar("PN", d, 1)
31 pkgv = bb.data.getVar("PV", d, 1)
32 if "callconvention-hard" not in tunes:
33 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
34 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
35}
36
37BINFILE := "${BINFILE_HARDFP}"
38
39SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
40 file://cputype \
41 file://rc.pvr \
42 file://99-bufferclass.rules \
43"
44
45SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
46SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
47
48S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
49
50LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
diff --git a/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb b/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb
deleted file mode 100644
index 607b44a3..00000000
--- a/recipes-graphics/libgles/libgles-omap3_5.01.00.01.bb
+++ /dev/null
@@ -1,50 +0,0 @@
1require libgles-omap3-no-x.inc
2
3LICENSE = "TI-TSPA"
4
5PR = "${INC_PR}.2"
6
7BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
8BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
9BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
10BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
11BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
12
13PLATFORM = "LinuxARMV7"
14PVR_INIT = "pvrsrvctl"
15
16SGXPV = "5_01_00_01"
17IMGPV = "1.10.2359475"
18
19TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
20
21BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
22MD5SUM_HARDFP = "0ee7d59808330d442a51c0990c2cb30e"
23SHA256SUM_HARDFP = "769daae439677a7a85bbbced14cee4f85b19823e0b99560078d0a864c525c128"
24
25# For now we only have hardfp version
26python __anonymous() {
27 tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
28 if not tunes:
29 return
30 pkgn = bb.data.getVar("PN", d, 1)
31 pkgv = bb.data.getVar("PV", d, 1)
32 if "callconvention-hard" not in tunes:
33 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
34 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
35}
36
37BINFILE := "${BINFILE_HARDFP}"
38
39SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
40 file://cputype \
41 file://rc.pvr \
42 file://99-bufferclass.rules \
43"
44
45SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
46SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
47
48S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
49
50LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"