[Openpvrsgx-devgroup] trying to get SGX 1.14 running on DM3730 (SGX530)

Adam Ford aford173 at gmail.com
Sun Nov 24 21:21:09 CET 2019


On Sun, Nov 24, 2019 at 1:46 PM Adam Ford <aford173 at gmail.com> wrote:
>
> On Sun, Nov 24, 2019 at 12:56 PM H. Nikolaus Schaller <hns at goldelico.com> wrote:
> >
> >
> > > Am 24.11.2019 um 19:28 schrieb Adam Ford <aford173 at gmail.com>:
> > >
> > > On Sun, Nov 24, 2019 at 11:57 AM H. Nikolaus Schaller <hns at goldelico.com> wrote:
> > >>
> > >>
> > >>> Am 24.11.2019 um 18:16 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> > >>>
> > >>> Hi Adam,
> > >>>
> > >>>> Am 24.11.2019 um 15:12 schrieb Adam Ford <aford173 at gmail.com>:
> > >>>>
> > >>>> On Sat, Nov 23, 2019 at 5:27 PM Adam Ford <aford173 at gmail.com> wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> Thanks for all your help.  I don't know what I did, but I have it
> > >>>>> working now.  :-)
> > >>>>
> > >>>> Nikolaus,
> > >>>> Out of curiosity, can you share the contents of /etc/powervr.ini?
> > >>>
> > >>> I use this one: http://git.goldelico.com/?p=letux-rootfs.git;a=blob;f=packages/letux-pvrsgx-1.14/etc/powervr.ini;h=4cc2573879d4bc5a3cc3f8a11d9da09b68f45722;hb=d7b8773676cc9deb468fb807eed01c823c1228d1
> > >>>
> > >>> [default]
> > >>> WindowSystem=libpvrDRMWSEGL.so
> > >>> DefaultPixelFormat=RGB888
> > >>>
> > >>>>
> > >>>> I was messing around with different revisions of the stuff, and now
> > >>>> I've got my board into some mode where gles1test1 starts and dies
> > >>>> right away.  I'm trying to figure out where I broke it.
> > >>>
> > >>> Yes, powervr.ini can be a reason.
> > >>
> > >> After experimenting a little myself, I also ran into an issue that it
> > >> did no longer work:
> > >>
> > >> root at letux:~# gles1test1
> > >> [  344.204145] PVR_K:(Error): DoMapToUser: Error - vmf_insert_mixed failed (100)
> > >> PVR:(Error): PVRPMapKMem: mmap(2) failed: Mapping handle=0xf: TǶP偾 [0, ]
> > >> PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
> > >> 'eglCreateWindowSurface' returned egl error 'EGL_BAD_ALLOC' (0x3003)
> > >> root at letux:~#
> > >>
> > >> It turns out that the "make" and targetfs copy their own version of
> > >> powervr.ini which is:
> > >>
> > >> root at letux:~# cat /etc/powervr.ini
> > >> [default]
> > >> #WindowSystem=libpvrws_WAYLAND.so
> > >> root at letux:~#
> > >>
> > >> That one fails...
> > >>
> > >> So I have to rework my installer scripts to not copy /etc/powervr.ini from
> > >> the TI package or overwrite afterwards with the required settings.
> > >>
> > >> BR,
> > >> Nikolaus
> > >>
> > >> BTW: I played a little with DDK1.17 and it seems to require a newer libc
> > >> version that what Stretch provides. Buster may be ok.
> > >
> > > I was looking at those.  I have use glibc in my buildroot environment
> > > and noticed the kernel you posted seems to support 1.17.  Do you think
> > > it's safe to build?
> >
> > Well, there is only the DDK code rebased and no modified Makefile to do
> > the same integration that we have for 1.14. Some other item on my long
> > to-do list.
> >
> > If you find time, you could try to copy & modify the 1.14/eurasiakm/Makefile
> > and make it work.
>
> I will start now, but I make no promises as to the outcome. :-)
>

I just copied it, to the 1.17 directory, and it built without error,
but  after installing the 1.17 blobs, I get errors now:

 ./start_pvr.sh
PVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function
ID:3223086861 (strerror returns no value.). [0, ]
PVR:(Error): OpenServices: PVRSRVBridgeCall failed. [0, ]
PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [0, ]
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [0, ]
pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_INIT_FAILURE)
# eglinfo
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
Unable to initialise egl
    egl error 'EGL_NOT_INITIALIZED' (0x3001)
#


> adam
> >
> > BR,
> > Nikolaus
> >
> > _______________________________________________
> > https://github.com/openpvrsgx-devgroup/linux_openpvrsgx
> > openpvrsgx-devgroup mailing list
> > openpvrsgx-devgroup at letux.org
> > http://lists.goldelico.com/mailman/listinfo.cgi/openpvrsgx-devgroup


More information about the openpvrsgx-devgroup mailing list