Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Sean Anderson
On 5/13/21 11:07 AM, Oleh Kravchenko wrote: > Hello Sean, > I've used these commands: >> fastboot flash mmc0boot0 u-boot-o4-imx6ull-nano.bin >> fastboot flash mmc0boot1 u-boot-o4-imx6ull-nano.bin > > > But these ones, doesn't work: >> fastboot flash 0.0 u-boot-o4-imx6ull-nano.bin >> Couldn't fi

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Oleh Kravchenko
Hello Sean, I've used these commands: > fastboot flash mmc0boot0 u-boot-o4-imx6ull-nano.bin > fastboot flash mmc0boot1 u-boot-o4-imx6ull-nano.bin But these ones, doesn't work: > fastboot flash 0.0 u-boot-o4-imx6ull-nano.bin > Couldn't find partition mmc 0.0 > fastboot flash 0.1 u-boot-o4-imx6ull

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Sean Anderson
Hi, Have you considered trying to flash using e.g. flashboot flash 0.1 foo.img instead of fastboot flash boot0 ? I would like to remove these MMC_BOOT2 options but I haven't gotten around to it. On 5/12/21 6:43 PM, Oleh Kravchenko wrote: The current U-Boot version has the next matches for

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Roman Stratiienko
Oops, sorry, I was wrong, fastboot_mmc_get_dev() is always returning struct blk_desc; with hwpart=0. чт, 13 мая 2021 г. в 13:29, Oleh Kravchenko : > > Hello Roman, > Thank you for your code-review! > > I've checked how Fastboot works with eMMC's boot and user areas. > Erasing and flashing works ju

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Oleh Kravchenko
Hello Roman, Thank you for your code-review! I've checked how Fastboot works with eMMC's boot and user areas. Erasing and flashing works just fine: $ fastboot erase mmc0boot0 Erasing 'mmc0boot0'... OKAY [ 2.948s] Finished. Total time: 2.983s > erased 16777216 bytes from mmc hwpart[1]

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Roman Stratiienko
Looks like there is another issue: Erasing the USER partition (CONFIG_FASTBOOT_MMC_USER_SUPPORT), will erase active selected hwpart, and in case it was called after erasing/flashing BOOT1 & BOOT2 it will erase last selected boot partition, instead of USER. чт, 13 мая 2021 г. в 11:42, Roman Stratii

Re: [PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-13 Thread Roman Stratiienko
Hi Oleh, Thank you for the fix. Reviewed-by: Roman Stratiienko чт, 13 мая 2021 г. в 01:44, Oleh Kravchenko : > > 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

[PATCH] Fix flash and erase of EMMC_BOOT2 with fastboot

2021-05-12 Thread Oleh Kravchenko
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: Oleh Kravchenko Cc: Pantelis Antoniou Cc: Marek Vasut --- drivers/fastboot/fb_m