[Soekris] Error LED Control from Linux userland?

John Laur johnl at blurbco.com
Tue Apr 16 07:19:13 UTC 2002


On Mon, 2002-04-15 at 17:17, John Laur wrote:
>
> In the future, I'll probably add a couple flashing modes with different
> delays so that you can indicate several states with this led easily. If
> I need it for my app, I might add blink patterns as well since the
> net4501 has no speaker. (might not be a bad idea for ComBIOS :)

Sorry to keep replying to myself on this list, but to those of you who
requested it in private mails, I uploaded version 1.1 of this driver
which allows you to set the error LED into blinking states as well as
simply on and off. You can set it to 0 (off), 1 (on), and from 2(1s
blink rate) to 9(extremely agitated). Reading the value will indicate
which blink state it is in also.

Get it here:
http://www.blurbco.com/~gork/net4501/net4501_modules-1.1.tar.gz

With regard to Soren's earlier post, the errorled driver no longer
requires the MMCR to be aliased (it checks for aliasing and works
accordingly then, too), but if it's not aliased you lose the ability to
talk to the LED or other gpio's from userland. The mmcr_alias driver is
still around to make the sc520_wdt watchdog driver happy, though in case
you want to access your GPIO's from userspace for whatever reason.

My next task will be finding a cheap parallel LCD panel to hook up to
the GPIO pins. (parallel panels being much cheaper of course than the
serial variety) CrystalFontz has some good looking inexpensive panels
but they look to be slightly too tall (on the PCB side) to mount inside
the chassis facing forwards. Does anyone know a source for slimmer
displays that would fit inside the unit?

Share and Enjoy,
John






More information about the Soekris-tech mailing list