Skip to main content

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

Could try to manually change the device permission to allow to everybody and check it that works. If so, you can try to resolve the issue with udev or anything to resolve the permissions on your system.

So the test is:

Type ‘chmod a+rwx /dev/spidev*’ in a shell, as root. So that  just before starting your application. Beware this change will most likely do not survive a reboot, so you’ll have to do it again after a reboot..

Then launch your application.

 

Let me it that works.

 

Thx,

Cuero

 

From: mihini-dev-bounces@xxxxxxxxxxx [mailto:mihini-dev-bounces@xxxxxxxxxxx] On Behalf Of Rajitha Karunarathne
Sent: Monday, February 24, 2014 9:42 AM
To: mihini-dev@xxxxxxxxxxx
Subject: [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