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:
To have the LEDs default on, and go off for any activity, prefix the LED name with bang:
Fix: See above.
Patch attached with submission follows:
With release later than roughly r283307 the BBB example becomes:
With the APU led patch (see Bug 189772) an APU example might be:
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017
- Set Status to "Open"