From: Dongwoo Lee Date: Thu, 5 Apr 2018 05:40:01 +0000 (+0900) Subject: rpi: tizen-boot: Add boot parameter for support flash mode X-Git-Tag: accepted/tizen/unified/20191107.062134~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd9bb225260006d60960f60a04507b2217277eee;p=platform%2Fkernel%2Fu-boot.git rpi: tizen-boot: Add boot parameter for support flash mode This patch adds support for flash bootmode. If boot-param.bin is set to 'dwnl', bootmode will be set to flash to invoke flash-init. Change-Id: I5fe1554c4ad431f6275c0118d25a36e1f3a8ffc4 Signed-off-by: Dongwoo Lee --- diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3.scr b/board/raspberrypi/rpi/tizen-boot-rpi3.scr index da8669c..2e1f59c 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3.scr @@ -26,6 +26,8 @@ upgrade_val=72677075 recovery_val=72766372 # 0x6665646e is ascii code for representing string "ndef" nodef_val=6665646e +# 0x6c6e7764 is ascii code for representing string "dwnl" +download_val=6c6e7764 # Normal ramdisk : partition 7 # Ramdisk Recovery : Partition 8 @@ -46,6 +48,10 @@ if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then; ramdiskpart=8 ramdisksize=c00000 bootmode=recovery + elif itest.l *${rebootparam_addr} == ${download_val}; then; + ramdiskpart=8 + ramdisksize=c00000 + bootmode=flash elif itest.l *${rebootparam_addr} == ${nodef_val}; then; echo "This reboot parameter is not supported..."; fi