0104-gfx-settings-for-GfA.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. From f5e8b3a24e47726a6241594e0ade2da8811c8920 Mon Sep 17 00:00:00 2001
  2. From: Reinhard Russinger <reinhard@russinger.at>
  3. Date: Thu, 26 Dec 2019 17:05:20 +0000
  4. Subject: [PATCH] gfx-settings for GfA
  5. ---
  6. package/ti-gfx/Config.in | 10 ++++------
  7. package/ti-gfx/S80ti-gfx | 10 ++++++++++
  8. package/ti-gfx/esrev.sh | 3 +--
  9. package/ti-gfx/powervr.ini | 4 +++-
  10. package/ti-gfx/ti-gfx.mk | 4 ++--
  11. 5 files changed, 20 insertions(+), 11 deletions(-)
  12. diff --git a/package/ti-gfx/Config.in b/package/ti-gfx/Config.in
  13. index 76aabcb..6ec2f23 100644
  14. --- a/package/ti-gfx/Config.in
  15. +++ b/package/ti-gfx/Config.in
  16. @@ -1,7 +1,6 @@
  17. config BR2_PACKAGE_TI_GFX
  18. bool "ti-gfx"
  19. depends on BR2_LINUX_KERNEL && BR2_TOOLCHAIN_USES_GLIBC && BR2_arm
  20. - depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
  21. select BR2_HOSTARCH_NEEDS_IA32_LIBS
  22. select BR2_PACKAGE_HAS_LIBEGL
  23. select BR2_PACKAGE_HAS_LIBGLES
  24. @@ -32,9 +31,8 @@ config BR2_PACKAGE_PROVIDES_POWERVR
  25. config BR2_PACKAGE_TI_GFX_DEBUG
  26. bool "enable debug support"
  27. help
  28. - Turns on debugging in the kernel module, install libraries
  29. - built with debugging enabled, installs various tests and
  30. - installs esrev script.
  31. + Turns on debugging in the kernel module, install libraries built with
  32. + debugging enabled, installs various tests and installs esrev script.
  33. config BR2_PACKAGE_TI_GFX_DEMOS
  34. bool "install demos"
  35. @@ -51,8 +49,8 @@ choice
  36. prompt "Target"
  37. default BR2_PACKAGE_TI_GFX_ES3
  38. help
  39. - Select the SOC for which you would like to install
  40. - drivers. Please use the chart at
  41. + Select the SOC for which you would like to install drivers. Please use the
  42. + chart at
  43. http://processors.wiki.ti.com/index.php/OMAP35x_Graphics_SDK_Getting_Started_Guide
  44. config BR2_PACKAGE_TI_GFX_ES3
  45. diff --git a/package/ti-gfx/S80ti-gfx b/package/ti-gfx/S80ti-gfx
  46. index fc5999a..a204815 100644
  47. --- a/package/ti-gfx/S80ti-gfx
  48. +++ b/package/ti-gfx/S80ti-gfx
  49. @@ -3,6 +3,8 @@
  50. start() {
  51. echo "ti-gfx: starting pvr driver"
  52. + TMPFB=`mktemp`
  53. + cat /dev/fb0 > $TMPFB
  54. BITSPERPIXEL="$(fbset | awk '/geom/ {print $6}')"
  55. YRES="$(fbset | awk '/geom/ {print $3}')"
  56. # Set RGBA ordering to something the drivers like
  57. @@ -22,6 +24,14 @@ start() {
  58. mknod /dev/pvrsrvkm c $pvr_maj 0
  59. chmod 600 /dev/pvrsrvkm
  60. + #-- cursor off
  61. + echo -e "\033[?25l\033[9;0]\033[14;0]" > /dev/tty0
  62. + # -- disa screensaver
  63. + echo 0 > /sys/class/graphics/fb0/blank
  64. +
  65. + cat $TMPFB > /dev/fb0
  66. + rm $TMPFB
  67. +
  68. if ! /usr/bin/pvrsrvctl --start --no-module; then
  69. echo "ti-gfx: unable to start server"
  70. fi
  71. diff --git a/package/ti-gfx/esrev.sh b/package/ti-gfx/esrev.sh
  72. index 8109334..6220d44 100644
  73. --- a/package/ti-gfx/esrev.sh
  74. +++ b/package/ti-gfx/esrev.sh
  75. @@ -48,8 +48,7 @@ case $CPUTYPE in
  76. devmem 0x48180900 w 0x2
  77. devmem 0x48180920 w 0x2
  78. - ES_REVISION="$(devmem 0x56000014 | sed -e s:0x00010205:6: \
  79. - -e s:0x00010201:3: -e s:0x00010003:2:)"
  80. + ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
  81. ;;
  82. *)
  83. echo Unable to determine SGX hardware
  84. diff --git a/package/ti-gfx/powervr.ini b/package/ti-gfx/powervr.ini
  85. index 8d2d853..cceecdd 100644
  86. --- a/package/ti-gfx/powervr.ini
  87. +++ b/package/ti-gfx/powervr.ini
  88. @@ -1,2 +1,4 @@
  89. [default]
  90. -WindowSystem=libpvrPVR2D_FRONTWSEGL.so
  91. +#WindowSystem=libpvrPVR2D_FRONTWSEGL.so
  92. +WindowSystem=libpvrPVR2D_FLIPWSEGL.so
  93. +ParamBufferSize=16777216
  94. diff --git a/package/ti-gfx/ti-gfx.mk b/package/ti-gfx/ti-gfx.mk
  95. index 9fad553..428878a 100644
  96. --- a/package/ti-gfx/ti-gfx.mk
  97. +++ b/package/ti-gfx/ti-gfx.mk
  98. @@ -94,8 +94,8 @@ TI_GFX_HDR_DIRS = OGLES2/EGL OGLES2/EWS OGLES2/GLES2 OGLES2/KHR \
  99. OGLES/GLES bufferclass_ti/ pvr2d/ wsegl/
  100. define TI_GFX_EXTRACT_CMDS
  101. - chmod +x $(TI_GFX_DL_DIR)/$(TI_GFX_SOURCE)
  102. - printf "Y\nY\n qY\n\n" | $(TI_GFX_DL_DIR)/$(TI_GFX_SOURCE) \
  103. + chmod +x $(DL_DIR)/$(TI_GFX_SOURCE)
  104. + printf "Y\nY\n qY\n\n" | $(DL_DIR)/$(TI_GFX_SOURCE) \
  105. --prefix $(@D) \
  106. --mode console
  107. endef
  108. --
  109. 2.7.4