If the device nodes in /dev for the LEDs don't control anything else other 
than the LEDs it's likely safe to make them world writable and readable, 
mode 0666.  You can test that by doing a "chmod 0666 /dev/<ledswhatever>" 
and then running your program.  Those permissions will go away on the next 
reboot and you can use
udev to make them permanent.


On Wednesday, February 12, 2014 4:41:49 AM UTC-8, Alastair Gilmore wrote:
>
> Many thanks to those who replied. I have downloaded and installed Ubuntu. 
> The standard account is debian and I am using this. I have my program in a 
> folder 'workspace' in 'home' , and I execute the program from within the 
> workspace folder with sudo ./HelloFirst. All of the lines using cout work 
> i.e. messages are printed to terminal and the sleep function allows 1 
> second between 10 on and of periods for the LED. Its just the LED does not 
> change. I'll have a read of your document link tonight Rusty and see if it 
> can help. I'm new to Linux and the BBB, but I agree with the comment that 
> the LEDS should be available to all users on an embedded system. I'm away 
> at present, but will post the code tomorrow.
> Thanks again
> Alastair
>
> On Tuesday, February 11, 2014 4:22:14 PM UTC, Alastair Gilmore wrote:
>>
>> Hi, 
>>     I've got Ubuntu installed on the BBB and have compiled a C++ Hellow 
>> World on Eclipse and a Ubuntu PC. I can SSH the program to my account on 
>> the BBB, and it runs ok. I then SSH a program to flash the LED (from Derek 
>> Molloy's tutorial) and although the terminal messages appear the LED 
>> doesn't flash. I understand that my BBB account doesn't have 'write' 
>> privileges for the LED, only Root has, but don't know how to make the 
>> program work or change these privileges. I've tried SUDO but that doesn't 
>> work either. Can anyone help me please.
>> Thanks
>> Alastair
>>
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to