Skip to contentSkip to conversation

mx53loco: Use generic 'load' command instead of 'fatload'

PATCH New Guillaume GARDET 3 participants 5 messages Jun 16, 2015 – Jul 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Jason Liu <[email protected]>
Cc Stefano Babic <[email protected]>
---
 include/configs/mx53loco.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/configs/mx53loco.h +4 -3
index db551a9..b3ac5e2 100644
@@ -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 " \
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH 1/1 mx53loco: Use generic 'load' command instead of 'fatload'

Quoted 11 lines

-----Original Message-----
From: Guillaume GARDET [mailto:guillaume.gardet at free.fr]
Sent: Tuesday, June 16, 2015 5:49 PM
To: u-boot at lists.denx.de
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.

Quoted 7 lines

This allows to use EXT partition instead of FAT, while keeping FAT compatibility.

Cc Jason Liu <[email protected]>
Cc Stefano Babic <[email protected]>
Quoted 38 lines
---
 include/configs/mx53loco.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/configs/mx53loco.h +4 -3
index db551a9..b3ac5e2 100644
@@ -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" \
include/configs/mx53loco.h +0 -0
 	"mmcboot=echo Booting from mmc ...; " \
 		"run mmcargs; " \
 		"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then "

\
--
1.8.4.5

#2 lore raw

PATCH 1/1 mx53loco: Use generic 'load' command instead of 'fatload'

Le 16/06/2015 13:51, Liu Jason a ?crit :

Quoted 11 lines
Quoted 11 lines

-----Original Message-----
From: Guillaume GARDET [mailto:guillaume.gardet at free.fr]
Sent: Tuesday, June 16, 2015 5:49 PM
To: u-boot at lists.denx.de
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.

Quoted 8 lines
Quoted 7 lines

This allows to use EXT partition instead of FAT, while keeping FAT compatibility.

Cc Jason Liu <[email protected]>
Cc Stefano Babic <[email protected]>

Stefano, could you merge it, please? It would be nice to get it in 2015.07 release.

Guillaume

Quoted 39 lines
Quoted 38 lines
---
  include/configs/mx53loco.h | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
include/configs/mx53loco.h +4 -3
index db551a9..b3ac5e2 100644
@@ -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

#3 lore raw

PATCH 1/1 mx53loco: Use generic 'load' command instead of 'fatload'

Hi Guillaume,

Quoted 18 lines · Guillaume Gardet

Le 16/06/2015 13:51, Liu Jason a ?crit :

Quoted 15 lines
Quoted 15 lines

-----Original Message-----
From: Guillaume GARDET [mailto:guillaume.gardet at free.fr]
Sent: Tuesday, June 16, 2015 5:49 PM
To: u-boot at lists.denx.de
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.

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines
Cc Jason Liu <[email protected]>
Cc Stefano Babic <[email protected]>

Stefano, could you merge it, please? It would be nice to get it in 2015.07 release.

Yes, I do it.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================
#4 lore raw

PATCH 1/1 mx53loco: Use generic 'load' command instead of 'fatload'

Le 06/07/2015 12:26, Stefano Babic a ?crit :

Quoted 22 lines

Hi Guillaume,

Quoted 19 lines · Guillaume Gardet

Le 16/06/2015 13:51, Liu Jason a ?crit :

Quoted 17 lines
Quoted 17 lines

-----Original Message-----
From: Guillaume GARDET [mailto:guillaume.gardet at free.fr]
Sent: Tuesday, June 16, 2015 5:49 PM
To: u-boot at lists.denx.de
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.

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Cc Jason Liu <[email protected]>
Cc Stefano Babic <[email protected]>

Stefano, could you merge it, please? It would be nice to get it in 2015.07 release.

Yes, I do it.

Thanks!

Guillaume

Quoted 5 lines

Best regards,
Stefano Babic