ext4load $bootdev $mmcbootdev:$mmcinformpart $rebootparam_addr $rebootparamfile;
if itest.l *${rebootparam_addr} == ${upgrade_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode fota
elif itest.l *${rebootparam_addr} == ${recovery_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode recovery
elif itest.l *${rebootparam_addr} == ${download_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode flash
elif itest.l *${rebootparam_addr} == ${nodef_val}; then;
echo "This reboot parameter is not supported...";
# 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
echo "Loading Ramdisk from partition"${ramdiskpart};
mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi
+# Set to ramdisksize with real partition size. (Need to multiply block-size 0x200)
+ setexpr ramdisksize $ramdisk_size * 200
bootz $tizen_kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr;
fi
done
ext4load $bootdev $mmcbootdev:$mmcinformpart $rebootparam_addr $rebootparamfile;
if itest.l *${rebootparam_addr} == ${upgrade_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode fota
elif itest.l *${rebootparam_addr} == ${recovery_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode recovery
elif itest.l *${rebootparam_addr} == ${download_val}; then;
setenv ramdiskpart 8
- setenv ramdisksize c00000
setenv bootmode flash
elif itest.l *${rebootparam_addr} == ${nodef_val}; then;
echo "This reboot parameter is not supported...";
# 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
echo "Loading Ramdisk from partition"${ramdiskpart};
mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi
+# Set to ramdisksize with real partition size. (Need to multiply block-size 0x200)
+ setexpr ramdisksize $ramdisk_size * 200
booti $tizen_kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr_r;
fi
done