Add AM3 and AM4 which use null_window DRM
cover Add AM3 and AM4 which use null_window DRM
Add AM3 and AM4 which use null_window DRM from SGX DDK.
The kernel module ompadrm-pvr in this patch is built with Eric's version 1 kernel patches
Hongmei Gou (3):
omapdrm-pvr: add AM3 and AM4 which use null_window DRM
omap5-sgx-ddk-um-linux: add AM3 and AM4, and pvr-init to
initialization
libdrm: add ti33x and ti43x to COMPATIBLE_MACHINE
.../powervr-drivers/omapdrm-pvr_1.9.2253347.bb | 28 ++++++++++++++---- recipes-graphics/drm/libdrm_2.4.41.bb | 4 +-- .../libgles/omap5-sgx-ddk-um-linux/dummy.ini | 0 .../libgles/omap5-sgx-ddk-um-linux/powervr.ini | 3 ++ .../libgles/omap5-sgx-ddk-um-linux/rc.pvr | 17 +++++++++++ .../libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb | 33 ++++++++++++++++++++-- 6 files changed, 74 insertions(+), 11 deletions(-) create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/dummy.ini create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/powervr.ini create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/rc.pvr
Signature · 1 line
1.9.1
PATCH 1/3 omapdrm-pvr: add AM3 and AM4 which use null_window DRM
--- .../powervr-drivers/omapdrm-pvr_1.9.2253347.bb | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-)
recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb +22 -6
@@ -3,24 +3,40 @@ HOMEPAGE = "http://git.ti.com" LICENSE = "MIT | GPLv2" LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898" -inherit module +inherit module pkgconfig + +COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" MACHINE_KERNEL_PR_append = "g" PR = "${MACHINE_KERNEL_PR}" -BRANCH = "dra7/k4.1" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +BRANCH_omap-a15 = "dra7/k4.1" +BRANCH_ti33x = "am4/k4.1" +BRANCH_ti43x = "am4/k4.1" SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}" S = "${WORKDIR}/git" -SRCREV = "333ef031a98c0abdd49b6cfac61fbdd8c1d88518" +SRCREV_omap-a15 = "333ef031a98c0abdd49b6cfac61fbdd8c1d88518" +SRCREV_ti33x = "5b26357ef6243e65d431be380103a692bbdce309" +SRCREV_ti43x = "5b26357ef6243e65d431be380103a692bbdce309" + +PVR_NULLDRM_ti33x = "1" +PVR_NULLDRM_ti43x = "1" +PVR_NULLDRM_omap-a15 = "0" + +EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" PVR_NULLDRM=${PVR_NULLDRM}' -EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"' +DEVICE_SUB_DIR_omap-a15 = "omap5430" +DEVICE_SUB_DIR_ti33x = "omap335x" +DEVICE_SUB_DIR_ti43x = "omap437x" do_compile_prepend() { - cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux + cd ${S}/eurasia_km/eurasiacon/build/linux2/${DEVICE_SUB_DIR}_linux } do_install() { - make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install + make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_${DEVICE_SUB_DIR}_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install }
Signature · 1 line
1.9.1
Re: [PATCH 1/3] omapdrm-pvr: add AM3 and AM4 which use null_window DRM
Quoted 10 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../powervr-drivers/omapdrm-pvr_1.9.2253347.bb | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-)recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb +0
-0
recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb HOMEPAGE = "http://git.ti.com" · line 6
Quoted 5 lines
recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb +1
-1@@ -3,24 +3,40 @@ HOMEPAGE = "http://git.ti.com" LICENSE = "MIT | GPLv2" LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898" -inherit module +inherit module pkgconfig
Why do you need pkgconfig here?
The rest looks good, but we need to bump SRCREV for omap5/dra7 - see my other patch...
Quoted 48 lines
recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb +20
-5+COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" MACHINE_KERNEL_PR_append = "g" PR = "${MACHINE_KERNEL_PR}" -BRANCH = "dra7/k4.1" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +BRANCH_omap-a15 = "dra7/k4.1" +BRANCH_ti33x = "am4/k4.1" +BRANCH_ti43x = "am4/k4.1" SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}" S = "${WORKDIR}/git" -SRCREV = "333ef031a98c0abdd49b6cfac61fbdd8c1d88518" +SRCREV_omap-a15 = "333ef031a98c0abdd49b6cfac61fbdd8c1d88518" +SRCREV_ti33x = "5b26357ef6243e65d431be380103a692bbdce309" +SRCREV_ti43x = "5b26357ef6243e65d431be380103a692bbdce309" + +PVR_NULLDRM_ti33x = "1" +PVR_NULLDRM_ti43x = "1" +PVR_NULLDRM_omap-a15 = "0" + +EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" PVR_NULLDRM=${PVR_NULLDRM}' -EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"' +DEVICE_SUB_DIR_omap-a15 = "omap5430" +DEVICE_SUB_DIR_ti33x = "omap335x" +DEVICE_SUB_DIR_ti43x = "omap437x" do_compile_prepend() { - cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux + cd ${S}/eurasia_km/eurasiacon/build/linux2/${DEVICE_SUB_DIR}_linux } do_install() { - make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install + make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_${DEVICE_SUB_DIR}_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install }Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 2/3 omap5-sgx-ddk-um-linux: add AM3 and AM4, and pvr-init to initialization
In reply to Hongmei Gou* Add AM3 and AM4 which use null_windown DRM
* Add pvr-init to /etc/init.d
--- .../libgles/omap5-sgx-ddk-um-linux/dummy.ini | 0 .../libgles/omap5-sgx-ddk-um-linux/powervr.ini | 3 ++ .../libgles/omap5-sgx-ddk-um-linux/rc.pvr | 17 +++++++++++ .../libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb | 33 ++++++++++++++++++++-- 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/dummy.ini create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/powervr.ini create mode 100644 recipes-graphics/libgles/omap5-sgx-ddk-um-linux/rc.pvr
recipes-graphics/libgles/omap5-sgx-ddk-um-linux/dummy.ini new file +0 -0
recipes-graphics/libgles/omap5-sgx-ddk-um-linux/powervr.ini new file +3 -0
@@ -0,0 +1,3 @@ +[default] +WindowSystem=null_libdrm.so +DisableHWTQTextureUpload=1
recipes-graphics/libgles/omap5-sgx-ddk-um-linux/rc.pvr new file +17 -0
@@ -0,0 +1,17 @@ +#!/bin/bash + +case "$1" in + start) + + echo "Initializing the graphics driver ..." + pvrsrvinit + + ;; + stop) + # Nothing to be done. + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac
recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb +30 -3
@@ -3,12 +3,23 @@ HOMEPAGE = "http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk" LICENSE = "TI-TSPA" LIC_FILES_CHKSUM = "file://OMAP5-Linux-Graphics-DDK-UM-Manifest.doc;md5=360d293df455e4f2d363bb4014a49603" -BRANCH = "master" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +BRANCH_omap-a15 = "master" +BRANCH_ti33x = "am4/k4.1" +BRANCH_ti43x = "am4/k4.1" SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" -SRCREV = "d63cd6469fff610317a8e1c986f227bb3e7922f6" +SRCREV_omap-a15 = "d63cd6469fff610317a8e1c986f227bb3e7922f6" +SRCREV_ti33x = "c30d4b35701e1b88d58a9ae713b2e679298d1a37" +SRCREV_ti43x = "c30d4b35701e1b88d58a9ae713b2e679298d1a37" + +INITSCRIPT_NAME = "pvr-init" +INITSCRIPT_PARAMS = "defaults 30" + +inherit update-rc.d -PR = "r9" +PR = "r10" PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2" RREPLACES_${PN} = "libegl libgles1 libgles2"
@@ -17,13 +28,29 @@ RREPLACES_${PN}-dbg = "libegl-dbg" S = "${WORKDIR}/git" +PVR_INI_FILE_omap-a15 = "dummy.ini" +PVR_INI_FILE_ti33x = "powervr.ini" +PVR_INI_FILE_ti43x = "powervr.ini" + +SRC_URI_append = " \ + file://rc.pvr \ + file://${PVR_INI_FILE} \ +" + do_install () { oe_runmake install DESTDIR=${D} + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init + + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/${PVR_INI_FILE} ${D}${sysconfdir}/powervr.ini } FILES_${PN} = "${bindir}/*" FILES_${PN} += " ${libdir}/*" FILES_${PN} += "${includedir}/* /usr/share/sgx-lib/" +FILES_${PN} += "${sysconfdir}/init.d/pvr-init" +FILES_${PN} += "${sysconfdir}/powervr.ini" INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
1.9.1
PATCH 3/3 libdrm: add ti33x and ti43x to COMPATIBLE_MACHINE
In reply to Hongmei Gou--- recipes-graphics/drm/libdrm_2.4.41.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/drm/libdrm_2.4.41.bb +2 -2
@@ -2,7 +2,7 @@ require recipes-graphics/drm/libdrm.inc FILESEXTRAPATHS_append := ":${COREBASE}/meta/recipes-graphics/drm/libdrm" -COMPATIBLE_MACHINE = "omap-a15" +COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" DEFAULT_PREFERENCE = "-1"
@@ -15,6 +15,6 @@ SRC_URI += "file://installtests-ti.patch \ file://GNU_SOURCE_definition.patch \ " -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
Re: [PATCH 3/3] libdrm: add ti33x and ti43x to COMPATIBLE_MACHINE
Hongmei, Karthik, Nikhil,
Ok, this is not going to scale. Why do we still use an ancient (2.5yo) version of libdrm? As far as I can see, this fork only has couple own patches (test enablement and debianization) and few more backports from upstream.
Please, extract the relevant patches (just kmstest AFAICS) and apply it/them to the latest available upstream version of libdrm. This old version was once a short-term exception to dra7 platform, but with this change it now becomes the default and it has to be done properly then.
Signature · 1 line
Denys
Quoted 34 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- recipes-graphics/drm/libdrm_2.4.41.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-graphics/drm/libdrm_2.4.41.bb +2
-2@@ -2,7 +2,7 @@ require recipes-graphics/drm/libdrm.inc FILESEXTRAPATHS_append := ":${COREBASE}/meta/recipes-graphics/drm/libdrm" -COMPATIBLE_MACHINE = "omap-a15" +COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" DEFAULT_PREFERENCE = "-1"@@ -15,6 +15,6 @@ SRC_URI += "file://installtests-ti.patch \ file://GNU_SOURCE_definition.patch \ " -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" S = "${WORKDIR}/git"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti