How to judge whether it is a cold start or a warm start

Hi all:
I want to know whether the current device is a cold boot or a warm boot. Is there any way?

Version:
JP5.1.2

Device:
Orin NX

Hi wxsrite,

Are you using the devkit or custom board for Orin NX?

Please share the full serial console log for further check.

Hi KevinFFF:
1、custom board for Orin NX.
2、I want to know if someone has unplugged the power supply by querying whether it is a cold start or a hot start.

You could just run the following command to know the reset reason.

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

OK,thanks!

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