From: Seung-Woo Kim Date: Mon, 29 Apr 2019 06:25:36 +0000 (+0900) Subject: rpi: tizen-boot: rpi3-32b: support to enter the flash mode with command X-Git-Tag: accepted/tizen/unified/20221108.163909~263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9efb2863125a49606176013dc6e33eee11cc156;p=platform%2Fkernel%2Fu-boot.git rpi: tizen-boot: rpi3-32b: support to enter the flash mode with command 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 --- diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr index a21beff..13ae5fc 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr @@ -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}\"