Can I determine why a board has rebooted?

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Official image

Please describe your issue below:

We have a VIM4 board that spontaneously reboots - I can’t figure out why.
Is there a way (a log file or something) to detect the cause of the last reboot?

(We’ve checked power supply etc, and this is the only board out of 5 with supposedly identical config that does this)

Post a console log of your issue below:


After the first time reboot to system, you can check the reboot reason.

cat /proc/cmdline | grep reboot_mode

Please post here.

Thanks !
Slight tweak:

awk -F"=" -v RS=" " '/reboot_mode/ {print $2}' < /proc/cmdline

One more question…
I see the possible values are

	REBOOT_UNDEFINED = -1,
	REBOOT_COLD = 0,
	REBOOT_WARM,
	REBOOT_HARD,
	REBOOT_SOFT,
	REBOOT_GPIO,

But I can’t see the meanings defined anywhere - can you please point me in the right direction ?

Hello @steely-glint

The value is read from u-boot and then pass to the kernel.