rpi: tizen-boot: rpi3-32b: support to enter the flash mode with command
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Apr 2019 06:25:36 +0000 (15:25 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:48 +0000 (15:13 +0900)
Support to enter the flash mode with command.

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

Note: this applies, to rpi3-32b from rpi3, the commit cf212f48a110
("config: tizen_rpi: support to enter the flash mode with command").

Change-Id: I3a801aed172557385abd8651c811708f1f27feec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr

index a21beff..13ae5fc 100644 (file)
@@ -19,6 +19,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}\"