|
@@ -133,9 +133,13 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
// space max size set
|
|
|
switch(Type)
|
|
|
{
|
|
|
+ case CSU_MLO:
|
|
|
+ MaxLen = 0.5*1024*1024;
|
|
|
+ DEBUG_INFO("Image type: MLO\n");
|
|
|
+ break;
|
|
|
case CSU_BOOTLOADER:
|
|
|
MaxLen = 1*1024*1024;
|
|
|
- //DEBUG_INFO("Image type: U-Boot\n");
|
|
|
+ DEBUG_INFO("Image type: U-Boot\n");
|
|
|
break;
|
|
|
case CSU_KERNEL_CONFIGURATION:
|
|
|
MaxLen = 0.5*1024*1024;
|
|
@@ -216,11 +220,11 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
// Write image to target flash block
|
|
|
switch(Type)
|
|
|
{
|
|
|
- case FLASH_IMAGE_TYPE_SPL:
|
|
|
+ case CSU_MLO:
|
|
|
fd = open("/mnt/imgBuffer", O_RDWR | O_CREAT | O_EXCL);
|
|
|
if (fd < 0)
|
|
|
{
|
|
|
- DEBUG_ERROR("Can not create SPL image buffer file.\n");
|
|
|
+ DEBUG_ERROR("Can not create MLO image buffer file.\n");
|
|
|
result = FAIL;
|
|
|
}
|
|
|
else
|
|
@@ -1084,6 +1088,10 @@ int Check_CCS_image_header(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
|
|
|
switch(Type)
|
|
|
{
|
|
|
+ case CCS_BOARD_MLO:
|
|
|
+ MaxLen = 0.5*1024*1024;
|
|
|
+ DEBUG_INFO("Prepare to upgrade CCS MLO\n");
|
|
|
+ break;
|
|
|
case CCS_BOARD_BOOTLOADER:
|
|
|
MaxLen = 1*1024*1024;
|
|
|
DEBUG_INFO("Prepare to upgrade CCS BOOTLOADER\n");
|