[U-Boot] nand sector size is zero in jffs2 cmds
Wolfgang Denk
wd at denx.de
Sat Jan 24 01:53:17 CET 2009
Dear Derek Ou,
In message <49515BD6.9030606 at siconix.com> you wrote:
> The "### ERROR ### Please RESET the board ###" error and the zero NAND
> sector size problem can be fixed by the following patch. However, the
> jffs2 scanning routine does not skip the bad blocks in NAND though.
>
> Derek
> ************* patch **************
> 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);
Can you please submit a proper patch (after fixing your mailer
configuration which wraps long lines, thus corrupting the patch)?
See http://www.denx.de/wiki/U-Boot/Patches for instructions.
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
Perl itself is usually pretty good about telling you what you
shouldn't do. :-) - Larry Wall in <11091 at jpl-devvax.JPL.NASA.GOV>
More information about the U-Boot
mailing list