Skip to contentSkip to conversation

imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

PATCH New Guillaume GARDET 4 participants 6 messages Aug 26, 2014 – Sep 9, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

nitrogen6x.h file defines CONFIG_CMD_FS_GENERIC, so we are able to use generic 'load' command instead of 'fatload'. It allows to use ext filesystem and keep compatibilty with fat filesystem.

---
 include/configs/nitrogen6x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/nitrogen6x.h +3 -3
index b2b17ce..d4b0ac9 100644
@@ -192,11 +192,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" \
-	"loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
-	"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+	"loaduimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\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 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

Quoted 6 lines · Guillaume GARDET

nitrogen6x.h file defines CONFIG_CMD_FS_GENERIC, so we are able to use generic 'load' command instead of 'fatload'. It allows to use ext filesystem and keep compatibilty with fat filesystem.

Adding Eric Nelson on Cc.

Quoted 30 lines
---
 include/configs/nitrogen6x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/nitrogen6x.h +3 -4
index b2b17ce..d4b0ac9 100644
@@ -192,11 +192,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" \
-       "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
-       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+       "loaduimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\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
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw

PATCH 1/1 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

Hi all,

Quoted 11 lines · Fabio Estevam
Quoted 6 lines · Guillaume GARDET

nitrogen6x.h file defines CONFIG_CMD_FS_GENERIC, so we are able to use generic 'load' command instead of 'fatload'. It allows to use ext filesystem and keep compatibilty with fat filesystem.

Adding Eric Nelson on Cc.

Thanks Fabio. I stopped delivery from the list while on vacation and hadn't re-started it.

Quoted 9 lines

include/configs/nitrogen6x.h

Quoted 9 lines
---
 include/configs/nitrogen6x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/nitrogen6x.h +0 -0
index b2b17ce..d4b0ac9 100644
@@ -192,11 +192,11 @@

I've been wondering if anyone was using this section of nitrogen6x.h, and I guess this answers the question.

Quoted 9 lines
Quoted 9 lines
include/configs/nitrogen6x.h +1 -3
        "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" \
-       "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
-       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
Quoted 8 lines
Quoted 8 lines
include/configs/nitrogen6x.h +2 -1
+       "loaduimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\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

I don't have a copy of the original e-mail, but:

#3 lore raw

PATCH 1/1 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

Ping.

Guillaume

Le 01/09/2014 20:27, Eric Nelson a ?crit :

Quoted 50 lines

Hi all,

Quoted 10 lines · Fabio Estevam
Quoted 6 lines · Guillaume GARDET

nitrogen6x.h file defines CONFIG_CMD_FS_GENERIC, so we are able to use generic 'load' command instead of 'fatload'. It allows to use ext filesystem and keep compatibilty with fat filesystem.

Adding Eric Nelson on Cc.

Thanks Fabio. I stopped delivery from the list while on vacation and hadn't re-started it.

Quoted 9 lines

include/configs/nitrogen6x.h

Quoted 9 lines
---
  include/configs/nitrogen6x.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/nitrogen6x.h +0 -0
index b2b17ce..d4b0ac9 100644
@@ -192,11 +192,11 @@

I've been wondering if anyone was using this section of nitrogen6x.h, and I guess this answers the question.

Quoted 9 lines
Quoted 9 lines
include/configs/nitrogen6x.h +1 -3
         "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" \
-       "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
-       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
Quoted 8 lines
Quoted 8 lines
include/configs/nitrogen6x.h +2 -1
+       "loaduimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\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

I don't have a copy of the original e-mail, but:

#4 lore raw

PATCH 1/1 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

Hi Guillaume,

Quoted 1 line · Guillaume Gardet

Ping.

Sorry, I was not in office in the last two weeks. I will go through all i.MX patches (it seems I have something to do..) and I will apply the ones are ready, as yours.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
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
=====================================================================
#5 lore raw

PATCH 1/1 imx: nitrogen6x: Replace 'fatload' by 'load' command in env settings to be filesystem independent

In reply to Guillaume GARDET
Quoted 8 lines · Guillaume GARDET

nitrogen6x.h file defines CONFIG_CMD_FS_GENERIC, so we are able to use generic 'load' command instead of 'fatload'. It allows to use ext filesystem and keep compatibilty with fat filesystem.

---

Applied to u-boot-imx, thanks!

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
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
=====================================================================