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

[Edgecore][AS9726-32D] Enhance sonic_platform feature #14237

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Add a rebooting specific tool
roger530-ho committed May 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8a162b297422712930b3a4b26f14b8d52734eefe
20 changes: 20 additions & 0 deletions device/accton/x86_64-accton_as9726_32d-r0/platform_reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

echo "Do sync"
sync

echo "Stop pmon.service"
systemctl stop pmon.service

echo "Stop as9726-32d-platform-monitor-fan.service"
systemctl stop as9726-32d-platform-monitor-fan.service

echo "Stop as9726-32d-platform-monitor-psu.service"
systemctl stop as9726-32d-platform-monitor-psu.service

echo "Stop as9726-32d-platform-monitor.service"
systemctl stop as9726-32d-platform-monitor.service

echo "Cold Reset via CPLD Offset 0x4 Bit 3"
i2cset -y -f 1 0x65 0x4 0x15

11 changes: 11 additions & 0 deletions device/accton/x86_64-accton_as9726_32d-r0/warm-reboot_plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "Stop as9726-32d-platform-monitor-fan.service"
systemctl stop as9726-32d-platform-monitor-fan.service

echo "Stop as9726-32d-platform-monitor-psu.service"
systemctl stop as9726-32d-platform-monitor-psu.service

echo "Stop as9726-32d-platform-monitor.service"
systemctl stop as9726-32d-platform-monitor.service