OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: thowe on September 06, 2017, 09:32:45 pm

Title: APU2C4 - Usage of the onboard LEDs
Post by: thowe on September 06, 2017, 09:32:45 pm
Hello everybody

I have assembled an APU2C4 from PC Engines in a nice red case and have successfully installed OPNsense 17.7.1.

Everything went smooth. System is up an running just perfect. An ideal combination - quality hardware with quality software. Thanks to everybody making this possible.

The APU has 3 LEDs on its front. One is showing power status. But the two other LEDs remain dark/unuesed. These could be used e.g. for warnings, gateway status etc. I could not find any information about the usage of the LEDs.

Is there a way to use the LEDs in OPNsense?

Thanks
Thomas
Title: Re: APU2C4 - Usage of the onboard LEDs
Post by: Alphabet Soup on September 07, 2017, 02:26:55 am
FreeBSD 11.0 (which the current OPNsense is built on) has support for the NIC LEDs (/dev/led/igb[0-2]); that's in the generic kernel.  See 'man led' for what characters you can write to them.

I don't think the LEDs you're interested in have built-in support, as of FreeBSD 11.0 anyway.

See this forum thread for homemade drivers:  APU2 LED/switch driver for FreeBSD?
http://www.pcengines.info/forums/?page=post&id=F5BBF3CB-CFFF-4B03-B377-2E61055008EB (http://www.pcengines.info/forums/?page=post&id=F5BBF3CB-CFFF-4B03-B377-2E61055008EB)

Once you've got either of the drivers mentioned in that thread working, you will have to figure out how/where to tweak OPNsense to do something useful with it.
Title: Re: APU2C4 - Usage of the onboard LEDs
Post by: ktk on January 20, 2018, 11:03:07 am
FYI I created an issue and asked if the FreeBSD driver could be included in OPNsense:

https://github.com/opnsense/core/issues/2114