Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mihini-dev] Accessing /dev/spidev* devices through LUA mihini applications.

Hello there,

I've so far interfaced nrf24l01 module to raspberry pi directly. Then I've compiled the rf24 and rf24network libraries as shared libraries and through LUA C bindings i can access the module and everything works when i log in to rapsberryPI (Mihini Host)  through KONEKI LDT as root. But whenever I try to run it as normal user, i get a "Segmentation fault", and I have found out that even a C/C++ application I need to execute as root in order to get the /dev/spidev* s work, otherwise it gives "Segmentation fault" error.
For the development process I can run as root but when I try to install the LUA application as  MIHINI application still the error remains.
I tried changing the udev rules to change access permissions of /dev/spidev* s too. But still no success.
Any suggestions as to how I can run MIHINI lua applications as root?

Regards.
Rajitha.

Back to the top