[U-Boot] [PATCH] NAND jffs2 bug fix - sector size not initialized

NAND jffs2 bug fix - sector size not initialized.
Signed-off-by: Derek Ou dou@siconix.com --- common/cmd_jffs2.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 7866c80..f6966f3 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -1853,6 +1853,8 @@ int mtdparts_init(void) if (part->size == SIZE_REMAINING) part->size = id->size - part->offset;
+ part->sector_size = nand_info[id->num].erasesize; + DEBUGF("part : name = %s, size = 0x%08lx, offset = 0x%08lx\n", part->name, part->size, part->offset);

Dear Derek,
In message 541d21dc51a2ad9d7eb18755215f5605.squirrel@webmail.siconix.com you wrote:
NAND jffs2 bug fix - sector size not initialized.
Signed-off-by: Derek Ou dou@siconix.com
common/cmd_jffs2.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 7866c80..f6966f3 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -1853,6 +1853,8 @@ int mtdparts_init(void) if (part->size == SIZE_REMAINING) part->size = id->size - part->offset;
part->sector_size = nand_info[id->num].erasesize;
- DEBUGF("part : name = %s, size = 0x%08lx, offset = 0x%08lx\n", part->name, part->size, part->offset);
I think this has been fixed in the meantime. Please see
commit b5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042 Author: Tomasz Figa tomasz.figa@gmail.com Date: Tue Dec 30 18:35:57 2008 +0100
jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE
Best regards,
Wolfgang Denk
participants (2)
-
Derek Ou
-
Wolfgang Denk