I have just built fresh kernel, dtb, u-boot and sgx as per
RCN eewiki and I have also built Qt 5.6.2.
Everything is working correctly except for one problem which I do not understand and hope somebody could explain.
After installing sgx drivers and a reboot I have everything as per instructions:
lsmod | grep omaplfb
omaplfb 12356 0
tilcdc 26717 1 omaplfb
pvrsrvkm 157212 1 omaplfb
but my Qt Quick programs only work when run as root (sudo).
Looking at the sgx-startup script, /dev/pvrsvrkm should be set with 666 permissions, but after startup this is what I get:
ls -al /dev/pvrsrvkm
crw------- 1 root root 247, 0 Nov 27 20:54 /dev/pvrsrvkm
When I run:
sudo /etc/init.d/sgx-startup.sh stop
sudo /etc/init.d/sgx-startup.sh start
I get:
sgx: Starting PVR
/usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=129)
ls -al /dev/pvrsrvkm
crw-rw-rw- 1 root root 247, 0 Nov 27 21:48 /dev/pvrsrvkm
Permissions are now correct for running program as normal user.
my programs run correctly with platform eglfs - which is what I want.
My questions:
1. Why does sgx-startup.sh not set the permissions correctly on boot and is there a way to solve this?
Thanks in advance
Rob