From 3c85d9691d3df845b4a4dd7c4261f450239b51b4 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 10 May 2018 13:13:00 +0900 Subject: [PATCH] rpi: tizen-boot: rpi2: Add boot param 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: I17bda3435176c992d9b457bec14f5aded804f0dc Signed-off-by: Dongwoo Lee Signed-off-by: Seung-Woo Kim --- board/raspberrypi/rpi/tizen-boot-rpi2.scr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/raspberrypi/rpi/tizen-boot-rpi2.scr b/board/raspberrypi/rpi/tizen-boot-rpi2.scr index 5923f49..73ca474 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi2.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi2.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 -- 2.7.4