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
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
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
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
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
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
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 ++
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
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
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
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
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
.
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
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
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 -
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
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/
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
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
).
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
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
21 matches
Mail list logo