[U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read CONFIG_SYS_MONITOR_LEN. CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size. Signed-off-by: Rohit

[U-Boot] [PATCH 2/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Rohit Hagargundgi
Add CONFIG_SYS_MONITOR_LEN macro to apollon board config. CONFIG_SYS_MONITOR_LEN defines the U-Boot image size. and is used by OneNAND ipl when reading U-Boot image. Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + 1 file changed, 1 insertion(+) diff --git a/include

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-09 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read 256KB. Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + onenand_ipl/onenand_read.c | 27

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-07 Thread Rohit Hagargundgi
Hi, Kyungmin Park wrote: >> >> + /* Check for invalid block mark*/ >> + if (page < 2 && (onenand_readw(THIS_ONENAND(ONENAND_SPARERAM)) != >> 0x)) >> + return 1; >> + > > No need to check invalid block. Note that block 0 is always good > block. no exception. Correct

Re: [U-Boot] [PATCH v2 4/4] Flex-OneNAND boundary setting command

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:53 Rohit Hagargundgi wrote: > Add command for changing Flex-OneNAND SLC / MLC boundary. > Also onenand commands work for Flex-OneNAND. Signed-off-by: Rohit Hagargundgi --- common/cmd_onenand.c

Re: [U-Boot] [PATCH v2 3/4] JFFS2 commands support for Flex-OneNAND

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:42 Rohit Hagargundgi wrote: > Add sanity check for the partitions. > Some special cases handled by the check are: > - A partition can span across erase regions. > - A region can have odd number of blocks. Signed-off-by: Rohit Hagargund

Re: [U-Boot] [PATCH v2 2/4] Environment support for Flex-OneNAND

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:34 Rohit Hagargundgi wrote: > Define and use CONFIG_ENV_ADDR_FLEX and CONFIG_ENV_SIZE_FLEX > for storing environment variables. > Signed-off-by: Rohit Hagargundgi --- common/env_onenand.c | 10 ++ include/configs/apollon.h |2 ++

Re: [U-Boot] [PATCH v2 1/4] Flex-OneNAND driver

2009-03-07 Thread Rohit Hagargundgi
Hi, Sorries for the delay On Tuesday 16 December 2008 03:14:22 Scott Wood wrote: > On Thu, Dec 11, 2008 at 07:57:18PM +0530, Rohit Hagargundgi wrote: > > This patch adds support for MLC OneNAND and Flex-OneNAND devices. > > Patch does not apply to u-boot-nand-flash/next (the m

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-04 Thread Rohit Hagargundgi
Hi, Here is the updated patch. Thanks, Rohit Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + onenand_ipl/onenand_read.c | 27 --- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/include/configs/apollon.h b/include/configs

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-26 Thread Rohit Hagargundgi
Hi, Kyungmin Park wrote: > Hi, > > In the previous mail, I also solve this issue. multi-block read for IPL > > http://www.mail-archive.com/u-boot@lists.denx.de/msg04641.html oh, okay. So this merge first. To Scott, Wolfgang - can you please apply this patch. Also environment block is affected

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-26 Thread Rohit Hagargundgi
Hi, Jean-Christophe PLAGNIOL-VILLARD wrote: >> #define ONENAND_BLOCK_SIZE 2048 >> +#define ONENAND_BOOTLOADER_SIZE 0x4 > why hardcoded value? Is it possible to get image size instead of hard value. Then we can read exactly u-boot image size on boot up. >> +/* C

[U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-25 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read 256KB. Signed-off-by: Rohit Hagargundgi --- onenand_ipl/onenand_ipl.h |1 + onenand_ipl/onenand_read.c | 29

[U-Boot] [PATCH 3/3] Create bad block aware partition table

2008-12-11 Thread Rohit Hagargundgi
. The new partition table is stored in environment variable 'newmtdparts'. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 151 ++ 1 files changed, 151 insertions(+), 0 deletions(-) diff --git a/com

[U-Boot] [PATCH 2/3] Add partition based OneNAND commands

2008-12-11 Thread Rohit Hagargundgi
make 'partition' as last SLC partition. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 259 ++ 1 files changed, 259 insertions(+), 0 deletions(-) diff --git a/common/cmd_onenand.c b/common/cmd

[U-Boot] [PATCH 1/3] Bad block support for environment variables partition in OneNAND

2008-12-11 Thread Rohit Hagargundgi
partition. If this block goes bad, the successive block is used to store environment variables. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- env_onenand.c | 112 +- 1 file changed, 87 insertions(+), 25 deletions(-) diff -

[U-Boot] [PATCH 0/3] Bad blocks and Partition support for OneNAND / Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Hi, The following patches improve partitioning and bad block support for OneNAND / Flex-OneNAND devices. The idea is to be able to use U-Boot as a utility to write images to flash. Any comments are much appreciated. Thanks, Rohit ___ U-Boot mailing

[U-Boot] [PATCH v2 4/4] Flex-OneNAND boundary setting command

2008-12-11 Thread Rohit Hagargundgi
Add command for changing Flex-OneNAND SLC / MLC boundary. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 65 +++--- 1 files changed, 56 insertions(+), 9 deletions(-) diff --git a/common/cmd_onenand.c b/

[U-Boot] [PATCH v2 3/4] JFFS2 commands support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Add sanity check for the partitions. Some special cases handled by the check are: - A partition can span across erase regions. - A region can have odd number of blocks. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_jffs2.c

[U-Boot] [PATCH v2 2/4] Environment support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Define and use CONFIG_ENV_ADDR_FLEX and CONFIG_ENV_SIZE_FLEX for storing environment variables. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/env_onenand.c | 10 ++ include/configs/apollon.h |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH v2 1/4] Flex-OneNAND driver

2008-12-11 Thread Rohit Hagargundgi
). 3. A single device is registered for Flex-OneNAND. This device has erase regions. Each erase region has different block size (either SLC or MLC). 4. 4 ECC registers. 5. LSB page recovery feature. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTEC

[U-Boot] [PATCH v2 0/4] Flex-OneNAND support

2008-12-11 Thread Rohit Hagargundgi
Hi, This is a repost of support for Flex-OneNAND devices. Changes since v1(last post): - Rebased to u-boot-nand-flash. - Updated review comments from MTD list. - Support eraseregions with odd number of blocks. - JFFS2 commands support for Flex-OneNAND. I have split the patches so that it is more