Bug 189788 - [patch] add kern.geom.disk.%s.activity_led to attach a LED to display disk activity
Summary: [patch] add kern.geom.disk.%s.activity_led to attach a LED to display disk ac...
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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 01:00 UTC by Keith White
Modified: 2018-05-21 00:00 UTC (History)
2 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"