This is confusing me even more now - I added a "stat" on /dev/pvrsrvkm in
the sgx-startup.sh, at the end before the "start" finishes and the
permissions areset correctly -
debian@arm:~$ systemctl status sgx-startup
● sgx-startup.service - LSB: Start daemon at boot time
Loaded: loaded (/etc/init.d/sgx-startup.sh; generated; vendor preset:
enabled
Active: active (exited) since Mon 2016-11-28 07:37:30 UTC; 1min 59s ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/sgx-startup.service
Nov 28 07:37:27 arm systemd[1]: Starting LSB: Start daemon at boot time...
Nov 28 07:37:27 arm sgx-startup.sh[363]: sgx: Starting PVR
Nov 28 07:37:30 arm systemd[1]: Started LSB: Start daemon at boot time.
Nov 28 07:37:30 arm sgx-startup.sh[363]: 666 <<<<< just before the script
completes
debian@arm:~$ ls -al /dev/pvrsrvkm
crw------- 1 root root 247, 0 Nov 28 07:37 /dev/pvrsrvkm
but still the permissions are 600 as can be seen above.
Any advice will be greatly appreciated.
Thanks
Rob
On Sunday, 27 November 2016 23:16:25 UTC, Moscowbob wrote:
>
> Thank you Robert but I am not sure what you mean, would you kindly
> clarify.
> As far as I understand the script, you are setting the permissions to 666
> and you also start the service.
> What I do not understand is how and why the permissions are not set when
> the script runs in the first place.
>
> Rob
>
> On Sunday, 27 November 2016 22:03:50 UTC, RobertCNelson wrote:
>>
>> On Sun, Nov 27, 2016 at 3:59 PM, Moscowbob <[email protected]> wrote:
>> >
>> > 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?
>>
>> Oh let's patch that in the sgx-startup.sh script.. Probably after the
>> modprobe/pvrsrvct start..
>>
>> Send me a patch and i'll push it out...
>>
>> Regards,
>>
>> --
>> Robert Nelson
>> https://rcn-ee.com/
>>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/71145c6e-6aa9-43f0-a8c4-190b314fc38e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.