www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Support for Alix LEDs

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Request a new feature
View previous topic :: View next topic  
Author Message
richtech



Joined: 01 Jul 2008
Posts: 1
Location: Nigeria

PostPosted: Tue Jul 01, 2008 9:04 pm    Post subject: Support for Alix LEDs Reply with quote

Thank you very much for this software, its great.

Would like to be able to use the LEDs on Alix boards.

This board is a perfect fit for Zeroshell so far. It makes DIY router/firewall/Stable AP a breeze.

OpenWRT has a patch that drives the LEDs but one has to write a script to use the LEDs for now.
Back to top
View user's profile Send private message
a_brandl



Joined: 06 May 2009
Posts: 2

PostPosted: Wed May 06, 2009 11:08 am    Post subject: C Program for accessing the ALIX LEDs Reply with quote

Hi!

We are using the alixled program for accessing the LEDs. It is available under

http://linux.1wt.eu/alix/util/alixled/

Best regards,

Albert Brandl
Back to top
View user's profile Send private message
richedkid



Joined: 27 May 2009
Posts: 3

PostPosted: Wed May 27, 2009 2:17 am    Post subject: Reply with quote

Would be able to use the LEDs on Alix boards... by the way thank you for the software... I really like it.. you have to write a script to use the LEDs right.. then would you mind sharing us that?
Back to top
View user's profile Send private message
a_brandl



Joined: 06 May 2009
Posts: 2

PostPosted: Thu May 28, 2009 10:51 am    Post subject: Reply with quote

I didn't write the software, just provided the link ;-)

When you start alixled without arguments, it shows a short
usage description:

Quote:
[...]
Usage:
- alixled led1|led2|led3|all on|off|toggle|state [debug]
- alixled switch state [debug]


Up to now I've only usedl "alixled led1 on" or "alixled 2 off", depending on the state
of the device. Here is a short example that sets the state of the first LED to on or
off, depending on the online state of the device

Code:

[Perform an online check, e.g. with wget]
if [ $? -eq 0 ]; then
  [path to alixled] led1 on
else
  [path to alixled] led1 off
fi


Regards,

Albert Brandl
Back to top
View user's profile Send private message
PatrickB



Joined: 03 Nov 2012
Posts: 50

PostPosted: Mon Mar 23, 2015 5:51 pm    Post subject: Reply with quote

Hello.

Still on it ?

It is said everywhere that the GPIO method should rather be used now.

And usually the goal is to do more than switching a led on/off: for instance I'd like to trigger one with the WAN side traffic, it's a pain to be missing that on a router/firewall...

Then it does not work so easily:
http://www.zeroshell.org/forum/viewtopic.php?t=4915

I have found some modules a priori compatible there:

https://downloads.openwrt.org/barrier_breaker/14.07/x86/alix2/packages/base/
(the kmod_led* series)

http://tinyurl.com/n9smp38
http://wiki.openwrt.org/doc/uci/system?s%5B%5D=leds
http://wiki.openwrt.org/toh/pcengines/alix?s%5B%5D=leds

Who wants to do his ZS Frankenstein with all that ? Very Happy

Best regards.
Back to top
View user's profile Send private message
PatrickB



Joined: 03 Nov 2012
Posts: 50

PostPosted: Sun Apr 05, 2015 5:20 pm    Post subject: Missing a kernel driver for the GPIO of Alix board: CS5535 Reply with quote

See
http://www.zeroshell.org/forum/viewtopic.php?p=14041#14041
Back to top
View user's profile Send private message
PatrickB



Joined: 03 Nov 2012
Posts: 50

PostPosted: Sun Aug 16, 2015 5:59 pm    Post subject: State of the "alix-leds" flavors that can be found Reply with quote

Hello.

I downloaded the program and the source file at:
http://linux.1wt.eu/alix/util/alixled/

Very bad surprise Shocked

Visibly the code was "simplified" from the how-to provided 3 posts above !

All what it is able to do now is to blink the first led at 1Hz or 10Hz, depending of the presence of any argument.

Then I explored the parent directories and downloaded the archives there:
http://linux.1wt.eu/alix/util/

There is a compiled program alix-leds and its source file.

This one is able to address the 3 leds and use them in various ways:
- blink slow or fast,
- show the CPU load or the disk activity,
- show the state of the network interfaces...

Unfortunately the state of network is just up/down, not flashing with the activity, so it is quite perfectly useless - unless you have a process randomly touching your NICs and need to monitor how you are configured Laughing

I could only use it to turn a led on or off by showing the state of a network interface that is always up, or one that does not exist Laughing

And after that, it is necessary to kill the process because there is not even an option to set a led and exit Crying or Very sad

The GPIO working on Alix will be really welcome Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Request a new feature All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group