* [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack
@ 2012-05-15 20:59 Otavio Salvador
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
` (2 more replies)
0 siblings, 3 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 20:59 UTC (permalink / raw)
To: u-boot
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
---
include/configs/m28evk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index 68e46b7..a076aa5 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -88,7 +88,7 @@
#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
#define PHYS_SDRAM_1 0x40000000 /* Base address */
#define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MB RAM */
-#define CONFIG_STACKSIZE 0x00010000 /* 128 KB stack */
+#define CONFIG_STACKSIZE (128 * 1024) /* 128 KB stack */
#define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for malloc */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* Initial data */
#define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start adr */
--
1.7.10
^ permalink raw reply related [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 20:59 [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Otavio Salvador
@ 2012-05-15 20:59 ` Otavio Salvador
2012-05-15 21:14 ` Marek Vasut
2012-06-13 9:06 ` Stefano Babic
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
2012-05-15 21:14 ` [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Marek Vasut
2 siblings, 2 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 20:59 UTC (permalink / raw)
To: u-boot
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
---
include/configs/m28evk.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index a076aa5..29ea8eb 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -43,8 +43,6 @@
#define CONFIG_ARCH_CPU_INIT
#define CONFIG_ARCH_MISC_INIT
-#define CONFIG_OF_LIBFDT
-
/*
* SPL
*/
--
1.7.10
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
@ 2012-05-15 21:14 ` Marek Vasut
2012-05-15 21:34 ` Otavio Salvador
2012-06-13 9:06 ` Stefano Babic
1 sibling, 1 reply; 26+ messages in thread
From: Marek Vasut @ 2012-05-15 21:14 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
Please drop the other one, so this is the same as mx28evk.h and we can easily
unify it. btw how did you find this?
> ---
> include/configs/m28evk.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
> index a076aa5..29ea8eb 100644
> --- a/include/configs/m28evk.h
> +++ b/include/configs/m28evk.h
> @@ -43,8 +43,6 @@
> #define CONFIG_ARCH_CPU_INIT
> #define CONFIG_ARCH_MISC_INIT
>
> -#define CONFIG_OF_LIBFDT
> -
> /*
> * SPL
> */
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 21:14 ` Marek Vasut
@ 2012-05-15 21:34 ` Otavio Salvador
2012-05-15 22:05 ` Marek Vasut
0 siblings, 1 reply; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 21:34 UTC (permalink / raw)
To: u-boot
On Tue, May 15, 2012 at 6:14 PM, Marek Vasut <marex@denx.de> wrote:
> Please drop the other one, so this is the same as mx28evk.h and we can easily
> unify it. btw how did you find this?
Good; will check it.
I found it when looking about common stuff in boad configs; I am still
willing to try to have a common header file for both but I am first
interested in move i.MX23 further.
--
Otavio Salvador? ? ? ? ? ? ? ? ? ? ? ? ? ? ?O.S. Systems
E-mail: otavio at ossystems.com.br? http://www.ossystems.com.br
Mobile: +55 53 9981-7854? ? ? ?? ? ? ?http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 21:34 ` Otavio Salvador
@ 2012-05-15 22:05 ` Marek Vasut
2012-05-15 23:03 ` Otavio Salvador
0 siblings, 1 reply; 26+ messages in thread
From: Marek Vasut @ 2012-05-15 22:05 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> On Tue, May 15, 2012 at 6:14 PM, Marek Vasut <marex@denx.de> wrote:
> > Please drop the other one, so this is the same as mx28evk.h and we can
> > easily unify it. btw how did you find this?
>
> Good; will check it.
>
> I found it when looking about common stuff in boad configs; I am still
> willing to try to have a common header file for both but I am first
> interested in move i.MX23 further.
Ok, so let's do it this way:
You submit your MX23 stuff, let's get that in. Then we can start with this
consolidation. Is it OK?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 22:05 ` Marek Vasut
@ 2012-05-15 23:03 ` Otavio Salvador
2012-05-15 23:18 ` Marek Vasut
0 siblings, 1 reply; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 23:03 UTC (permalink / raw)
To: u-boot
On Tue, May 15, 2012 at 7:05 PM, Marek Vasut <marex@denx.de> wrote:
> You submit your MX23 stuff, let's get that in. Then we can start with this
> consolidation. Is it OK?
This works but wouldn't be better to avoid a duplication before it? It
doesn't matter for me but I'd prefer it fixed.
--
Otavio Salvador? ? ? ? ? ? ? ? ? ? ? ? ? ? ?O.S. Systems
E-mail: otavio at ossystems.com.br? http://www.ossystems.com.br
Mobile: +55 53 9981-7854? ? ? ?? ? ? ?http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 23:03 ` Otavio Salvador
@ 2012-05-15 23:18 ` Marek Vasut
2012-05-15 23:55 ` Otavio Salvador
0 siblings, 1 reply; 26+ messages in thread
From: Marek Vasut @ 2012-05-15 23:18 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> On Tue, May 15, 2012 at 7:05 PM, Marek Vasut <marex@denx.de> wrote:
> > You submit your MX23 stuff, let's get that in. Then we can start with
> > this consolidation. Is it OK?
>
> This works but wouldn't be better to avoid a duplication before it? It
> doesn't matter for me but I'd prefer it fixed.
I'm all for applying this 2/3, the rest should be discussed more thoroughly.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 23:18 ` Marek Vasut
@ 2012-05-15 23:55 ` Otavio Salvador
2012-05-16 1:00 ` Marek Vasut
0 siblings, 1 reply; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 23:55 UTC (permalink / raw)
To: u-boot
On Tue, May 15, 2012 at 8:18 PM, Marek Vasut <marex@denx.de> wrote:
>> This works but wouldn't be better to avoid a duplication before it? It
>> doesn't matter for me but I'd prefer it fixed.
>
> I'm all for applying this 2/3, the rest should be discussed more thoroughly.
I checked mx28evk and m28evk config and both are setting
CONFIG_OF_LIBFDT at same place now. It seems this patch is the way to
go. Please take a look and confirm it.
--
Otavio Salvador? ? ? ? ? ? ? ? ? ? ? ? ? ? ?O.S. Systems
E-mail: otavio at ossystems.com.br? http://www.ossystems.com.br
Mobile: +55 53 9981-7854? ? ? ?? ? ? ?http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 23:55 ` Otavio Salvador
@ 2012-05-16 1:00 ` Marek Vasut
0 siblings, 0 replies; 26+ messages in thread
From: Marek Vasut @ 2012-05-16 1:00 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> On Tue, May 15, 2012 at 8:18 PM, Marek Vasut <marex@denx.de> wrote:
> >> This works but wouldn't be better to avoid a duplication before it? It
> >> doesn't matter for me but I'd prefer it fixed.
> >
> > I'm all for applying this 2/3, the rest should be discussed more
> > thoroughly.
>
> I checked mx28evk and m28evk config and both are setting
> CONFIG_OF_LIBFDT at same place now. It seems this patch is the way to
> go. Please take a look and confirm it.
Ok good
Acked-by: Marek Vasut <marex@denx.de>
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
2012-05-15 21:14 ` Marek Vasut
@ 2012-06-13 9:06 ` Stefano Babic
1 sibling, 0 replies; 26+ messages in thread
From: Stefano Babic @ 2012-06-13 9:06 UTC (permalink / raw)
To: u-boot
On 15/05/2012 22:59, Otavio Salvador wrote:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> ---
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
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] 26+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 20:59 [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Otavio Salvador
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
@ 2012-05-15 20:59 ` Otavio Salvador
2012-05-15 21:08 ` Fabio Estevam
` (2 more replies)
2012-05-15 21:14 ` [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Marek Vasut
2 siblings, 3 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 20:59 UTC (permalink / raw)
To: u-boot
The environment has been based on mx53loco and m28evk but keeping the
possibility to easy change the default console device as Freescale and
mainline kernels differ on the device name.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
---
include/configs/mx28evk.h | 83 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 75 insertions(+), 8 deletions(-)
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index e98a746..6c2bf5f 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -234,7 +234,6 @@
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTFILE "uImage"
-#define CONFIG_BOOTCOMMAND "run bootcmd_net"
#define CONFIG_LOADADDR 0x42000000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_OF_LIBFDT
@@ -243,13 +242,81 @@
* Extra Environments
*/
#define CONFIG_EXTRA_ENV_SETTINGS \
- "console_fsl=console=ttyAM0" \
- "console_mainline=console=ttyAMA0" \
- "netargs=setenv bootargs console=${console_mainline}" \
+ "update_nand_full_filename=u-boot.nand\0" \
+ "update_nand_firmware_filename=u-boot.sb\0" \
+ "update_sd_firmware_filename=u-boot.sd\0" \
+ "update_nand_firmware_maxsz=0x100000\0" \
+ "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_get_fcb_size=" /* Get size of FCB blocks */ \
+ "nand device 0 ; " \
+ "nand info ; " \
+ "setexpr fcb_sz ${update_nand_stride} * ${update_nand_count};" \
+ "setexpr update_nand_fcb ${fcb_sz} * ${nand_writesize}\0" \
+ "update_nand_full=" /* Update FCB, DBBT and FW */ \
+ "if tftp ${update_nand_full_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "nand scrub -y 0x0 ${filesize} ; " \
+ "nand write.raw ${loadaddr} 0x0 ${update_nand_fcb} ; " \
+ "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \
+ "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \
+ "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \
+ "fi\0" \
+ "update_nand_firmware=" /* Update only firmware */ \
+ "if tftp ${update_nand_firmware_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB + DBBT */ \
+ "setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; " \
+ "setexpr fw_off ${fcb_sz} + ${update_nand_firmware_maxsz};" \
+ "nand erase ${fcb_sz} ${fw_sz} ; " \
+ "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
+ "nand write ${loadaddr} ${fw_off} ${filesize} ; " \
+ "fi\0" \
+ "update_sd_firmware=" /* Update the SD firmware partition */ \
+ "if mmc rescan ; then " \
+ "if tftp ${update_sd_firmware_filename} ; then " \
+ "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
+ "setexpr fw_sz ${fw_sz} + 1 ; " \
+ "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
+ "fi ; " \
+ "fi\0" \
+ "script=boot.scr\0" \
+ "uimage=uImage\0" \
+ "console_fsl=ttyAM0\0" \
+ "console_mainline=ttyAMA0\0" \
+ "console=${console_mainline}\0" \
+ "mmcdev=0\0" \
+ "mmcpart=2\0" \
+ "mmcroot=/dev/mmcblk0p3 rw\0" \
+ "mmcrootfstype=ext3 rootwait\0" \
+ "mmcargs=setenv bootargs console=${console},${baudrate} " \
+ "root=${mmcroot} " \
+ "rootfstype=${mmcrootfstype}\0" \
+ "loadbootscript=" \
+ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
+ "bootscript=echo Running bootscript from mmc ...; " \
+ "source\0" \
+ "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
+ "mmcboot=echo Booting from mmc ...; " \
+ "run mmcargs; " \
+ "bootm\0" \
+ "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
"root=/dev/nfs " \
- "ip=dhcp nfsroot=${serverip}:${nfsroot}\0" \
- "bootcmd_net=echo Booting from net ...; " \
- "run netargs; " \
- "dhcp ${uimage}; bootm\0" \
+ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
+ "netboot=echo Booting from net ...; " \
+ "run netargs; " \
+ "dhcp ${uimage}; bootm\0"
+
+#define CONFIG_BOOTCOMMAND \
+ "if mmc rescan ${mmcdev}; then " \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "else run netboot; " \
+ "fi; " \
+ "fi; " \
+ "else run netboot; fi"
#endif /* __MX28EVK_CONFIG_H__ */
--
1.7.10
^ permalink raw reply related [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
@ 2012-05-15 21:08 ` Fabio Estevam
2012-05-15 21:18 ` Otavio Salvador
2012-05-15 21:31 ` Otavio Salvador
2012-05-15 21:16 ` Marek Vasut
2012-05-29 20:52 ` Wolfgang Denk
2 siblings, 2 replies; 26+ messages in thread
From: Fabio Estevam @ 2012-05-15 21:08 UTC (permalink / raw)
To: u-boot
On Tue, May 15, 2012 at 5:59 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> + ? ? ? "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
> + ? ? ? "mmcboot=echo Booting from mmc ...; " \
> + ? ? ? ? ? ? ? "run mmcargs; " \
> + ? ? ? ? ? ? ? "bootm\0" \
> + ? ? ? "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
No, ttymxc0 is wrong for mx28. You should use console=${console}.
^ permalink raw reply [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 21:08 ` Fabio Estevam
@ 2012-05-15 21:18 ` Otavio Salvador
2012-05-15 21:31 ` Otavio Salvador
1 sibling, 0 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 21:18 UTC (permalink / raw)
To: u-boot
On Tue, May 15, 2012 at 6:08 PM, Fabio Estevam <festevam@gmail.com> wrote:
> On Tue, May 15, 2012 at 5:59 PM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
>
>> + ? ? ? "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
>> + ? ? ? "mmcboot=echo Booting from mmc ...; " \
>> + ? ? ? ? ? ? ? "run mmcargs; " \
>> + ? ? ? ? ? ? ? "bootm\0" \
>> + ? ? ? "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
>
> No, ttymxc0 is wrong for mx28. You should use console=${console}.
My fault; when I redone it I forgot to fix it once again.
--
Otavio Salvador? ? ? ? ? ? ? ? ? ? ? ? ? ? ?O.S. Systems
E-mail: otavio at ossystems.com.br? http://www.ossystems.com.br
Mobile: +55 53 9981-7854? ? ? ?? ? ? ?http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 21:08 ` Fabio Estevam
2012-05-15 21:18 ` Otavio Salvador
@ 2012-05-15 21:31 ` Otavio Salvador
2012-05-29 20:57 ` Wolfgang Denk
1 sibling, 1 reply; 26+ messages in thread
From: Otavio Salvador @ 2012-05-15 21:31 UTC (permalink / raw)
To: u-boot
The environment has been based on mx53loco and m28evk but keeping the
possibility to easy change the default console device as Freescale and
mainline kernels differ on the device name.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
---
include/configs/mx28evk.h | 83 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 75 insertions(+), 8 deletions(-)
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index e98a746..889d58a 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -234,7 +234,6 @@
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTFILE "uImage"
-#define CONFIG_BOOTCOMMAND "run bootcmd_net"
#define CONFIG_LOADADDR 0x42000000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_OF_LIBFDT
@@ -243,13 +242,81 @@
* Extra Environments
*/
#define CONFIG_EXTRA_ENV_SETTINGS \
- "console_fsl=console=ttyAM0" \
- "console_mainline=console=ttyAMA0" \
- "netargs=setenv bootargs console=${console_mainline}" \
+ "update_nand_full_filename=u-boot.nand\0" \
+ "update_nand_firmware_filename=u-boot.sb\0" \
+ "update_sd_firmware_filename=u-boot.sd\0" \
+ "update_nand_firmware_maxsz=0x100000\0" \
+ "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_get_fcb_size=" /* Get size of FCB blocks */ \
+ "nand device 0 ; " \
+ "nand info ; " \
+ "setexpr fcb_sz ${update_nand_stride} * ${update_nand_count};" \
+ "setexpr update_nand_fcb ${fcb_sz} * ${nand_writesize}\0" \
+ "update_nand_full=" /* Update FCB, DBBT and FW */ \
+ "if tftp ${update_nand_full_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "nand scrub -y 0x0 ${filesize} ; " \
+ "nand write.raw ${loadaddr} 0x0 ${update_nand_fcb} ; " \
+ "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \
+ "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \
+ "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \
+ "fi\0" \
+ "update_nand_firmware=" /* Update only firmware */ \
+ "if tftp ${update_nand_firmware_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB + DBBT */ \
+ "setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; " \
+ "setexpr fw_off ${fcb_sz} + ${update_nand_firmware_maxsz};" \
+ "nand erase ${fcb_sz} ${fw_sz} ; " \
+ "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
+ "nand write ${loadaddr} ${fw_off} ${filesize} ; " \
+ "fi\0" \
+ "update_sd_firmware=" /* Update the SD firmware partition */ \
+ "if mmc rescan ; then " \
+ "if tftp ${update_sd_firmware_filename} ; then " \
+ "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
+ "setexpr fw_sz ${fw_sz} + 1 ; " \
+ "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
+ "fi ; " \
+ "fi\0" \
+ "script=boot.scr\0" \
+ "uimage=uImage\0" \
+ "console_fsl=ttyAM0\0" \
+ "console_mainline=ttyAMA0\0" \
+ "console=${console_mainline}\0" \
+ "mmcdev=0\0" \
+ "mmcpart=2\0" \
+ "mmcroot=/dev/mmcblk0p3 rw\0" \
+ "mmcrootfstype=ext3 rootwait\0" \
+ "mmcargs=setenv bootargs console=${console},${baudrate} " \
+ "root=${mmcroot} " \
+ "rootfstype=${mmcrootfstype}\0" \
+ "loadbootscript=" \
+ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
+ "bootscript=echo Running bootscript from mmc ...; " \
+ "source\0" \
+ "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
+ "mmcboot=echo Booting from mmc ...; " \
+ "run mmcargs; " \
+ "bootm\0" \
+ "netargs=setenv bootargs console=${console},${baudrate} " \
"root=/dev/nfs " \
- "ip=dhcp nfsroot=${serverip}:${nfsroot}\0" \
- "bootcmd_net=echo Booting from net ...; " \
- "run netargs; " \
- "dhcp ${uimage}; bootm\0" \
+ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
+ "netboot=echo Booting from net ...; " \
+ "run netargs; " \
+ "dhcp ${uimage}; bootm\0"
+
+#define CONFIG_BOOTCOMMAND \
+ "if mmc rescan ${mmcdev}; then " \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "else run netboot; " \
+ "fi; " \
+ "fi; " \
+ "else run netboot; fi"
#endif /* __MX28EVK_CONFIG_H__ */
--
1.7.10
^ permalink raw reply related [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 21:31 ` Otavio Salvador
@ 2012-05-29 20:57 ` Wolfgang Denk
2012-05-29 21:02 ` Otavio Salvador
0 siblings, 1 reply; 26+ messages in thread
From: Wolfgang Denk @ 2012-05-29 20:57 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
In message <1337117472-15907-1-git-send-email-otavio@ossystems.com.br> you wrote:
> The environment has been based on mx53loco and m28evk but keeping the
> possibility to easy change the default console device as Freescale and
> mainline kernels differ on the device name.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> include/configs/mx28evk.h | 83 ++++++++++++++++++++++++++++++++++++++++-----
> 1 file changed, 75 insertions(+), 8 deletions(-)
Starting by now, I will NAK all these patches that get posted and
reposted and reposted again continuously ignoring the rules for patch
submissions.
Please read
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions
and stick to the documented rules.
I suggest we invalidate _all_ previously posted patcehs, you add the
required changes and resubmit.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If in any problem you find yourself doing an immense amount of work,
the answer can be obtained by simple inspection.
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-29 20:57 ` Wolfgang Denk
@ 2012-05-29 21:02 ` Otavio Salvador
0 siblings, 0 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-05-29 21:02 UTC (permalink / raw)
To: u-boot
On Tue, May 29, 2012 at 5:57 PM, Wolfgang Denk <wd@denx.de> wrote:
> Starting by now, I will NAK all these patches that get posted and
> reposted and reposted again continuously ignoring the rules for patch
> submissions.
>
I sent the last version of the patch changing only the Freescable board.
As I said, I am working on MX23 and will rebase and resend all this patches
once it is OK. If possible, give access to the patchwork so I remove the
patches that has been deprecated and I am the author so it doesn't bother
there.
--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
2012-05-15 21:08 ` Fabio Estevam
@ 2012-05-15 21:16 ` Marek Vasut
[not found] ` <CAP9ODKrZ5kObb8C=BWRLh0MJWsQz1H2WRe9sJHh1Tq0DcRR2Ag@mail.gmail.com>
2012-05-29 20:52 ` Wolfgang Denk
2 siblings, 1 reply; 26+ messages in thread
From: Marek Vasut @ 2012-05-15 21:16 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> The environment has been based on mx53loco and m28evk but keeping the
> possibility to easy change the default console device as Freescale and
> mainline kernels differ on the device name.
FSL kernel is dumb :-(
But I like this patch. On the other hand, can't this be made even more generic
so everyone can use such a nice unified env?
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> include/configs/mx28evk.h | 83
> ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 75
> insertions(+), 8 deletions(-)
>
> diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
> index e98a746..6c2bf5f 100644
> --- a/include/configs/mx28evk.h
> +++ b/include/configs/mx28evk.h
> @@ -234,7 +234,6 @@
> #define CONFIG_SETUP_MEMORY_TAGS
> #define CONFIG_BOOTDELAY 3
> #define CONFIG_BOOTFILE "uImage"
> -#define CONFIG_BOOTCOMMAND "run bootcmd_net"
> #define CONFIG_LOADADDR 0x42000000
> #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
> #define CONFIG_OF_LIBFDT
> @@ -243,13 +242,81 @@
> * Extra Environments
> */
> #define CONFIG_EXTRA_ENV_SETTINGS \
> - "console_fsl=console=ttyAM0" \
> - "console_mainline=console=ttyAMA0" \
> - "netargs=setenv bootargs console=${console_mainline}" \
> + "update_nand_full_filename=u-boot.nand\0" \
> + "update_nand_firmware_filename=u-boot.sb\0" \
> + "update_sd_firmware_filename=u-boot.sd\0" \
> + "update_nand_firmware_maxsz=0x100000\0" \
> + "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \
> + "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \
> + "update_nand_get_fcb_size=" /* Get size of FCB blocks */ \
> + "nand device 0 ; " \
> + "nand info ; " \
> + "setexpr fcb_sz ${update_nand_stride} * ${update_nand_count};" \
> + "setexpr update_nand_fcb ${fcb_sz} * ${nand_writesize}\0" \
> + "update_nand_full=" /* Update FCB, DBBT and FW */ \
> + "if tftp ${update_nand_full_filename} ; then " \
> + "run update_nand_get_fcb_size ; " \
> + "nand scrub -y 0x0 ${filesize} ; " \
> + "nand write.raw ${loadaddr} 0x0 ${update_nand_fcb} ; " \
> + "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \
> + "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \
> + "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \
> + "fi\0" \
> + "update_nand_firmware=" /* Update only firmware */ \
> + "if tftp ${update_nand_firmware_filename} ; then " \
> + "run update_nand_get_fcb_size ; " \
> + "setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB + DBBT */ \
> + "setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; " \
> + "setexpr fw_off ${fcb_sz} + ${update_nand_firmware_maxsz};" \
> + "nand erase ${fcb_sz} ${fw_sz} ; " \
> + "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
> + "nand write ${loadaddr} ${fw_off} ${filesize} ; " \
> + "fi\0" \
> + "update_sd_firmware=" /* Update the SD firmware partition */ \
> + "if mmc rescan ; then " \
> + "if tftp ${update_sd_firmware_filename} ; then " \
> + "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
> + "setexpr fw_sz ${fw_sz} + 1 ; " \
> + "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
> + "fi ; " \
> + "fi\0" \
> + "script=boot.scr\0" \
> + "uimage=uImage\0" \
> + "console_fsl=ttyAM0\0" \
> + "console_mainline=ttyAMA0\0" \
> + "console=${console_mainline}\0" \
> + "mmcdev=0\0" \
> + "mmcpart=2\0" \
> + "mmcroot=/dev/mmcblk0p3 rw\0" \
> + "mmcrootfstype=ext3 rootwait\0" \
> + "mmcargs=setenv bootargs console=${console},${baudrate} " \
> + "root=${mmcroot} " \
> + "rootfstype=${mmcrootfstype}\0" \
> + "loadbootscript=" \
> + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
> + "bootscript=echo Running bootscript from mmc ...; " \
> + "source\0" \
> + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
> + "mmcboot=echo Booting from mmc ...; " \
> + "run mmcargs; " \
> + "bootm\0" \
> + "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
> "root=/dev/nfs " \
> - "ip=dhcp nfsroot=${serverip}:${nfsroot}\0" \
> - "bootcmd_net=echo Booting from net ...; " \
> - "run netargs; " \
> - "dhcp ${uimage}; bootm\0" \
> + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
> + "netboot=echo Booting from net ...; " \
> + "run netargs; " \
> + "dhcp ${uimage}; bootm\0"
> +
> +#define CONFIG_BOOTCOMMAND \
> + "if mmc rescan ${mmcdev}; then " \
> + "if run loadbootscript; then " \
> + "run bootscript; " \
> + "else " \
> + "if run loaduimage; then " \
> + "run mmcboot; " \
> + "else run netboot; " \
> + "fi; " \
> + "fi; " \
> + "else run netboot; fi"
>
> #endif /* __MX28EVK_CONFIG_H__ */
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
2012-05-15 21:08 ` Fabio Estevam
2012-05-15 21:16 ` Marek Vasut
@ 2012-05-29 20:52 ` Wolfgang Denk
2 siblings, 0 replies; 26+ messages in thread
From: Wolfgang Denk @ 2012-05-29 20:52 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
In message <1337115571-14115-3-git-send-email-otavio@ossystems.com.br> you wrote:
> The environment has been based on mx53loco and m28evk but keeping the
> possibility to easy change the default console device as Freescale and
> mainline kernels differ on the device name.
NAK.
I will not acceept this.
Please accept that the configuration of the Freescale boards was done
by Freescale and is maintained by freescale, but it is not generally
considered to be the best of all possible solutions.
Freescale may use it on their boards if they like. You may use it on
your boards if you like.
But I don't want to see this on any boards in my responsibility,
because I dislike it.
Please allow that we maintain the M28EVK configuration as we like it.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Summit meetings tend to be like panda matings. The expectations are
always high, and the results usually disappointing." - Robert Orben
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack
2012-05-15 20:59 [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Otavio Salvador
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
@ 2012-05-15 21:14 ` Marek Vasut
2012-05-15 21:32 ` Otavio Salvador
2 siblings, 1 reply; 26+ messages in thread
From: Marek Vasut @ 2012-05-15 21:14 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
Is this really necessary? I think it's a matter of personal taste, isn't it?
> ---
> include/configs/m28evk.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
> index 68e46b7..a076aa5 100644
> --- a/include/configs/m28evk.h
> +++ b/include/configs/m28evk.h
> @@ -88,7 +88,7 @@
> #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of
DRAM */
> #define PHYS_SDRAM_1 0x40000000 /* Base address
*/
> #define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MB
RAM */
> -#define CONFIG_STACKSIZE 0x00010000 /* 128 KB stack
*/
> +#define CONFIG_STACKSIZE (128 * 1024) /* 128 KB stack
*/
> #define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for
malloc */
> #define CONFIG_SYS_GBL_DATA_SIZE 128 /* Initial data
*/
> #define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start
adr */
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 0/3] i.MX refactoring patchset
@ 2012-06-17 12:58 Otavio Salvador
2012-06-17 12:58 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
0 siblings, 1 reply; 26+ messages in thread
From: Otavio Salvador @ 2012-06-17 12:58 UTC (permalink / raw)
To: u-boot
This patchset include minor changes for i.MX; mainly:
1/3: improves the rare case of unkown booting machine
2/3: generalize the code so it works for i.MX23 and i.MX28
The patch 3/3 is what we've been using in Yocto and has been change to
affect only mx28evk.
Otavio Salvador (3):
imx: Use a clear identification of an unidentified CPU type
mxs: generalize code for print_cpuinfo()
mx28evk: extend default environment
arch/arm/cpu/arm926ejs/mx28/mx28.c | 29 +++++++++++-
arch/arm/cpu/armv7/imx-common/cpu.c | 4 +-
include/configs/mx28evk.h | 83 +++++++++++++++++++++++++++++++----
3 files changed, 104 insertions(+), 12 deletions(-)
--
1.7.10
^ permalink raw reply [flat|nested] 26+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: extend default environment
2012-06-17 12:58 [U-Boot] [PATCH 0/3] i.MX refactoring patchset Otavio Salvador
@ 2012-06-17 12:58 ` Otavio Salvador
0 siblings, 0 replies; 26+ messages in thread
From: Otavio Salvador @ 2012-06-17 12:58 UTC (permalink / raw)
To: u-boot
The environment has been based on mx53loco and m28evk but keeping the
possibility to easy change the default console device as Freescale and
mainline kernels differ on the device name.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
---
include/configs/mx28evk.h | 83 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 75 insertions(+), 8 deletions(-)
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index e98a746..889d58a 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -234,7 +234,6 @@
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTFILE "uImage"
-#define CONFIG_BOOTCOMMAND "run bootcmd_net"
#define CONFIG_LOADADDR 0x42000000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_OF_LIBFDT
@@ -243,13 +242,81 @@
* Extra Environments
*/
#define CONFIG_EXTRA_ENV_SETTINGS \
- "console_fsl=console=ttyAM0" \
- "console_mainline=console=ttyAMA0" \
- "netargs=setenv bootargs console=${console_mainline}" \
+ "update_nand_full_filename=u-boot.nand\0" \
+ "update_nand_firmware_filename=u-boot.sb\0" \
+ "update_sd_firmware_filename=u-boot.sd\0" \
+ "update_nand_firmware_maxsz=0x100000\0" \
+ "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \
+ "update_nand_get_fcb_size=" /* Get size of FCB blocks */ \
+ "nand device 0 ; " \
+ "nand info ; " \
+ "setexpr fcb_sz ${update_nand_stride} * ${update_nand_count};" \
+ "setexpr update_nand_fcb ${fcb_sz} * ${nand_writesize}\0" \
+ "update_nand_full=" /* Update FCB, DBBT and FW */ \
+ "if tftp ${update_nand_full_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "nand scrub -y 0x0 ${filesize} ; " \
+ "nand write.raw ${loadaddr} 0x0 ${update_nand_fcb} ; " \
+ "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \
+ "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \
+ "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \
+ "fi\0" \
+ "update_nand_firmware=" /* Update only firmware */ \
+ "if tftp ${update_nand_firmware_filename} ; then " \
+ "run update_nand_get_fcb_size ; " \
+ "setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB + DBBT */ \
+ "setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; " \
+ "setexpr fw_off ${fcb_sz} + ${update_nand_firmware_maxsz};" \
+ "nand erase ${fcb_sz} ${fw_sz} ; " \
+ "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \
+ "nand write ${loadaddr} ${fw_off} ${filesize} ; " \
+ "fi\0" \
+ "update_sd_firmware=" /* Update the SD firmware partition */ \
+ "if mmc rescan ; then " \
+ "if tftp ${update_sd_firmware_filename} ; then " \
+ "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
+ "setexpr fw_sz ${fw_sz} + 1 ; " \
+ "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
+ "fi ; " \
+ "fi\0" \
+ "script=boot.scr\0" \
+ "uimage=uImage\0" \
+ "console_fsl=ttyAM0\0" \
+ "console_mainline=ttyAMA0\0" \
+ "console=${console_mainline}\0" \
+ "mmcdev=0\0" \
+ "mmcpart=2\0" \
+ "mmcroot=/dev/mmcblk0p3 rw\0" \
+ "mmcrootfstype=ext3 rootwait\0" \
+ "mmcargs=setenv bootargs console=${console},${baudrate} " \
+ "root=${mmcroot} " \
+ "rootfstype=${mmcrootfstype}\0" \
+ "loadbootscript=" \
+ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
+ "bootscript=echo Running bootscript from mmc ...; " \
+ "source\0" \
+ "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
+ "mmcboot=echo Booting from mmc ...; " \
+ "run mmcargs; " \
+ "bootm\0" \
+ "netargs=setenv bootargs console=${console},${baudrate} " \
"root=/dev/nfs " \
- "ip=dhcp nfsroot=${serverip}:${nfsroot}\0" \
- "bootcmd_net=echo Booting from net ...; " \
- "run netargs; " \
- "dhcp ${uimage}; bootm\0" \
+ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
+ "netboot=echo Booting from net ...; " \
+ "run netargs; " \
+ "dhcp ${uimage}; bootm\0"
+
+#define CONFIG_BOOTCOMMAND \
+ "if mmc rescan ${mmcdev}; then " \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "else run netboot; " \
+ "fi; " \
+ "fi; " \
+ "else run netboot; fi"
#endif /* __MX28EVK_CONFIG_H__ */
--
1.7.10
^ permalink raw reply related [flat|nested] 26+ messages in thread
end of thread, other threads:[~2012-06-17 12:58 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 20:59 [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Otavio Salvador
2012-05-15 20:59 ` [U-Boot] [PATCH 2/3] m28evk: drop duplicated definition of CONFIG_OF_LIBFDT Otavio Salvador
2012-05-15 21:14 ` Marek Vasut
2012-05-15 21:34 ` Otavio Salvador
2012-05-15 22:05 ` Marek Vasut
2012-05-15 23:03 ` Otavio Salvador
2012-05-15 23:18 ` Marek Vasut
2012-05-15 23:55 ` Otavio Salvador
2012-05-16 1:00 ` Marek Vasut
2012-06-13 9:06 ` Stefano Babic
2012-05-15 20:59 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
2012-05-15 21:08 ` Fabio Estevam
2012-05-15 21:18 ` Otavio Salvador
2012-05-15 21:31 ` Otavio Salvador
2012-05-29 20:57 ` Wolfgang Denk
2012-05-29 21:02 ` Otavio Salvador
2012-05-15 21:16 ` Marek Vasut
[not found] ` <CAP9ODKrZ5kObb8C=BWRLh0MJWsQz1H2WRe9sJHh1Tq0DcRR2Ag@mail.gmail.com>
2012-05-15 21:21 ` Marek Vasut
2012-05-15 21:27 ` Otavio Salvador
2012-05-29 20:55 ` Wolfgang Denk
2012-05-29 21:14 ` Marek Vasut
2012-05-29 21:30 ` Wolfgang Denk
2012-05-29 20:52 ` Wolfgang Denk
2012-05-15 21:14 ` [U-Boot] [PATCH 1/3] m28evk: use same notation to alloc the 128kB stack Marek Vasut
2012-05-15 21:32 ` Otavio Salvador
-- strict thread matches above, loose matches on Subject: below --
2012-06-17 12:58 [U-Boot] [PATCH 0/3] i.MX refactoring patchset Otavio Salvador
2012-06-17 12:58 ` [U-Boot] [PATCH 3/3] mx28evk: extend default environment Otavio Salvador
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox