Patchwork [U-Boot,v2,3/3] am335x_evm: enable DFU RAM

login
register
mail settings
Submitter Afzal Mohammed
Date Sept. 10, 2013, 2:45 a.m.
Message ID <027ba9d93fdef47840f37e0f04ef4a6015878d2b.1378780517.git.afzal.mohd.ma@gmail.com>
Download mbox | patch
Permalink /patch/273755/
State Superseded
Delegated to: Marek Vasut
Headers show

Comments

Afzal Mohammed - Sept. 10, 2013, 2:45 a.m.
Enable DFU for RAM, provide example dfu_alt_info

Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
---

v2: new

 include/configs/am335x_evm.h | 6 ++++++
 1 file changed, 6 insertions(+)
Ɓukasz Majewski - Sept. 10, 2013, 9:25 a.m.
Hi Afzal,

> Enable DFU for RAM, provide example dfu_alt_info
> 
> Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
> Cc: Tom Rini <trini@ti.com>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
> ---
> 
> v2: new
> 
>  include/configs/am335x_evm.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/include/configs/am335x_evm.h
> b/include/configs/am335x_evm.h index 7969e07..0449a1f 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -100,6 +100,7 @@
>  	"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
>  	"importbootenv=echo Importing environment from mmc ...; " \
>  		"env import -t $loadaddr $filesize\0" \
> +	"dfu_alt_info_ram=" DFU_ALT_INFO_RAM "\0" \
>  	"ramargs=setenv bootargs console=${console} " \
>  		"${optargs} " \
>  		"root=${ramroot} " \
> @@ -210,6 +211,11 @@
>  	"kernel part 0 8;" \
>  	"rootfs part 0 9"
>  #endif
> +#define CONFIG_DFU_RAM
> +#define DFU_ALT_INFO_RAM \
> +	"kernel ram 0x80200000 0xD80000;" \
> +	"fdt ram 0x80F80000 0x80000;" \
> +	"ramdisk ram 0x81000000 0x4000000"
>  
>  /* NS16550 Configuration */
>  #define CONFIG_SYS_NS16550_COM1		0x44e09000	/*
> Base EVM has UART0 */

Seems OK for me (but I'm not AM335x maintainer).

Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>

Patch

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 7969e07..0449a1f 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -100,6 +100,7 @@ 
 	"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
 	"importbootenv=echo Importing environment from mmc ...; " \
 		"env import -t $loadaddr $filesize\0" \
+	"dfu_alt_info_ram=" DFU_ALT_INFO_RAM "\0" \
 	"ramargs=setenv bootargs console=${console} " \
 		"${optargs} " \
 		"root=${ramroot} " \
@@ -210,6 +211,11 @@ 
 	"kernel part 0 8;" \
 	"rootfs part 0 9"
 #endif
+#define CONFIG_DFU_RAM
+#define DFU_ALT_INFO_RAM \
+	"kernel ram 0x80200000 0xD80000;" \
+	"fdt ram 0x80F80000 0x80000;" \
+	"ramdisk ram 0x81000000 0x4000000"
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* Base EVM has UART0 */