config: tizen_rpi: support to enter the flash mode with command
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 22 Feb 2019 08:08:23 +0000 (17:08 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:47 +0000 (15:13 +0900)
Support to enter the flash mode with command.

- Refer to below command:
U-boot> run tfm

Change-Id: Ie5835573cdefb3ccfe3b67d3d20a4e301672251c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
board/raspberrypi/rpi/tizen-boot-rpi3.scr
include/samsung/tizen_rpi.h

index e21fc8e..12edf56 100644 (file)
@@ -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}\"
index 41a9942..00a0039 100644 (file)
@@ -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 */