[U-Boot-Users] (no subject)

Maupin, Chase chase.maupin at ti.com
Fri Feb 29 22:18:57 CET 2008


> 
> On Friday 29 February 2008, Maupin, Chase wrote:
> > I'm a little confused here.  I have been trying to write a
> jffs2 image
> > to NAND flash using u-boot 1.2.0 but when I do so I cannot
> mount the
> > file system when booting the kernel.
> 
> What error messages do you get?

I see is ECC errors for every read such as the following.
mtd->read(0x400 bytes from 0x0) returned ECC error read(0x7c3c bytes 
mtd->from 0x3c4) returned ECC error

I also noticed a bunch of magic bitmask erros such as the following.
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007861c:
0x0162 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00078620:
0x61c8 instead

> 
> > It looks from your e-mail thread
> > that there is a problem with the write.jffs2
> implementation.  Is this
> > problem in the 1.2.0 version of u-boot?
> 
> No, I don't think so. This thread was related to problem with the 
> rewrite of the U-Boot NAND subsystem. The current implementation 
> should handle writing images (YAFFS, JFFS2) just fine. Please make 
> sure that you use the ".jffs2"
> extension.

I wrote the image by doing (my file system partition is at offset
0x460000 and my jffs2 image size is 0x288000 downloaded to 0x80700000):
	# nand erase 0x460000 0x288000
	# nand write.jffs2 0x80700000 0x460000 0x288000

I can successfully write this same image from a booted Linux system
using the "nandwrite" command.

> 
> > Do you know if there is a fix
> > for this?
> >
> > Please let me know if you have more information.
> 
> It would be much better, if you wrote to the mailing list too. This 
> way many people could try to help out here. So I suggest to send you 
> question again to the list.

I am including the list here.  Any help someone can give on writing a
JFFS2 image into NAND Flash would be greatly appreciated.

> 
> Thanks.
> 
> Best regards,
> Stefan
> 
> =====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: 
> office at denx.de
> =====================================================================
> 




More information about the U-Boot mailing list