[U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE

From: Fabio Estevam fabio.estevam@freescale.com
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
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/warp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/warp.h b/include/configs/warp.h index 2673948..f0a912b 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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 \

From: Fabio Estevam fabio.estevam@freescale.com
Warp uses eMMC connected to esdhc2 port, so fix CONFIG_SYS_FSL_ESDHC_ADDR to reflect that.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/warp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/warp.h b/include/configs/warp.h index f0a912b..a67254e 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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

On 27/05/2015 06:11, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
Warp uses eMMC connected to esdhc2 port, so fix CONFIG_SYS_FSL_ESDHC_ADDR to reflect that.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com
include/configs/warp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/warp.h b/include/configs/warp.h index f0a912b..a67254e 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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

From: Fabio Estevam fabio.estevam@freescale.com
CONFIG_SUPPORT_EMMC_BOOT is important to enable the boot partition via 'mmc partconf 0 1 1 0' command, for example.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/warp.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/warp.h b/include/configs/warp.h index a67254e..5463c40 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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

On 27/05/2015 06:11, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
CONFIG_SUPPORT_EMMC_BOOT is important to enable the boot partition via 'mmc partconf 0 1 1 0' command, for example.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com
include/configs/warp.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/warp.h b/include/configs/warp.h index a67254e..5463c40 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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

From: Fabio Estevam fabio.estevam@freescale.com
Select the fuse command support.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- include/configs/warp.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/warp.h b/include/configs/warp.h index 5463c40..296ea83 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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" \

On 27/05/2015 06:11, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
Select the fuse command support.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com
include/configs/warp.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/warp.h b/include/configs/warp.h index 5463c40..296ea83 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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

From: Fabio Estevam fabio.estevam@freescale.com
After the mx6 config consolidation, 'save' command is no longer recognized.
Pass the full command name 'saveenv' instead.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com --- board/warp/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/warp/README b/board/warp/README index db3100e..22f9055 100644 --- a/board/warp/README +++ b/board/warp/README @@ -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

On 27/05/2015 06:11, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
After the mx6 config consolidation, 'save' command is no longer recognized.
Pass the full command name 'saveenv' instead.
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com
board/warp/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/warp/README b/board/warp/README index db3100e..22f9055 100644 --- a/board/warp/README +++ b/board/warp/README @@ -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

On 27/05/2015 06:11, Fabio Estevam wrote:
From: Fabio Estevam fabio.estevam@freescale.com
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
Signed-off-by: Fabio Estevam fabio.estevam@freescale.com
include/configs/warp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/warp.h b/include/configs/warp.h index 2673948..f0a912b 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -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
participants (2)
-
Fabio Estevam
-
Stefano Babic