Jetson, how to check last shutdown reason

Hi,
For Jetson Orin AGX, if it possible to get the reason of last time shutdown? Like “watchdog reboot”, “system reboot” or “power shutdown” etc.
Thanks for your reply!
BR/Tim

Hi ckt1010,

Please run the following command to check.

$ cat /sys/devices/platform/c360000.pmc/reset_reason

Hi Kevin
But, how to explain it? I see sometimes print:MAINSWRST, sometimes print BCCPLEXWDT or SYS_RESET_N

Please refer to the following thread for the difference.
Question about tegra-pmc - #3 by KevinFFF

BCCPLEXWDT might be caused from watchdog reset.

Hi KevinFFF
I checked l4t code it shows reset sources has:

static const char * const tegra194_reset_sources[] = {
	"SYS_RESET_N",
	"AOWDT",
	"BCCPLEXWDT",
	"BPMPWDT",
	"SCEWDT",
	"SPEWDT",
	"APEWDT",
	"LCCPLEXWDT",
	"SENSOR",
	"AOTAG",
	"VFSENSOR",
	"MAINSWRST",
	"SC7",
	"HSM",
	"CSITE",
	"RCEWDT",
	"PVA0WDT",
	"PVA1WDT",
	"L1A_ASYNC",
	"BPMPBOOT",
	"FUSECRC",
};

Is there any docs explain all of those?
Thanks!
BR/Tim

Hi,

The question should be what are you going to do here.

Actually a lot of users are trying to ask the reset reason, but turns out this info does not help them at all.

For example, BCCPLEXWDT is triggered by watchdog, but the reason to trigger WDT will not show in reset reason. It could be multiple reasons.

Thus, better clarifying what are you going to do here. Does your board have some sudden reboot so you want to track?

2 Likes

Hi WayneWWW
I know trigger WDT could has multiple reasons, so I only want know what triggered reboot. I will check with syslog to find that rootcause.
I will checkout that file after obnormal reboot happen.
Hope I clarified my requirement. Thanks!

Hi,

Syslog may not be efficient dump the info you need. When system crash, syslog may not record those logs.

Better using the UART console or something like ramoops to check.

Yes! UART is better.
But first, would you please tell me all tegra194_reset_sources elements mean?
Thanks!

Tegra 194 Manual RST_SOURCE PMC SW Reset Source String
0 = SYS_RESET_N TEGRA_POWER_ON_RESET
1 = AOWDT TEGRA_AO_WATCHDOG
2 = BCCPLEXWDT TEGRA_DENVER_WATCHDOG
3 = BPMPWDT TEGRA_BPMP_WATCHDOG
4 = SCEWDT TEGRA_SCE_WATCHDOG
5 = SPEWDT TEGRA_SPE_WATCHDOG
6 = APEWDT TEGRA_APE_WATCHDOG
7 = LCCPLEXWDT TEGRA_A57_WATCHDOG
8 = SENSOR TEGRA_SENSOR
9 = AOTAG TEGRA_AOTAG
10 = VFSENSOR TEGRA_VFSENSOR
11 = MAINSWRST TEGRA_SOFTWARE_RESET
12 = SC7 TEGRA_SC7
13 = HSM TEGRA_HSM
14 = CSITE TEGRA_CSITE
1 Like

Sorry WayneWWW
Would you please tell what TEGRA_SENSOR, TEGRA_VFSENSOR, TEGRA_CSITE mean? I can’t found those in any docs.
Thanks!

We would like to know your use case in details.
We do not have public document for each definition in source and also the mechanism/architecture for reset.
Do you hit those reset reasons(TEGRA_SENSOR, TEGRA_VFSENSOR, TEGRA_CSITE) in your case?

Hi KevinFFF
I think I already told you my use case. I hope monitor reset reason when my system abnormal. Why you don’t have public doc for those, although you already realize it?
So you mean I should ask you those element explanation after I hit it? I think it is inefficient.
Thanks!

TEGRA_VFSENSOR is related to voltage sensor error. Only hardware problem may lead to this.

I never saw the rest 2 reset sources happened.

Please be aware that these kernel source may used by more than just Jetson platform. Something may not enabled on L4T.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.