Commit 389b6765 authored by Oleh Kravchenko's avatar Oleh Kravchenko Committed by Tom Rini
Browse files

Fix flash and erase of eMMC Boot2 with Fastboot



The current U-Boot version has the next matches for boot partitions:
> mmc0boot0 to EMMC_BOOT1
> mmc0boot1 to EMMC_BOOT1 (should be EMMC_BOOT2)
This patch fixes a typo for the boot partition number.
Signed-off-by: default avatarOleh Kravchenko <oleg@kaa.org.ua>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: default avatarSean Anderson <sean.anderson@seco.com>
parent dcf2cee7
...@@ -525,7 +525,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer, ...@@ -525,7 +525,7 @@ void fastboot_mmc_flash_write(const char *cmd, void *download_buffer,
if (strcmp(cmd, CONFIG_FASTBOOT_MMC_BOOT2_NAME) == 0) { if (strcmp(cmd, CONFIG_FASTBOOT_MMC_BOOT2_NAME) == 0) {
dev_desc = fastboot_mmc_get_dev(response); dev_desc = fastboot_mmc_get_dev(response);
if (dev_desc) if (dev_desc)
fb_mmc_boot_ops(dev_desc, download_buffer, 1, fb_mmc_boot_ops(dev_desc, download_buffer, 2,
download_bytes, response); download_bytes, response);
return; return;
} }
...@@ -655,7 +655,7 @@ void fastboot_mmc_erase(const char *cmd, char *response) ...@@ -655,7 +655,7 @@ void fastboot_mmc_erase(const char *cmd, char *response)
/* erase EMMC boot2 */ /* erase EMMC boot2 */
dev_desc = fastboot_mmc_get_dev(response); dev_desc = fastboot_mmc_get_dev(response);
if (dev_desc) if (dev_desc)
fb_mmc_boot_ops(dev_desc, NULL, 1, 0, response); fb_mmc_boot_ops(dev_desc, NULL, 2, 0, response);
return; return;
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment