rebootparam_addr=0x3a62b000
# 0x72677075 is ascii code for representing string "upgr"
upgrade_val=72677075
-# 0x6d726f6e is ascii code for representing string "norm"
-normal_val=6d726f6e
-
-ramdisksize=800000
+# 0x72766372 is ascii code for representing string "rcvr"
+recovery_val=72766372
+# 0x6665646e is ascii code for representing string "ndef"
+nodef_val=6665646e
# Normal ramdisk : partition 7
# Ramdisk Recovery : Partition 8
ramdiskdev=0
+ramdiskpart=7
+ramdisksize=800000
+bootmode=ramdisk
# Device that included the image.
bootdev=mmc
ext4load $bootdev $mmcbootdev:$mmcinformpart $rebootparam_addr $rebootparamfile;
if itest.l *${rebootparam_addr} == ${upgrade_val}; then;
ramdiskpart=8
- bootmode=upgrade
ramdisksize=c00000
- elif itest.l *${rebootparam_addr} == ${normal_val}; then;
- ramdiskpart=7
- bootmode=ramdisk
- else
+ bootmode=fota
+ elif itest.l *${rebootparam_addr} == ${recovery_val}; then;
+ ramdiskpart=8
+ ramdisksize=c00000
+ bootmode=recovery
+ elif itest.l *${rebootparam_addr} == ${nodef_val}; then;
echo "This reboot parameter is not supported...";
- ramdiskpart=7
- bootmode=ramdisk
fi
-else
- ramdiskpart=7
- bootmode=ramdisk
fi
# boot from ram0 if there is sbin