All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands
@ 2017-09-30  1:54 Otavio Salvador
  2017-09-30  1:55 ` [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define Otavio Salvador
  2017-10-02 13:51 ` [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Otavio Salvador @ 2017-09-30  1:54 UTC (permalink / raw)
  To: u-boot

This rework the board to use the generic filesystem commands instead
of forcing the use of FAT for the boot files.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 configs/mx25pdk_defconfig | 5 +++--
 include/configs/mx25pdk.h | 9 ++++++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/configs/mx25pdk_defconfig b/configs/mx25pdk_defconfig
index e75a82c199..8ed394569a 100644
--- a/configs/mx25pdk_defconfig
+++ b/configs/mx25pdk_defconfig
@@ -15,7 +15,8 @@ CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_DATE=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_MMC=y
+CONFIG_FS_FAT=y
 CONFIG_OF_LIBFDT=y
diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h
index bc41a3362d..57e2a6db36 100644
--- a/include/configs/mx25pdk.h
+++ b/include/configs/mx25pdk.h
@@ -70,6 +70,9 @@
 
 /* U-Boot commands */
 
+/* Filesystem support */
+#define CONFIG_FS_EXT4
+
 /* Ethernet */
 #define CONFIG_FEC_MXC
 #define CONFIG_FEC_MXC_PHYADDR		0x1f
@@ -138,11 +141,11 @@
 	"mmcargs=setenv bootargs console=${console},${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 " \
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define
  2017-09-30  1:54 [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Otavio Salvador
@ 2017-09-30  1:55 ` Otavio Salvador
  2017-10-02 13:51   ` Stefano Babic
  2017-10-02 13:51 ` [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Stefano Babic
  1 sibling, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2017-09-30  1:55 UTC (permalink / raw)
  To: u-boot

The CONFIG_SYS_MMC_ENV_DEV is duplicated, drop it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 include/configs/mx25pdk.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h
index 57e2a6db36..bb100c40df 100644
--- a/include/configs/mx25pdk.h
+++ b/include/configs/mx25pdk.h
@@ -58,8 +58,6 @@
 #define CONFIG_ENV_SIZE        (8 * 1024)
 #define CONFIG_SYS_MMC_ENV_DEV		0
 
-#define CONFIG_SYS_MMC_ENV_DEV 0
-
 /* U-Boot general configuration */
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_SYS_CBSIZE	1024	/* Console I/O Buffer Size  */
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands
  2017-09-30  1:54 [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Otavio Salvador
  2017-09-30  1:55 ` [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define Otavio Salvador
@ 2017-10-02 13:51 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2017-10-02 13:51 UTC (permalink / raw)
  To: u-boot

On 30/09/2017 03:54, Otavio Salvador wrote:
> This rework the board to use the generic filesystem commands instead
> of forcing the use of FAT for the boot files.
> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> 
>  configs/mx25pdk_defconfig | 5 +++--
>  include/configs/mx25pdk.h | 9 ++++++---
>  2 files changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/configs/mx25pdk_defconfig b/configs/mx25pdk_defconfig
> index e75a82c199..8ed394569a 100644
> --- a/configs/mx25pdk_defconfig
> +++ b/configs/mx25pdk_defconfig
> @@ -15,7 +15,8 @@ CONFIG_CMD_MII=y
>  CONFIG_CMD_PING=y
>  CONFIG_CMD_CACHE=y
>  CONFIG_CMD_DATE=y
> -CONFIG_CMD_EXT2=y
> -CONFIG_CMD_FAT=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_DOS_PARTITION=y
>  CONFIG_ENV_IS_IN_MMC=y
> +CONFIG_FS_FAT=y
>  CONFIG_OF_LIBFDT=y
> diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h
> index bc41a3362d..57e2a6db36 100644
> --- a/include/configs/mx25pdk.h
> +++ b/include/configs/mx25pdk.h
> @@ -70,6 +70,9 @@
>  
>  /* U-Boot commands */
>  
> +/* Filesystem support */
> +#define CONFIG_FS_EXT4
> +
>  /* Ethernet */
>  #define CONFIG_FEC_MXC
>  #define CONFIG_FEC_MXC_PHYADDR		0x1f
> @@ -138,11 +141,11 @@
>  	"mmcargs=setenv bootargs console=${console},${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 " \
> 

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic
-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define
  2017-09-30  1:55 ` [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define Otavio Salvador
@ 2017-10-02 13:51   ` Stefano Babic
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2017-10-02 13:51 UTC (permalink / raw)
  To: u-boot

On 30/09/2017 03:55, Otavio Salvador wrote:
> The CONFIG_SYS_MMC_ENV_DEV is duplicated, drop it.
> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> 
>  include/configs/mx25pdk.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h
> index 57e2a6db36..bb100c40df 100644
> --- a/include/configs/mx25pdk.h
> +++ b/include/configs/mx25pdk.h
> @@ -58,8 +58,6 @@
>  #define CONFIG_ENV_SIZE        (8 * 1024)
>  #define CONFIG_SYS_MMC_ENV_DEV		0
>  
> -#define CONFIG_SYS_MMC_ENV_DEV 0
> -
>  /* U-Boot general configuration */
>  #define CONFIG_AUTO_COMPLETE
>  #define CONFIG_SYS_CBSIZE	1024	/* Console I/O Buffer Size  */
> 

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-02 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-30  1:54 [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Otavio Salvador
2017-09-30  1:55 ` [U-Boot] [PATCH 2/2] mx25pdk: Remove duplicated define Otavio Salvador
2017-10-02 13:51   ` Stefano Babic
2017-10-02 13:51 ` [U-Boot] [PATCH 1/2] mx25pdk: Use generic filesystem commands Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.