[U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions
peng.fan at nxp.com
Tue Oct 22 08:13:31 UTC 2019
> Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot
> Hi Peng,
> On Tue, 22 Oct 2019 02:43:31 +0000
> Peng Fan peng.fan at nxp.com wrote:
> > get_boot_device_offset already switched partition, there is no need to
> > add partition switch logic in get_container_size.
> I'd be very happy if it did, but it didn't, at least not in current mainline tree. I
> can't find eMMC hw partition switching code in u-boot-imx tree either.
> I've checked in current master and in next branches:
My bad. I looked wrong. There is no such code.
But I do not understand well. When burn flash.bin into boot partition,
SPL will be loaded from boot partition, SPL will load container images
from boot partition, but in your case, I think SPL will load container images
from user partition, so you switch back to boot partition.
>From common/spl/spl_mmc.c, there is boot partition switch there,
Why need to add such logic in imx8/image.c?
> I'll re-spin the patch to add it in spl_mmc_get_uboot_raw_sector(), this seems
> to be a better place for it.
More information about the U-Boot