scripts: tizen_rpi: add the reboot_param_clear
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 18 Jul 2022 06:14:15 +0000 (15:14 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 05:49:03 +0000 (14:49 +0900)
Add the reboot_param_clear to clear the reboot parameter.
If there is no method to clear reboot parameter, it can be enterred to some
mode infinitely.

Change-Id: I6edbe2d4d989e172fa7bc6f032b5e627e540637a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
include/samsung/tizen_rpi.h

index 16aa91c..f14e5ac 100644 (file)
 #define TIZEN_VC_MEM "vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 "
 #endif
 
+#define CLEAR_REBOOT_PARAM \
+       "mw.l ${rebootparam_addr} ${normal_val} ; "                                             \
+       "ext4write mmc ${mmcbootdev}:${mmcinformpart} ${rebootparam_addr} /${rebootparamfile} 8; "
+
+
 /* SD/MMC configuration */
 #define CONFIG_MMC_DEFAULT_DEV 0
 
        "upgrade_val=72677075\0"                \
        "recovery_val=72766372\0"               \
        "nodef_val=6665646e\0"                  \
+       "normal_val=6d726f6e\0"                 \
        "download_val=6c6e7764\0"               \
        "ramdiskpart=7\0"                       \
        "part=7\0"                              \
        "set_to_part_b=" SET_TO_PARTITION_B "\0"                \
        "gpt_parts=" GPT_PARTS_DEFAULT "\0"             \
        "update_gpt_part=gpt write mmc ${mmcbootdev} ${gpt_parts}\0"            \
+       "reboot_param_clear=" CLEAR_REBOOT_PARAM "\0"                           \
        ""
 
 #endif /* __CONFIG_TIZEN_RPI_H */