Print the last occurred reset reason in MLO. Signed-off-by: Wadim Egorov <w.egorov@xxxxxxxxx> --- arch/arm/boards/phytec-som-am335x/board.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c index d084898..61ee0f9 100644 --- a/arch/arm/boards/phytec-som-am335x/board.c +++ b/arch/arm/boards/phytec-som-am335x/board.c @@ -96,8 +96,10 @@ static int physom_devices_init(void) xloadslots, ARRAY_SIZE(xloadslots)); am33xx_bbu_nand_register_handler("nand", "/dev/nand0.barebox.bb"); - if (IS_ENABLED(CONFIG_SHELL_NONE)) + if (IS_ENABLED(CONFIG_SHELL_NONE)) { + printf("%s reset occurred\n", am33xx_get_reset_reason_str()); return am33xx_of_register_bootdevice(); + } return 0; } -- 1.9.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox