rpi: tizen-boot: rpi3-32b: Add boot param for support flash mode
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 10 May 2018 04:13:00 +0000 (13:13 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:47 +0000 (15:13 +0900)
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: I41955d2b2dd08edd23897df4e458ca8f59eaf9a5
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr

index 21bea1f..8bbb944 100644 (file)
@@ -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