Bug 189788 - add kern.geom.disk.%s.activity_led to attach a LED to display disk activity
Summary: add kern.geom.disk.%s.activity_led to attach a LED to display disk activity
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 01:00 UTC by Keith White
Modified: 2024-10-28 21:36 UTC (History)
3 users (show)

See Also:


Attachments
file.diff (2.48 KB, patch)
2014-05-14 01:00 UTC, Keith White
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith White 2014-05-14 01:00:00 UTC
In embedded platforms (Beaglebone Black in particular) there are uncommitted LEDs that might be useful to have display "disk" activity.  The attached patch adds a kern.geom.disk.%s.activity_led SYSCTL that could be used for this purpose.

Apply the attached patch.

Add the following to your KERNCONF:

  options         GEOM_DISK_ACTIVITY_LED  # blinky lights for GEOM disk access

Add the following to /boot/loader.conf on that platform to have blinky lights for SD/MMC access:

  kern.geom.disk.mmcsd0.activity_led="led2"
  kern.geom.disk.mmcsd1.activity_led="led1"

To have the LEDs default on, and go off for any activity, prefix the LED name with bang:

  kern.geom.disk.mmcsd0.activity_led="!led2"
  kern.geom.disk.mmcsd1.activity_led="!led1"

Fix: See above.

Patch attached with submission follows:
How-To-Repeat: NA
Comment 1 Keith White 2015-05-26 00:36:17 UTC
With release later than roughly r283307 the BBB example becomes:

kern.geom.disk.mmcsd0.activity_led="beaglebone:green:mmc0"

With the APU led patch (see Bug 189772) an APU example might be:

kern.geom.disk.ada0.activity_led="!led1"

...keith
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:18 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:40 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:34:03 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>