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