[mesh-dev] How to find reason for last reboot?
Adrian Chadd
adrian at freebsd.org
Wed Aug 5 06:28:22 PDT 2015
ar71xxreg.h:#define AR71XX_RST_WDOG_CONTROL 0x18060008
ar71xxreg.h:#define RST_WDOG_LAST (1U << 31)
ar71xxreg.h:#define RST_WDOG_ACTION_MASK 3
ar71xxreg.h:#define RST_WDOG_ACTION_RESET 3
ar71xxreg.h:#define RST_WDOG_ACTION_NMI 2
ar71xxreg.h:#define RST_WDOG_ACTION_GP_INTR 1
ar71xxreg.h:#define RST_WDOG_ACTION_NOACTION 0
.. I think if RST_WDOG_LAST=1, then it was last rebooted by the watchdog.
-a
On 5 August 2015 at 02:56, Marc Juul <juul at labitat.dk> wrote:
> Does anyone know how to find the reason for last reboot on AR71xx and newer?
>
> I'm assuming there is a register somewhere that will tell me if it was
> triggered by the hardware watchdog but I'm not finding any info on this
> anywhere.
>
> --
> marc/juul
>
> _______________________________________________
> mesh-dev mailing list
> mesh-dev at lists.sudoroom.org
> https://sudoroom.org/lists/listinfo/mesh-dev
>
More information about the mesh-dev
mailing list