[prev in list] [next in list] [prev in thread] [next in thread]
List: soekris-tech
Subject: Re: [Soekris] LEDs on net6501
From: Lonnie Abelbeck <lists () lonnie ! abelbeck ! com>
Date: 2011-11-03 21:07:06
Message-ID: 0C102BE7-10B0-4D8F-850A-40E45E2E2C8D () lonnie ! abelbeck ! com
[Download RAW message or body]
On Oct 5, 2011, at 2:45 PM, Soren Kristensen wrote:
> Hi Jim & List,
>
> Jim Pingle wrote:
>> Hacking away on the net6501 and have it running pfSense. On the earlier
>> models there was a bit of support in the FreeBSD kernel to drive the LED
>> inside of geode.c
>>
>> Has anyone managed to control the LEDs for the 6501 on FreeBSD yet? Any
>> ideas where they'd be accessed through? I figured I could copy and hack
>> up the old geode.c code to experiment a bit, but I'd like to confirm if
>> they are accessed the same way as they were previously.
>>
>> It looks like there is code to detect a few different BIOS variations
>> and it uses different offsets for each one. Rather than reinvent the
>> wheel I figured I'd ask first
>
> on the net6501:
>
> Red Error LED: I/O port 069C bit 0, 0=off, 1=on.
> Green Ready LED: I/O port 069D bit 0, 0=off, 1=on.
>
> Info to be included on next release of manual.
> Best Regards,
> Soren Kristensen
Anyone know how the error-led could be toggled via "bash" in Linux with the above information ?
For the net5501, using GPIO, (Linux 2.6.35) we use...
--
errorled_net5501()
{
local GPIO=6 sys_gpio="/sys/class/gpio" value
case $1 in
off|low|0) value=0 ;;
*) value=1 ;;
esac
if [ -e "${sys_gpio}/export" ]; then
echo $GPIO > "${sys_gpio}/export"
echo "out" > "${sys_gpio}/GPIO${GPIO}/direction"
echo $value > "${sys_gpio}/GPIO${GPIO}/value"
echo $GPIO > "${sys_gpio}/unexport"
else
echo "errorled_net5501: No '${sys_gpio}/export' exixts." >&2
fi
}
--
but it doesn't appear that the net6501 supports the error-led off of GPIO.
Lonnie
_______________________________________________
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic