I’m wondering if there is any way of reading the boot reason from Linux? E.g. power-on, soft-reset, watchdog reset. The watchdog reset being the boot reason we are most interested in being able to detect, though the others would also be useful.
I haven’t been able to find any information in the TRM to this effect.
Thanks in advance.
Nice idea, but sadly that won’t help as the expected shutdown is via loss of power, so even if we were keeping last logs it wouldn’t differentiate for us.
I’m used to having a hardware register that can be read to determine the boot reason. Is there anything like that on the Xavier? I’m hoping I just haven’t found the right terminology to search for in the TRM.
Also worth noting is that I did not have a c360000.pmc entry, but seeing as I get all the necessary information via the debugfs entry I won’t spend any time investigating that.