rpi: tizen-boot: rpi3-32b: support to enter the flash mode with command 96/205096/1 accepted/tizen/unified/20190429.103839 submit/tizen/20190429.071428
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Apr 2019 06:25:36 +0000 (15:25 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Apr 2019 06:25:52 +0000 (15:25 +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: Iafe01c35f37eca00132767215e380ec4d9a5426d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr

index a21beff1bda920b9dfbeaf08a1bccc659282bd16..13ae5fc6c1dd1902a232de3cff4e897ca199dc04 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}\"