[PATCH] spl: mmc: Resolve emmc not load image after switched hw partition

KuanLim.Lee kuanlim.lee at starfivetech.com
Tue Oct 10 10:14:42 CEST 2023


Hi,

Is this patch considered as accepted?

> -----Original Message-----
> From: KuanLim.Lee <kuanlim.lee at starfivetech.com>
> Sent: Tuesday, October 3, 2023 12:17 PM
> To: u-boot at lists.denx.de
> Cc: Cheehong Ang <cheehong.ang at starfivetech.com>; WeiLiang Lim
> <weiliang.lim at starfivetech.com>; KuanLim.Lee
> <kuanlim.lee at starfivetech.com>
> Subject: [PATCH] spl: mmc: Resolve emmc not load image after switched hw
> partition
> 
> When selecting MMCSD_MODE_EMMCBOOT as boot_mode, emmc do not
> load U-boot proper image after switched hardware partition.
> 
> Signed-off-by: Kuan Lim Lee <kuanlim.lee at starfivetech.com>
> Reviewed-by: Chee Hong Ang <cheehong.ang at starfivetech.com>
> Reviewed-by: Wei Liang Lim <weiliang.lim at starfivetech.com>
> ---
>  common/spl/spl_mmc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index
> 20f687e138..dc8a45222b 100644
> --- a/common/spl/spl_mmc.c
> +++ b/common/spl/spl_mmc.c
> @@ -447,6 +447,9 @@ int spl_mmc_load(struct spl_image_info *spl_image,
> #endif
>  			return err;
>  		}
> +		err = mmc_load_image_raw_sector(spl_image, bootdev, mmc,
> 0);
> +		if (!err)
> +			return err;
>  		/* Fall through */
>  	case MMCSD_MODE_RAW:
>  		debug("spl: mmc boot mode: raw\n");
> --
> 2.34.1



More information about the U-Boot mailing list