Happy new year everyone.

I recently introduced all the previous work from this thread : http://old.nabble.com/RS485-on-the-gumstix-basix-and-verdex-via-direct-IO-td25607594.html

into my standard application and it worked great until the test system ran the application as a non-root user.

my error is :
        open("/dev/mem"): Operation not permitted

I believe this means that my user is not allowed access to the /dev/mem "file".
I presume that there's a sensible way around it, but I don't know what it is.

I did try, against my better judgement, to make /dev/mem world readable and writeable to see if that made a difference. which it didn't!

I even did a
% chown factory.factory /dev/mem
but that didn't help either.

here's the result.
% ls -al /dev/mem
crw-rw-rw-    1 factory  factory    1,   1 Jul  7  2006 mem

I still think it’s a permissions issue, but if changing the permissions and ownership has no effect I'm not 100% sure.


Best regards
 
Matt Bowles
Embedded Systems Engineer
aWma Pty Ltd
Water Control Solutions
Design - Manufacture - Install
-------------------------------------------------------------------------
Phone 0427 680 641

Web www.awma.au.com   Email matthew@awma.au.com