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

Watchdog Support for DellEMC s6100 #2741

Merged
merged 1 commit into from
Apr 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ common/io_rd_wr.py usr/local/bin
common/fstrim.timer etc/systemd/system
common/fstrim.service etc/systemd/system
s6100/scripts/platform_sensors.py usr/local/bin
s6100/scripts/platform_watchdog_enable.sh usr/local/bin
s6100/scripts/platform_watchdog_disable.sh usr/local/bin
s6100/scripts/sensors usr/bin
s6100/systemd/platform-modules-s6100.service etc/systemd/system
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
#This script is used to disable SMF Watchdog Timer

wd_status=-1
enabled=0

# Disable Watchdog if enabled
wd_status=$(io_rd_wr.py --get --offset 0x207 | cut -d " " -f3)

if [[ $wd_status -eq $enabled ]]; then
echo "Disabling Watchdog Timer.."
io_rd_wr.py --set --val 1 --offset 0x207
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
#This script is used to enable SMF Watchdog Timer

# Set watchdog to 180 seconds
io_rd_wr.py --set --val 3 --offset 0x206

# Enable watchdog timer
io_rd_wr.py --set --val 0 --offset 0x207
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ if [[ "$1" == "init" ]]; then
modprobe dell_s6100_iom_cpld
modprobe dell_s6100_lpc

# Disable Watcdog Timer
if [[ -e /usr/local/bin/platform_watchdog_disable.sh ]]; then
exec /usr/local/bin/platform_watchdog_disable.sh
fi

cpu_board_mux "new_device"
switch_board_mux "new_device"
sys_eeprom "new_device"
Expand Down