public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE
@ 2015-05-27  4:11 Fabio Estevam
  2015-05-27  4:11 ` [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Fabio Estevam @ 2015-05-27  4:11 UTC (permalink / raw)
  To: u-boot

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 \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR
  2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
@ 2015-05-27  4:11 ` Fabio Estevam
  2015-05-28  9:54   ` Stefano Babic
  2015-05-27  4:11 ` [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT Fabio Estevam
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-05-27  4:11 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT
  2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
  2015-05-27  4:11 ` [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR Fabio Estevam
@ 2015-05-27  4:11 ` Fabio Estevam
  2015-05-28  9:54   ` Stefano Babic
  2015-05-27  4:11 ` [U-Boot] [PATCH 4/5] warp: Add fuse command support Fabio Estevam
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-05-27  4:11 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 4/5] warp: Add fuse command support
  2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
  2015-05-27  4:11 ` [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR Fabio Estevam
  2015-05-27  4:11 ` [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT Fabio Estevam
@ 2015-05-27  4:11 ` Fabio Estevam
  2015-05-28  9:54   ` Stefano Babic
  2015-05-27  4:11 ` [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command Fabio Estevam
  2015-05-28  9:54 ` [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Stefano Babic
  4 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-05-27  4:11 UTC (permalink / raw)
  To: u-boot

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" \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command
  2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
                   ` (2 preceding siblings ...)
  2015-05-27  4:11 ` [U-Boot] [PATCH 4/5] warp: Add fuse command support Fabio Estevam
@ 2015-05-27  4:11 ` Fabio Estevam
  2015-05-28  9:54   ` Stefano Babic
  2015-05-28  9:54 ` [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Stefano Babic
  4 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-05-27  4:11 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE
  2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
                   ` (3 preceding siblings ...)
  2015-05-27  4:11 ` [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command Fabio Estevam
@ 2015-05-28  9:54 ` Stefano Babic
  4 siblings, 0 replies; 10+ messages in thread
From: Stefano Babic @ 2015-05-28  9:54 UTC (permalink / raw)
  To: u-boot

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

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR
  2015-05-27  4:11 ` [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR Fabio Estevam
@ 2015-05-28  9:54   ` Stefano Babic
  0 siblings, 0 replies; 10+ messages in thread
From: Stefano Babic @ 2015-05-28  9:54 UTC (permalink / raw)
  To: u-boot

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

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT
  2015-05-27  4:11 ` [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT Fabio Estevam
@ 2015-05-28  9:54   ` Stefano Babic
  0 siblings, 0 replies; 10+ messages in thread
From: Stefano Babic @ 2015-05-28  9:54 UTC (permalink / raw)
  To: u-boot

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


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 4/5] warp: Add fuse command support
  2015-05-27  4:11 ` [U-Boot] [PATCH 4/5] warp: Add fuse command support Fabio Estevam
@ 2015-05-28  9:54   ` Stefano Babic
  0 siblings, 0 replies; 10+ messages in thread
From: Stefano Babic @ 2015-05-28  9:54 UTC (permalink / raw)
  To: u-boot

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


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command
  2015-05-27  4:11 ` [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command Fabio Estevam
@ 2015-05-28  9:54   ` Stefano Babic
  0 siblings, 0 replies; 10+ messages in thread
From: Stefano Babic @ 2015-05-28  9:54 UTC (permalink / raw)
  To: u-boot

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


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-05-28  9:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27  4:11 [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Fabio Estevam
2015-05-27  4:11 ` [U-Boot] [PATCH 2/5] warp: Fix CONFIG_SYS_FSL_ESDHC_ADDR Fabio Estevam
2015-05-28  9:54   ` Stefano Babic
2015-05-27  4:11 ` [U-Boot] [PATCH 3/5] warp: Enable CONFIG_SUPPORT_EMMC_BOOT Fabio Estevam
2015-05-28  9:54   ` Stefano Babic
2015-05-27  4:11 ` [U-Boot] [PATCH 4/5] warp: Add fuse command support Fabio Estevam
2015-05-28  9:54   ` Stefano Babic
2015-05-27  4:11 ` [U-Boot] [PATCH 5/5] warp: Fix the 'saveenv' command Fabio Estevam
2015-05-28  9:54   ` Stefano Babic
2015-05-28  9:54 ` [U-Boot] [PATCH 1/5] warp: Adjust CONFIG_SYS_DFU_DATA_BUF_SIZE Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox