From 1a3761c63080fc422150e965c73a63f8f1b30ba5 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 21 Dec 2020 14:06:57 +0900 Subject: [PATCH] configs: amlogic: check a reboot reason to enter download mode Check a reboot reason to enter download mode. If reboot reason is download, it will be entered to download mode. Change-Id: I9a2223962ad49a19a2b084711107dd23e6c17b95 Signed-off-by: Jaehoon Chung --- include/samsung/tizen_amlogic.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index f87ae80..fe1a382 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -122,6 +122,13 @@ "thor; " \ "fi" +#define REBOOT_CHECK \ + "sm reboot_reason reason; " \ + "echo \"reboot ${reason}\"; " \ + "if test ${reason} = download; then " \ + "thor; " \ + "fi" + #define TIZEN_ENV_SETTING \ "mmcbootpart=1\0" \ "mmcrootpart=2\0" \ @@ -141,6 +148,7 @@ "boot_prefixes=" TIZEN_BOOT_PREFIX "\0" \ "mbr_parts=" PARTS_DEFAULT "\0" \ "mbr_check=" MBR_CHECK "\0" \ + "reboot_check=" REBOOT_CHECK "\0" \ "splashimage=0x2000000\0" \ "splashsource=mmc_fs\0" \ "splashfile=tizen_logo.bmp.gz\0" \ -- 2.7.4