sprintf(offset, "%x", parts[part_id]->offset);
sprintf(length, "%x", parts[part_id]->size);
+ /* Erase */
+ if (!arg)
+ nand_cmd(0, offset, length, NULL);
+ else
+ printf("CSA Clear will be skipped temporary\n");
+
/* Check ubi image, 0x23494255 is UBI# */
{
long *img_header = (long *)down_ram_addr;
goto ubi_img;
}
- /* Erase */
- if (!arg)
- nand_cmd(0, offset, length, NULL);
- else
- printf("CSA Clear will be skipped temporary\n");
-
#ifdef CONFIG_UBIFS_MK
void *dest_addr = (void *) down_ram_addr + 0xc00000;
void *src_addr = (void *) down_ram_addr;