From d355e9dea11c8d58533750807bd9f07745bba9b6 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 22 Feb 2019 17:08:23 +0900 Subject: [PATCH] config: tizen_rpi: support to enter the flash mode with command Support to enter the flash mode with command. - Refer to below command: U-boot> run tfm Change-Id: Ie5835573cdefb3ccfe3b67d3d20a4e301672251c Signed-off-by: Jaehoon Chung --- board/raspberrypi/rpi/tizen-boot-rpi3.scr | 7 +++++++ include/samsung/tizen_rpi.h | 1 + 2 files changed, 8 insertions(+) diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3.scr b/board/raspberrypi/rpi/tizen-boot-rpi3.scr index e21fc8eedf..12edf566bf 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3.scr @@ -21,6 +21,13 @@ if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then; fi fi +# This is for jumping to flash mode on u-boot. +if test "${bootmode}" = "download"; then; + setenv ramdiskpart 8 + setenv ramdisksize c00000 + setenv bootmode flash +fi + if test "${bootmode}" = "flash"; then; if test -n "${ipaddr}"; then; ip_opt=\"ip=${ipaddr}::${gateway}:${netmask}\" diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h index 41a9942def..00a0039ea2 100644 --- a/include/samsung/tizen_rpi.h +++ b/include/samsung/tizen_rpi.h @@ -79,6 +79,7 @@ "ramdisksize=800000\0" \ "bootmode=ramdisk\0" \ "bootdev=mmc\0" \ + "tfm=setenv bootmode download; run bootcmd\0" \ "opts=loglevel=7\0" #endif /* __CONFIG_TIZEN_RPI_H */ -- 2.34.1