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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
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 e21fc8eedfe24bc3164478a44b5fd739f661ef13..12edf566bf2595a4df0894fbf9a6652a0c7019cb 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 41a9942def1f7c2dfa0f6fd4de6fd755bf6f1e17..00a0039ea218deb8bf71d27078a5c32d12a17e0b 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 */