public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [patch u-boot arm/next] davinci dm6446evm NAND update
@ 2009-04-29 23:35 David Brownell
  2009-04-30  5:55 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 3+ messages in thread
From: David Brownell @ 2009-04-29 23:35 UTC (permalink / raw)
  To: u-boot

From: David Brownell <dbrownell@users.sourceforge.net>

This updates the optional (non-default!) NAND support for the
DaVinci DM6446 EVM:

 - include MTD partitioning, defaulting to what Linux uses

 - use a flash-based BBT, which among other things speeds bootup

This matches code that's now queued for mainline Linux, and might
even merge in an upcoming 2.6.30-rc; the MTIDS are set up so that
the U-Boot $mtdparts environment variable can be passed as-is on
the kernel command line, as a cmdlinepart override.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

--- a/include/configs/davinci_dvevm.h
+++ b/include/configs/davinci_dvevm.h
@@ -119,6 +121,10 @@
 #ifdef CONFIG_SYS_NAND_SMALLPAGE
 #define CONFIG_ENV_SECT_SIZE	512	/* Env sector Size */
 #define CONFIG_ENV_SIZE		SZ_16K
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT		"nand0=davinci_nand.0"
+#define MTDPARTS_DEFAULT	"mtdparts=davinci_nand.0:384k(bootloader)ro,4m(kernel),-(filesystem)"
 #else
 #define CONFIG_ENV_SECT_SIZE	2048	/* Env sector Size */
 #define CONFIG_ENV_SIZE		SZ_128K
@@ -126,6 +132,7 @@
 #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT	/* to a proper address, init done */
 #define CONFIG_SYS_NAND_BASE		0x02000000
+#define CONFIG_SYS_NAND_USE_FLASH_BBT
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE	1	/* Max number of NAND devices */
 #define CONFIG_ENV_OFFSET		0x0	/* Block 0--not used by bootcode */

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

* [U-Boot] [patch u-boot arm/next] davinci dm6446evm NAND update
  2009-04-29 23:35 [U-Boot] [patch u-boot arm/next] davinci dm6446evm NAND update David Brownell
@ 2009-04-30  5:55 ` Jean-Christophe PLAGNIOL-VILLARD
  2009-05-01  1:20   ` David Brownell
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-04-30  5:55 UTC (permalink / raw)
  To: u-boot

On 16:35 Wed 29 Apr     , David Brownell wrote:
> From: David Brownell <dbrownell@users.sourceforge.net>
> 
> This updates the optional (non-default!) NAND support for the
> DaVinci DM6446 EVM:
> 
>  - include MTD partitioning, defaulting to what Linux uses
> 
>  - use a flash-based BBT, which among other things speeds bootup
> 
> This matches code that's now queued for mainline Linux, and might
> even merge in an upcoming 2.6.30-rc; the MTIDS are set up so that
> the U-Boot $mtdparts environment variable can be passed as-is on
> the kernel command line, as a cmdlinepart override.
> 
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> 
> --- a/include/configs/davinci_dvevm.h
> +++ b/include/configs/davinci_dvevm.h
> @@ -119,6 +121,10 @@
>  #ifdef CONFIG_SYS_NAND_SMALLPAGE
>  #define CONFIG_ENV_SECT_SIZE	512	/* Env sector Size */
>  #define CONFIG_ENV_SIZE		SZ_16K
> +#define CONFIG_MTD_PARTITIONS
> +#define CONFIG_CMD_MTDPARTS
> +#define MTDIDS_DEFAULT		"nand0=davinci_nand.0"
> +#define MTDPARTS_DEFAULT	"mtdparts=davinci_nand.0:384k(bootloader)ro,4m(kernel),-(filesystem)"
too long please split

Best Regards,
J.

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

* [U-Boot] [patch u-boot arm/next] davinci dm6446evm NAND update
  2009-04-30  5:55 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-05-01  1:20   ` David Brownell
  0 siblings, 0 replies; 3+ messages in thread
From: David Brownell @ 2009-05-01  1:20 UTC (permalink / raw)
  To: u-boot

On Wednesday 29 April 2009, Jean-Christophe PLAGNIOL-VILLARD wrote:
> too long please split

Update below.

=== CUT HERE
From: David Brownell <dbrownell@users.sourceforge.net>

This updates the optional (non-default!) NAND support for the
DaVinci DM6446 EVM:

 - include MTD partitioning, defaulting to what Linux uses

 - use a flash-based BBT, which among other things speeds bootup

This matches code that's now queued for mainline Linux, and might
even merge in an upcoming 2.6.30-rc; and the MTIDS are set up so
that the U-Boot $mtdparts environment variable can be passed as-is
on the kernel command line as a cmdlinepart override.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 include/configs/davinci_dvevm.h |    7 +++++++
 1 file changed, 7 insertions(+)

--- a/include/configs/davinci_dvevm.h
+++ b/include/configs/davinci_dvevm.h
@@ -119,6 +119,12 @@
 #ifdef CONFIG_SYS_NAND_SMALLPAGE
 #define CONFIG_ENV_SECT_SIZE	512	/* Env sector Size */
 #define CONFIG_ENV_SIZE		SZ_16K
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT		\
+	"nand0=davinci_nand.0"
+#define MTDPARTS_DEFAULT	\
+	"mtdparts=davinci_nand.0:384k(bootloader)ro,4m(kernel),-(filesystem)"
 #else
 #define CONFIG_ENV_SECT_SIZE	2048	/* Env sector Size */
 #define CONFIG_ENV_SIZE		SZ_128K
@@ -126,6 +132,7 @@
 #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT	/* to a proper address, init done */
 #define CONFIG_SYS_NAND_BASE		0x02000000
+#define CONFIG_SYS_NAND_USE_FLASH_BBT
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE	1	/* Max number of NAND devices */
 #define CONFIG_ENV_OFFSET		0x0	/* Block 0--not used by bootcode */

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

end of thread, other threads:[~2009-05-01  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 23:35 [U-Boot] [patch u-boot arm/next] davinci dm6446evm NAND update David Brownell
2009-04-30  5:55 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-01  1:20   ` David Brownell

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