123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- From f5e8b3a24e47726a6241594e0ade2da8811c8920 Mon Sep 17 00:00:00 2001
- From: Reinhard Russinger <reinhard@russinger.at>
- Date: Thu, 26 Dec 2019 17:05:20 +0000
- Subject: [PATCH] gfx-settings for GfA
- ---
- package/ti-gfx/Config.in | 10 ++++------
- package/ti-gfx/S80ti-gfx | 10 ++++++++++
- package/ti-gfx/esrev.sh | 3 +--
- package/ti-gfx/powervr.ini | 4 +++-
- package/ti-gfx/ti-gfx.mk | 4 ++--
- 5 files changed, 20 insertions(+), 11 deletions(-)
- diff --git a/package/ti-gfx/Config.in b/package/ti-gfx/Config.in
- index 76aabcb..6ec2f23 100644
- --- a/package/ti-gfx/Config.in
- +++ b/package/ti-gfx/Config.in
- @@ -1,7 +1,6 @@
- config BR2_PACKAGE_TI_GFX
- bool "ti-gfx"
- depends on BR2_LINUX_KERNEL && BR2_TOOLCHAIN_USES_GLIBC && BR2_arm
- - depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
- select BR2_HOSTARCH_NEEDS_IA32_LIBS
- select BR2_PACKAGE_HAS_LIBEGL
- select BR2_PACKAGE_HAS_LIBGLES
- @@ -32,9 +31,8 @@ config BR2_PACKAGE_PROVIDES_POWERVR
- config BR2_PACKAGE_TI_GFX_DEBUG
- bool "enable debug support"
- help
- - Turns on debugging in the kernel module, install libraries
- - built with debugging enabled, installs various tests and
- - installs esrev script.
- + Turns on debugging in the kernel module, install libraries built with
- + debugging enabled, installs various tests and installs esrev script.
-
- config BR2_PACKAGE_TI_GFX_DEMOS
- bool "install demos"
- @@ -51,8 +49,8 @@ choice
- prompt "Target"
- default BR2_PACKAGE_TI_GFX_ES3
- help
- - Select the SOC for which you would like to install
- - drivers. Please use the chart at
- + Select the SOC for which you would like to install drivers. Please use the
- + chart at
- http://processors.wiki.ti.com/index.php/OMAP35x_Graphics_SDK_Getting_Started_Guide
-
- config BR2_PACKAGE_TI_GFX_ES3
- diff --git a/package/ti-gfx/S80ti-gfx b/package/ti-gfx/S80ti-gfx
- index fc5999a..a204815 100644
- --- a/package/ti-gfx/S80ti-gfx
- +++ b/package/ti-gfx/S80ti-gfx
- @@ -3,6 +3,8 @@
- start() {
- echo "ti-gfx: starting pvr driver"
-
- + TMPFB=`mktemp`
- + cat /dev/fb0 > $TMPFB
- BITSPERPIXEL="$(fbset | awk '/geom/ {print $6}')"
- YRES="$(fbset | awk '/geom/ {print $3}')"
- # Set RGBA ordering to something the drivers like
- @@ -22,6 +24,14 @@ start() {
- mknod /dev/pvrsrvkm c $pvr_maj 0
- chmod 600 /dev/pvrsrvkm
-
- + #-- cursor off
- + echo -e "\033[?25l\033[9;0]\033[14;0]" > /dev/tty0
- + # -- disa screensaver
- + echo 0 > /sys/class/graphics/fb0/blank
- +
- + cat $TMPFB > /dev/fb0
- + rm $TMPFB
- +
- if ! /usr/bin/pvrsrvctl --start --no-module; then
- echo "ti-gfx: unable to start server"
- fi
- diff --git a/package/ti-gfx/esrev.sh b/package/ti-gfx/esrev.sh
- index 8109334..6220d44 100644
- --- a/package/ti-gfx/esrev.sh
- +++ b/package/ti-gfx/esrev.sh
- @@ -48,8 +48,7 @@ case $CPUTYPE in
- devmem 0x48180900 w 0x2
- devmem 0x48180920 w 0x2
-
- - ES_REVISION="$(devmem 0x56000014 | sed -e s:0x00010205:6: \
- - -e s:0x00010201:3: -e s:0x00010003:2:)"
- + ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
- ;;
- *)
- echo Unable to determine SGX hardware
- diff --git a/package/ti-gfx/powervr.ini b/package/ti-gfx/powervr.ini
- index 8d2d853..cceecdd 100644
- --- a/package/ti-gfx/powervr.ini
- +++ b/package/ti-gfx/powervr.ini
- @@ -1,2 +1,4 @@
- [default]
- -WindowSystem=libpvrPVR2D_FRONTWSEGL.so
- +#WindowSystem=libpvrPVR2D_FRONTWSEGL.so
- +WindowSystem=libpvrPVR2D_FLIPWSEGL.so
- +ParamBufferSize=16777216
- diff --git a/package/ti-gfx/ti-gfx.mk b/package/ti-gfx/ti-gfx.mk
- index 9fad553..428878a 100644
- --- a/package/ti-gfx/ti-gfx.mk
- +++ b/package/ti-gfx/ti-gfx.mk
- @@ -94,8 +94,8 @@ TI_GFX_HDR_DIRS = OGLES2/EGL OGLES2/EWS OGLES2/GLES2 OGLES2/KHR \
- OGLES/GLES bufferclass_ti/ pvr2d/ wsegl/
-
- define TI_GFX_EXTRACT_CMDS
- - chmod +x $(TI_GFX_DL_DIR)/$(TI_GFX_SOURCE)
- - printf "Y\nY\n qY\n\n" | $(TI_GFX_DL_DIR)/$(TI_GFX_SOURCE) \
- + chmod +x $(DL_DIR)/$(TI_GFX_SOURCE)
- + printf "Y\nY\n qY\n\n" | $(DL_DIR)/$(TI_GFX_SOURCE) \
- --prefix $(@D) \
- --mode console
- endef
- --
- 2.7.4
|