Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meru800bia: populate LED/FRU configs in led_manager.json #191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamcalabrigo
Copy link
Contributor

Summary

For Meru800bia platform, adds LED/FRU configs in led_manager.json. Also updates platform_manager.json to provide a unique ledId to each status LED.

Testing

Verified that data_corral_service loads correctly on Meru800bia:

# ./data_corral_service -config_file=/tmp/led_manager.json 
I0319 19:18:56.210022  5190 ConfigLib.cpp:48] Using config file: /tmp/led_manager.json
I0319 19:18:56.210656  5191 FruPresenceExplorer.cpp:20] Detecting presence of FRUs
I0319 19:18:56.212068  5191 FruPresenceExplorer.cpp:37] Detected that FAN1 is present
I0319 19:18:56.212985  5191 FruPresenceExplorer.cpp:37] Detected that FAN2 is present
I0319 19:18:56.213980  5191 FruPresenceExplorer.cpp:37] Detected that FAN3 is present
I0319 19:18:56.215024  5191 FruPresenceExplorer.cpp:37] Detected that FAN4 is present
I0319 19:18:56.215135  5191 FruPresenceExplorer.cpp:37] Detected that PSU1 is present
I0319 19:18:56.215180  5191 FruPresenceExplorer.cpp:37] Detected that PSU2 is present
I0319 19:18:56.215227  5191 LedManager.cpp:45] Programming PSU LED with true
I0319 19:18:56.215350  5191 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led3:green:status/brightness
I0319 19:18:56.215417  5191 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led3:red:status/brightness
I0319 19:18:56.215439  5191 LedManager.cpp:55] Programmed PSU LED with presence true
I0319 19:18:56.215462  5191 LedManager.cpp:45] Programming FAN LED with true
I0319 19:18:56.215520  5191 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led2:green:status/brightness
I0319 19:18:56.215576  5191 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led2:red:status/brightness
I0319 19:18:56.215596  5191 LedManager.cpp:55] Programmed FAN LED with presence true
I0319 19:18:56.215616  5191 LedManager.cpp:25] Programming system LED with true
I0319 19:18:56.215669  5191 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led1:green:status/brightness
I0319 19:18:56.215728  5191 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led1:red:status/brightness
I0319 19:18:56.215751  5191 LedManager.cpp:34] Programmed system LED with true

@facebook-github-bot
Copy link
Contributor

@joancaneus has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants