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

Wolfgang Denk wd at denx.de
Tue Jan 27 23:45:51 CET 2009


Dear Derek,

In message <541d21dc51a2ad9d7eb18755215f5605.squirrel at webmail.siconix.com> you wrote:
> 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);

I think this has been fixed in the meantime. Please see

commit b5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042
Author: Tomasz Figa <tomasz.figa at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Monday is an awful way to spend one seventh of your life.


More information about the U-Boot mailing list