[meta-ti] [PATCH 2/4] libgles-omap3: Add new 5.00.00.01 Graphics SDK alpha release

Cooper Jr., Franklin fcooper at ti.com
Fri Nov 22 06:08:13 PST 2013



> -----Original Message-----
> From: Dmytriyenko, Denys
> Sent: Thursday, November 21, 2013 8:57 PM
> To: Cooper Jr., Franklin
> Cc: meta-ti at yoctoproject.org
> Subject: Re: [meta-ti] [PATCH 2/4] libgles-omap3: Add new 5.00.00.01 Graphics
> SDK alpha release
> 
> I've made the following changes to patches #2, #3 and #4:
> 
> * Remove x11 portion
> * Give warning and skip when building w/o hardfp
> * Correct IMGPV version
> * Remove deprecated comment for manual download
> * Fix indentation and mixing spaces with tabs
[Franklin] Sorry about this one...
> * General cleanup
> 
> I kept x11 changes in patch #1 to .inc files.
[Franklin] Overall thanks for fixing these patches up and committing them.
> 
> --
> Denys
> 
> 
> On Tue, Nov 19, 2013 at 10:59:09AM -0600, Franklin S. Cooper Jr wrote:
> > * A new Graphics SDK that support 3.12 kernel for am335x
> > * This Graphics SDK also adds initial support for AM43x
> >
> > Signed-off-by: Franklin S. Cooper Jr <fcooper at ti.com>
> > ---
> >  .../rc.pvr                                         |   28 +++++++++++++------
> >  .../rc_dri.pvr                                     |   28 ++++++++++++-------
> >  ...08.00.02.bb => libgles-omap3-x11_5.00.00.01.bb} |   29 +++++++++++++-
> -----
> >  ...3_4.09.00.01.bb => libgles-omap3_5.00.00.01.bb} |   24 +++++++---------
> >  4 files changed, 68 insertions(+), 41 deletions(-)
> >  copy recipes-graphics/libgles/{libgles-omap3-x11-4.09.00.01 => libgles-
> omap3-5.00.00.01}/rc.pvr (87%)
> >  mode change 100644 => 100755
> >  copy recipes-graphics/libgles/{libgles-omap3-x11-4.09.00.01 => libgles-
> omap3-5.00.00.01}/rc_dri.pvr (88%)
> >  mode change 100644 => 100755
> >  copy recipes-graphics/libgles/{libgles-omap3_4.08.00.02.bb => libgles-
> omap3-x11_5.00.00.01.bb} (72%)
> >  copy recipes-graphics/libgles/{libgles-omap3_4.09.00.01.bb => libgles-
> omap3_5.00.00.01.bb} (42%)
> >
> > diff --git a/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
> b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
> > old mode 100644
> > new mode 100755
> > similarity index 87%
> > copy from recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
> > copy to recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
> > index 590d06c..830d602
> > --- a/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
> > +++ b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc.pvr
> > @@ -41,13 +41,20 @@ 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
> > +	lsmod | grep pvrsrvkm > /dev/null
> > +
> > +
> > +	if [ "$?" != "0" ]
> > +	then
> > +		insmod $(busybox find /lib/modules/$(uname -r) -name
> "pvrsrvkm.ko")
> > +
> > +		if [ "$?" != "0" ]
> > +		then
> > +			echo "Could not find pvrsrvkm driver"
> > +			exit 1
> > +		fi
> > +	fi
> >
> >  	modprobe omaplfb
> >  	modprobe bufferclass_ti
> > @@ -100,8 +107,12 @@ case $CPUTYPE in
> >  "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
> > +	;;
> > +"TI43XX")
> > +	sgxprepare
> >
> >  	ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: |
> tail -n1 | awk -F': ' '{print $2}')"
> >
> > @@ -122,4 +133,3 @@ case $CPUTYPE in
> >  	echo No SGX hardware, not starting PVR
> >  	;;
> >  esac
> > -
> > diff --git a/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
> b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
> > old mode 100644
> > new mode 100755
> > similarity index 88%
> > copy from recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
> > copy to recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
> > index bc44937..847e7a9
> > --- a/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
> > +++ b/recipes-graphics/libgles/libgles-omap3-5.00.00.01/rc_dri.pvr
> > @@ -54,13 +54,18 @@ sgxprepare () {
> >
> >  	modprobe drm
> >
> > -	insmod $(busybox find /lib/modules/$(uname -r) -name
> "pvrsrvkm.ko")
> > +	lsmod | grep pvrsrvkm > /dev/null
> >
> > -    if [ "$?" != "0" ]
> > -    then
> > -        echo "Could not find pvrsrvkm driver"
> > -        exit 1
> > -    fi
> > +	if [ "$?" != "0" ]
> > +	then
> > +		insmod $(busybox find /lib/modules/$(uname -r) -name
> "pvrsrvkm.ko")
> > +
> > +		if [ "$?" != "0" ]
> > +		then
> > +			echo "Could not find pvrsrvkm driver"
> > +			exit 1
> > +		fi
> > +	fi
> >
> >  	modprobe bufferclass_ti
> >
> > @@ -112,13 +117,17 @@ case $CPUTYPE in
> >  "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
> >  	;;
> > +"TI43XX")
> > +	sgxprepare
> > +
> > +    ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -
> n1 | awk -F': ' '{print $2}')"
> > +
> > +	sgxfinish
> > +	;;
> >  "TI816x")
> >  	sgxprepare
> >
> > @@ -134,4 +143,3 @@ case $CPUTYPE in
> >  	echo No SGX hardware, not starting PVR
> >  	;;
> >  esac
> > -
> > diff --git a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb b/recipes-
> graphics/libgles/libgles-omap3-x11_5.00.00.01.bb
> > similarity index 72%
> > copy from recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
> > copy to recipes-graphics/libgles/libgles-omap3-x11_5.00.00.01.bb
> > index e57ba42..df53306 100644
> > --- a/recipes-graphics/libgles/libgles-omap3_4.08.00.02.bb
> > +++ b/recipes-graphics/libgles/libgles-omap3-x11_5.00.00.01.bb
> > @@ -1,13 +1,16 @@
> > -require libgles-omap3.inc
> > +require libgles-omap3-x11.inc
> >
> >  LICENSE = "TSPA"
> >
> > +PR = "${INC_PR}.0"
> > +
> >  DEFAULT_PREFERENCE = "-1"
> >
> > -BINLOCATION_omap3  = "${S}/gfx_rel_es3.x"
> > +BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
> >  BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
> >  BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
> >  BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
> > +BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
> >
> >  PLATFORM = "LinuxARMV7"
> >  PVR_INIT = "pvrsrvctl"
> > @@ -16,11 +19,19 @@ PVR_INIT = "pvrsrvctl"
> >  # http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.
> html
> >  # see libgles-omap3.inc for detailed installation instructions
> >
> > -SGXPV = "4_08_00_02"
> > +SGXPV = "5_00_00_01"
> >  IMGPV = "1.9.2188537"
> > -BINFILE = "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
> > +
> >  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> > -SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports
> /${BINFILE} \
> > +
> > +BINFILE_HARDFP =
> "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos_alpha.bin "
> > +MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
> > +SHA256SUM_HARDFP =
> "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385
> e0"
> > +
> > +# For now we only have hardfp version
> > +BINFILE := "${BINFILE_HARDFP}"
> > +
> > +SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
> >             file://cputype \
> >             file://rc.pvr \
> >             file://rc_dri.pvr \
> > @@ -28,12 +39,12 @@ SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gf
> >             file://99-bufferclass.rules  \
> >  "
> >
> > -SRC_URI[md5sum] = "0efa3a38266e6f41f8cc4fad0187f0d6"
> > -SRC_URI[sha256sum] =
> "c732044b515a598e1fab661b7463aa9c53d4fa37f4980dfa85cd02b7468d0cd
> 9"
> > +SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
> > +SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
> >
> >  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> >
> > -LIBGLESWINDOWSYSTEM ?= "${@base_contains('DISTRO_FEATURES',
> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
> > +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_DRIWSEGL.so"
> >
> >  do_configure_append() {
> >
> > @@ -62,7 +73,7 @@ do_install_append() {
> >      cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> >      cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> >
> > -    rm ${D}${sysconfdir}/init.d/pvr-init
> > +    rm -f ${D}${sysconfdir}/init.d/pvr-init
> >
> >      if [ "$SUPPORT_XORG" = "1" ]; then
> >          cp -pP ${WORKDIR}/rc_dri.pvr ${D}${sysconfdir}/init.d/pvr-init
> > diff --git a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb b/recipes-
> graphics/libgles/libgles-omap3_5.00.00.01.bb
> > similarity index 42%
> > copy from recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > copy to recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
> > index d094b5c..de6ba55 100644
> > --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > +++ b/recipes-graphics/libgles/libgles-omap3_5.00.00.01.bb
> > @@ -2,7 +2,7 @@ require libgles-omap3-no-x.inc
> >
> >  LICENSE = "TSPA"
> >
> > -PR = "${INC_PR}.2"
> > +PR = "${INC_PR}.0"
> >
> >  DEFAULT_PREFERENCE = "-1"
> >
> > @@ -10,6 +10,7 @@ BINLOCATION_omap3 = "${S}/gfx_rel_es3.x"
> >  BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
> >  BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
> >  BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
> > +BINLOCATION_ti43x = "${S}/gfx_rel_es9.x"
> >
> >  PLATFORM = "LinuxARMV7"
> >  PVR_INIT = "pvrsrvctl"
> > @@ -18,30 +19,27 @@ PVR_INIT = "pvrsrvctl"
> >  # http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.
> html
> >  # see libgles-omap3.inc for detailed installation instructions
> >
> > -SGXPV = "4_09_00_01"
> > +SGXPV = "5_00_00_01"
> >  IMGPV = "1.9.2188537"
> >
> >  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> >
> > -# Select the corresponding hardfp/softfp filename and checksums based on
> tune flags
> > -BINFILE_SOFTFP =
> "Graphics_SDK_setuplinux_${SGXPV}_minimal_demos.bin"
> > -MD5SUM_SOFTFP = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> > -SHA256SUM_SOFTFP =
> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f24924764
> 7"
> >
> > -BINFILE_HARDFP =
> "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos.bin"
> > -MD5SUM_HARDFP = "c9f656dce062d1ab10afffd4dfb71b67"
> > -SHA256SUM_HARDFP =
> "dbfeba8e1298f139495816334edec1455e6b49b1e11bd1b2aa0a888e5788bb
> 6b"
> > +BINFILE_HARDFP =
> "Graphics_SDK_setuplinux_${SGXPV}_alpha_hardfp_minimal_demos.bin"
> > +MD5SUM_HARDFP = "ae6125d7f8a313ea5c02afded893052d"
> > +SHA256SUM_HARDFP =
> "c2782a2f85024741722b936ec9dca66b858ae8561aa71b693f11e12d8c0385
> e0"
> >
> > -BINFILE = "${@base_contains('TUNE_FEATURES', 'callconvention-hard',
> '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"
> > +# For now we only have hardfp version
> > +BINFILE := "${BINFILE_HARDFP}"
> >
> > -SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports
> /${BINFILE} \
> > +SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE} \
> >             file://cputype \
> >             file://rc.pvr \
> >             file://99-bufferclass.rules  \
> >  "
> >
> > -SRC_URI[md5sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-
> hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
> > -SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES',
> 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}',
> d)}"
> > +SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
> > +SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
> >
> >  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> >
> > --
> > 1.7.0.4
> >
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti


More information about the meta-ti mailing list