[Openpvrsgx-devgroup] trying to get SGX 1.14 running on DM3730 (SGX530)
H. Nikolaus Schaller
hns at goldelico.com
Sun Nov 24 18:56:59 CET 2019
> 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.
More information about the openpvrsgx-devgroup
mailing list