Skip to contentSkip to conversation

warp7: configs: enable CONFIG_CMD_FS_GENERIC

PATCH New Pierre-Jean TEXIER 3 participants 6 messages Mar 28, 2018 – Mar 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 warp7: configs: enable CONFIG_CMD_FS_GENERIC

This enable generic file system commands (load, ls).

---
Changes for v2:
- None

 configs/warp7_defconfig        | 1 +
 configs/warp7_secure_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/warp7_defconfig +1 -0
index 29c4512..3856918 100644
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DFU_MMC=y
 CONFIG_USB=y
configs/warp7_secure_defconfig +1 -0
index 7310855..e894578 100644
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
 CONFIG_DFU_MMC=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 2/2 warp7: include/configs: use generic fs commands in CONFIG_EXTRA_ENV_SETTINGS

use the generic filesystem command 'load' rather
than 'fatload' to avoid per-fs specific commands.

---
Changes for v2:
- apply modications into warp7.h
- replace fatload command in CONFIG_EXTRA_ENV_SETTINGS (prefer 'load')

 include/configs/warp7.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/warp7.h +3 -3
index fe96988..82dc629 100644
@@ -45,11 +45,11 @@
 	"mmcargs=setenv bootargs console=${console},${baudrate} " \
 		"root=PARTUUID=${uuid} rootwait rw\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 finduuid; " \
 		"run mmcargs; " \
Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 1/2 warp7: configs: enable CONFIG_CMD_FS_GENERIC

In reply to Pierre-Jean TEXIER
Quoted 29 lines · Pierre-Jean TEXIER

This enable generic file system commands (load, ls).

---
Changes for v2:
- None

  configs/warp7_defconfig        | 1 +
  configs/warp7_secure_defconfig | 1 +
  2 files changed, 2 insertions(+)
configs/warp7_defconfig +1 -0
index 29c4512..3856918 100644
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
  CONFIG_CMD_EXT4=y
  CONFIG_CMD_EXT4_WRITE=y
  CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
  CONFIG_NET_RANDOM_ETHADDR=y
  CONFIG_DFU_MMC=y
  CONFIG_USB=y
configs/warp7_secure_defconfig +0 -0
index 7310855..e894578 100644

configs/warp7_secure_defconfig CONFIG_CMD_EXT2=y · line 32

Quoted 7 lines
configs/warp7_secure_defconfig +1 -0
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
  CONFIG_CMD_EXT4=y
  CONFIG_CMD_EXT4_WRITE=y
  CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
  CONFIG_DFU_MMC=y
  CONFIG_USB=y
  CONFIG_USB_EHCI_HCD=y

Pierre,

Myself and Fabio have discussed dropping warp7_secure_defconfig. I've tested your change and it works well for the patchset I have in flight.

https://patchwork.ozlabs.org/patch/893882/

Could you drop the part of this patch for warp7_secure_defconfig - in a v3 ?

That way my patch and your patch can apply independently and in any order

---
bod

#5 lore raw

PATCH v2 1/2 warp7: configs: enable CONFIG_CMD_FS_GENERIC

Hi Bryan,

2018-04-01 0:21 GMT+02:00 Bryan O'Donoghue <[email protected]>:

Quoted 44 lines · Pierre-Jean TEXIER
Quoted 32 lines

This enable generic file system commands (load, ls).

---
Changes for v2:
- None

  configs/warp7_defconfig        | 1 +
  configs/warp7_secure_defconfig | 1 +
  2 files changed, 2 insertions(+)
configs/warp7_defconfig +1 -0
index 29c4512..3856918 100644
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
  CONFIG_CMD_EXT4=y
  CONFIG_CMD_EXT4_WRITE=y
  CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
  CONFIG_NET_RANDOM_ETHADDR=y
  CONFIG_DFU_MMC=y
  CONFIG_USB=y
configs/warp7_secure_defconfig +0 -0
index 7310855..e894578 100644

configs/warp7_secure_defconfig CONFIG_CMD_EXT2=y · line 32

Quoted 7 lines
configs/warp7_secure_defconfig +1 -0
@@ -26,6 +26,7 @@ CONFIG_CMD_EXT2=y
  CONFIG_CMD_EXT4=y
  CONFIG_CMD_EXT4_WRITE=y
  CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
  CONFIG_DFU_MMC=y
  CONFIG_USB=y
  CONFIG_USB_EHCI_HCD=y

Pierre,

Quoted 8 lines

Myself and Fabio have discussed dropping warp7_secure_defconfig. I've tested your change and it works well for the patchset I have in flight.

https://patchwork.ozlabs.org/patch/893882/

Could you drop the part of this patch for warp7_secure_defconfig - in a v3 ?

No problem, I will send a v3.

Quoted 8 lines

That way my patch and your patch can apply independently and in any order

---
bod

---
Pierre-Jean