> -----Original Message-----
> From: Guillaume GARDET [mailto:[email protected]]
> Sent: Tuesday, June 16, 2015 5:49 PM
> To: [email protected]
> Cc: Guillaume GARDET; Liu Hui-R64343; Stefano Babic
> Subject: [U-Boot] [PATCH] mx53loco: Use generic 'load' command instead of
> 'fatload'
> 
> This patch uses generic 'load' command instead of 'fatload' for
> 'loadbootscript', 'loadimage' and 'loadfdt' for mx53loco board.
> 
> This allows to use EXT partition instead of FAT, while keeping FAT
> compatibility.
> 
> Signed-off-by: Guillaume GARDET <[email protected]>
> 
> Cc: Jason Liu <[email protected]>
> Cc: Stefano Babic <[email protected]>

Acked-by: Jason Liu <[email protected]>

> 
> ---
>  include/configs/mx53loco.h | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h
> index db551a9..b3ac5e2 100644
> --- a/include/configs/mx53loco.h
> +++ b/include/configs/mx53loco.h
> @@ -43,6 +43,7 @@
>  #define CONFIG_MMC
>  #define CONFIG_CMD_MMC
>  #define CONFIG_GENERIC_MMC
> +#define CONFIG_CMD_FS_GENERIC
>  #define CONFIG_CMD_FAT
>  #define CONFIG_CMD_EXT2
>  #define CONFIG_DOS_PARTITION
> @@ -116,11 +117,11 @@
>       "mmcroot=/dev/mmcblk0p2 rw rootwait\0" \
>       "mmcargs=setenv bootargs console=ttymxc0,${baudrate}
> root=${mmcroot}\0" \
>       "loadbootscript=" \
> -             "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
> +             "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
>       "bootscript=echo Running bootscript from mmc ...; " \
>               "source\0" \
> -     "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0"
> \
> -     "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr}
> ${fdt_file}\0" \
> +     "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
> +     "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
>       "mmcboot=echo Booting from mmc ...; " \
>               "run mmcargs; " \
>               "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then "
> \
> --
> 1.8.4.5

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to