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

Derek Ou derek at siconix.com
Tue Jan 27 22:51:30 CET 2009


NAND jffs2 bug fix - sector size not initialized.

Signed-off-by: Derek Ou <dou at 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);

-- 
1.5.4.3




More information about the U-Boot mailing list