Skip to contentSkip to conversation

warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE

PATCH New Fabio Estevam 2 participants 10 messages May 27, 2015 – May 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE

From: Fabio Estevam <[email protected]>

Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE in order to avoid the following error when running the dfu command:
=> dfu 0 mmc 0
dfu_get_buf: Could not memalign 0x2000000 bytes

---
 include/configs/warp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/warp.h +1 -1
index 2673948..f0a912b 100644
@@ -94,7 +94,7 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_DFU_FUNCTION
 #define CONFIG_DFU_MMC
-#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/5 warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR

From: Fabio Estevam <[email protected]>

Warp uses eMMC connected to esdhc2 port, so fix
CONFIG_SYS_FSL_ESDHC_ADDR to reflect that.

---
 include/configs/warp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/warp.h +1 -1
index f0a912b..a67254e 100644
@@ -25,7 +25,7 @@
 #define CONFIG_MXC_UART_BASE		UART1_IPS_BASE_ADDR
 
 /* MMC Configs */
-#define CONFIG_SYS_FSL_ESDHC_ADDR	0
+#define CONFIG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 #define CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT
 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/5 warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR

Quoted 16 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Warp uses eMMC connected to esdhc2 port, so fix
CONFIG_SYS_FSL_ESDHC_ADDR to reflect that.

---
 include/configs/warp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/warp.h +0 -0
index f0a912b..a67254e 100644

include/configs/warp.h line 31

Quoted 8 lines
include/configs/warp.h +1 -1
@@ -25,7 +25,7 @@
 #define CONFIG_MXC_UART_BASE		UART1_IPS_BASE_ADDR
 
 /* MMC Configs */
-#define CONFIG_SYS_FSL_ESDHC_ADDR	0
+#define CONFIG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 #define CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT
 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
 

Applied to u-boot-imx, thanks !

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
=====================================================================
#3 lore raw

PATCH 3/5 warp: Enable CONFIG_SUPPORT_EMMC_BOOT

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

CONFIG_SUPPORT_EMMC_BOOT is important to enable the boot partition via 'mmc partconf 0 1 1 0' command, for example.

---
 include/configs/warp.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/warp.h +1 -0
index a67254e..5463c40 100644
@@ -28,6 +28,7 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 #define CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT
 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
+#define CONFIG_SUPPORT_EMMC_BOOT
 
 /* Command definition */
 #undef CONFIG_CMD_NET
Signature · 1 line
1.9.1
#4 lore raw

PATCH 3/5 warp: Enable CONFIG_SUPPORT_EMMC_BOOT

Quoted 16 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

CONFIG_SUPPORT_EMMC_BOOT is important to enable the boot partition via 'mmc partconf 0 1 1 0' command, for example.

---
 include/configs/warp.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/warp.h +0 -0
index a67254e..5463c40 100644

include/configs/warp.h line 34

Quoted 7 lines
include/configs/warp.h +1 -0
@@ -28,6 +28,7 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 #define CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT
 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
+#define CONFIG_SUPPORT_EMMC_BOOT
 
 /* Command definition */
 #undef CONFIG_CMD_NET

Applied to u-boot-imx, thanks !

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
=====================================================================
#5 lore raw

PATCH 4/5 warp: Add fuse command support

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

Select the fuse command support.

---
 include/configs/warp.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/warp.h +4 -0
index 5463c40..296ea83 100644
@@ -98,6 +98,10 @@
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
+/* Fuses */
+#define CONFIG_CMD_FUSE
+#define CONFIG_MXC_OCOTP
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
 	"image=zImage\0" \
Signature · 1 line
1.9.1
#6 lore raw

PATCH 4/5 warp: Add fuse command support

Quoted 15 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Select the fuse command support.

---
 include/configs/warp.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/warp.h +0 -0
index 5463c40..296ea83 100644

include/configs/warp.h line 107

Quoted 10 lines
include/configs/warp.h +4 -0
@@ -98,6 +98,10 @@
 #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
+/* Fuses */
+#define CONFIG_CMD_FUSE
+#define CONFIG_MXC_OCOTP
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
 	"image=zImage\0" \

Applied to u-boot-imx, thanks !

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
=====================================================================
#7 lore raw

PATCH 5/5 warp: Fix the 'saveenv' command

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

After the mx6 config consolidation, 'save' command is no longer recognized.

Pass the full command name 'saveenv' instead.

---
 board/warp/README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/warp/README +1 -1
index db3100e..22f9055 100644
@@ -34,7 +34,7 @@ Then U-boot should start and its messages will appear in the console program.
 Use the default environment variables:
 
 => env default -f -a
-=> save
+=> saveenv
 
 Run the DFU command:
 => dfu 0 mmc 0
Signature · 1 line
1.9.1
#8 lore raw

PATCH 5/5 warp: Fix the 'saveenv' command

Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

After the mx6 config consolidation, 'save' command is no longer recognized.

Pass the full command name 'saveenv' instead.

---
 board/warp/README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/warp/README +0 -0
index db3100e..22f9055 100644

board/warp/README Then U-boot should start and its messages will appear in the console program. · line 40

Quoted 8 lines
board/warp/README +1 -1
@@ -34,7 +34,7 @@ Then U-boot should start and its messages will appear in the console program.
 Use the default environment variables:
 
 => env default -f -a
-=> save
+=> saveenv
 
 Run the DFU command:
 => dfu 0 mmc 0

Applied to u-boot-imx, thanks !

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
=====================================================================
#9 lore raw

PATCH 1/5 warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE

In reply to Fabio Estevam
Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE in order to avoid the following error when running the dfu command:
=> dfu 0 mmc 0
dfu_get_buf: Could not memalign 0x2000000 bytes

---
 include/configs/warp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/warp.h +0 -0
index 2673948..f0a912b 100644

include/configs/warp.h line 100

Quoted 8 lines
include/configs/warp.h +1 -1
@@ -94,7 +94,7 @@
 #define CONFIG_CMD_DFU
 #define CONFIG_DFU_FUNCTION
 #define CONFIG_DFU_MMC
-#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
 #define CONFIG_EXTRA_ENV_SETTINGS \

Applied to u-boot-imx, thanks !

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
=====================================================================