Reboot Log Causes

HI all,

Noobie question.
I was wondering if it's possible and how to find or read the causes of a reboot.
When a non voluntary reboot happens, where can I find why this happened?

Thanks

One place to check is /sys/kernel/debug/crashlog, it's currently OpenWrt specific way of recording kernel log on reboot caused by panic, etc.

Can't find this path, maybe should I have to add something during the make process ?
I mean, some make menuconfig settings?

Thanks

The feature should be present by default. The file only be there after reboot caused by panic or oops.

Logs, by default, are in volatile memory. One of the easiest ways to capture them would be to run

ssh root@your.router logread -f

from your desktop.

2 Likes