Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Anatolij Gustschin
On Tue, 22 Oct 2019 10:18:01 + Peng Fan peng@nxp.com wrote: ... > ok. I'll give a look, if you not mind. Sure, no problem. Thanks! -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > On Tue, 22 Oct 2019 10:08:42 + > Peng Fan peng@nxp.com wrote: > ... > > > > From common/spl/spl_mmc.c, there is boot partition switch there, > > > > Why need to add such logic in imx8/image.c? >

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Anatolij Gustschin
On Tue, 22 Oct 2019 10:08:42 + Peng Fan peng@nxp.com wrote: ... > > > From common/spl/spl_mmc.c, there is boot partition switch there, Why > > > need to add such logic in imx8/image.c? > > > > spl_mmc_load() reads the container header before partition switching. > > Oh. Indeeded.

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Hi Peng, > > On Tue, 22 Oct 2019 08:13:31 + > Peng Fan peng@nxp.com wrote: > ... > > But I do not understand well. When burn flash.bin into boot partition, > > SPL will be loaded from boot

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Anatolij Gustschin
Hi Peng, On Tue, 22 Oct 2019 08:13:31 + Peng Fan peng@nxp.com wrote: ... > But I do not understand well. When burn flash.bin into boot partition, > SPL will be loaded from boot partition, yes, correct. On my test board flash.bin is in the first boot partition and SPL is loaded as

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
Hi Anatolij, > Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Hi Peng, > > On Tue, 22 Oct 2019 02:43:31 + > Peng Fan peng@nxp.com wrote: > ... > > get_boot_device_offset already switched partition, there is no need to > > add partition switch

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Anatolij Gustschin
Hi Peng, On Tue, 22 Oct 2019 02:43:31 + Peng Fan peng@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

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-21 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin > Sent: 2019年10月21日 23:22 > To: u-boot@lists.denx.de > Cc: sba...@denx.de; feste...@gmail.com; dl-uboot-imx > ; Ye Li > Subject: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Booting with