[U-Boot] [PATCH 1/1] jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE

Wolfgang Denk wd at denx.de
Tue Jan 27 22:54:42 CET 2009


Dear Tomasz Figa,

In message <200812301835.57435.tomasz.figa at gmail.com> you wrote:
> This patch fixes a bug (?) introduced after inclusion of the new JFFS2 code.
> 
> When not using CONFIG_JFFS2_CMDLINE, the code in cmd_jffs2.c doesn't fill in 
> part->sector_size (keeping it as 0), but a correct value is needed by the code 
> in jffs2_1pass.c. This causes all JFFS2 accesses to be in the same place of the 
> memory, what obviously means impossibility to use the JFFS2 partition.
> 
> This problem is fixed in this patch by including sector size calculation in 
> non-CONFIG_JFFS2_CMDLINE mtdparts_init variant.
> 
> Signed-off-by: Tomasz Figa <tomasz.figa_at_gmail.com>

Applied, thanks, but please be a bit more careful next time; this
patch had a lot of trailing whitespace issues, and some wrapped long
lines.


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
To program is to be.


More information about the U-Boot mailing list