[PATCH 3/3] ARM: i.MX: bbu-internal: update board files to make use of new bbu handler

Sascha Hauer s.hauer at pengutronix.de
Mon Oct 23 00:23:56 PDT 2017


On Wed, Oct 18, 2017 at 03:41:17PM +0200, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> Hello,
> 
> this is only compile tested. There are some boards that write to
> mmcX.boot0.barebox. On the board I tested this series on I don't have
> such a setup, so I didn't touch these. Probably this series needs
> adaption to be able to handle this scenario.
> 
> Best regards
> Uwe
> 
>  arch/arm/boards/dfi-fs700-m60/board.c | 3 +--
>  arch/arm/boards/guf-santaro/board.c   | 2 +-
>  arch/arm/boards/karo-tx6x/board.c     | 4 ++--
>  arch/arm/boards/tqma6x/board.c        | 2 +-
>  4 files changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/boards/dfi-fs700-m60/board.c b/arch/arm/boards/dfi-fs700-m60/board.c
> index bef4612d9e66..c2c73db8e547 100644
> --- a/arch/arm/boards/dfi-fs700-m60/board.c
> +++ b/arch/arm/boards/dfi-fs700-m60/board.c
> @@ -110,8 +110,7 @@ static int dfi_fs700_m60_init(void)
>  	else
>  		flag_mmc |= BBU_HANDLER_FLAG_DEFAULT;
>  
> -	imx6_bbu_internal_mmc_register_handler("mmc", "/dev/mmc3.boot0",
> -		flag_mmc);
> +	imx6_bbu_internal_mmcboot_register_handler("mmc", "mmc3", flag_mmc);

This board at least uses the boot1 partition for the environment, so we
can't use your new handler without moving the environment first.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list