Friday, September 12, 2014

CentOS 7 and the Soekris net6501 - LED wrangling

Have you been looking for a way to handle the READY and ERROR lights on your net6501 without compiling a special program or building a kernel module?  If so, then this is the post for you.

Here are some shell commands to handle the READY and ERROR lights:

To turn the READY light on:

echo -ne "\01" | sudo dd of=/dev/port count=1 bs=1 seek=1693

or back off:

echo -ne "\00" | sudo dd of=/dev/port count=1 bs=1 seek=1693

To turn the ERROR light on:

echo -ne "\01" | sudo dd of=/dev/port count=1 bs=1 seek=1692

or back off:

echo -ne "\00" | sudo dd of=/dev/port count=1 bs=1 seek=1692

These scripts are just writing 0 or 1 to ports 0x69C or 0x69D (1692/1693 in decimal).