[DELL] S6100 Add PowerCycle Support for Last Reset Reason#3402
[DELL] S6100 Add PowerCycle Support for Last Reset Reason#3402yxieca merged 4 commits intosonic-net:201811from
Conversation
|
retest broadcom please |
|
There is a regression on S6000 with power reset. The reboot cause gets stuck and no update after all. |
|
Hi sujinmkang, Will check again for S6100 and update |
|
Hi @sujinmkang I verified in S6100 using the same build. After APC power-cycle Could you please share the following output from your system after Power-Cycle P.S :- If hwmon1 is not present, please try with hwmon0 |
|
Hi @sridhar-ravindran, |
hi @sujinmkang |
…lly (#21422) #### Why I did it src/sonic-swss ``` * 4eb74f0 - (HEAD -> master, origin/master, origin/HEAD) [orchagent] Fix: ERR swss#orchagent: :- setPortPvid: pvid setting for tunnel Port_EVPN_XXX is not allowed (#3402) (9 hours ago) [Brad House] ``` #### How I did it #### How to verify it #### Description for the changelog
…lly (sonic-net#21422) #### Why I did it src/sonic-swss ``` * 4eb74f0 - (HEAD -> master, origin/master, origin/HEAD) [orchagent] Fix: ERR swss#orchagent: :- setPortPvid: pvid setting for tunnel Port_EVPN_XXX is not allowed (sonic-net#3402) (9 hours ago) [Brad House] ``` #### How I did it #### How to verify it #### Description for the changelog
- What I did
Added support to fix power-cycle last reboot cause in S6100
Known Caveat :- If we upgrade old_image (old_image without this fix) to the new_image(with this fix)
If we do a power-cycle instead of fast/warm/cold reset, show reboot-cause will return "Unknown" instead of "power-cycle"
- How I did it
Changes Done
modified: files/image_config/process-reboot-cause/process-reboot-cause
modified: files/image_config/platform/rc.local
modified: platform/broadcom/sonic-platform-modules-dell/common/dell_pmc.c
modified: platform/broadcom/sonic-platform-modules-dell/s6000/sonic_platform/chassis.py
modified: platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh
modified: platform/broadcom/sonic-platform-modules-dell/s6100/sonic_platform/chassis.py
rc.local will inform the platform about first boot. Platform Init Script will use the info and update the
logical to return non-hardware in case of first time onie boot/image upgrade.
process-reboot-cause will use the first_boot notification and use it to return Valid last-reset-reason
Currently it will show unkwown which is not correct.
- How to verify it
a) power-cycle the box and issue show reboot-cause
b) Onie install the box and check return value of get_reboot_cause api
c) Upgrade the image and check return value of get_reboot_Cause api
- Description for the changelog
[DELL] S6100 Support PowerCycle in Last Reboot Reason in 201811 branch
- A picture of a cute animal (not mandatory but encouraged)