mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 10:42:10 +02:00
fastboot: reinit partition after storing GPT or MBR
In case MMC has MBR system and fastboot writes GPT, MMC is still recognized as MBR. Invoke part_init() to purge cached data and update information about partition table type. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
This commit is contained in:
committed by
Marek Vasut
parent
0c0394b502
commit
adb5daf090
@@ -504,6 +504,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
|
|||||||
response);
|
response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
part_init(dev_desc);
|
||||||
printf("........ success\n");
|
printf("........ success\n");
|
||||||
fastboot_okay(NULL, response);
|
fastboot_okay(NULL, response);
|
||||||
return;
|
return;
|
||||||
@@ -525,6 +526,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
|
|||||||
response);
|
response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
part_init(dev_desc);
|
||||||
printf("........ success\n");
|
printf("........ success\n");
|
||||||
fastboot_okay(NULL, response);
|
fastboot_okay(NULL, response);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user