All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] (no subject)
@ 2008-02-29 21:18 Maupin, Chase
  2008-03-01 10:32 ` Stefan Roese
  2008-03-03 13:54 ` [U-Boot-Users] Writing JFFS2 image using u-boot Maupin, Chase
  0 siblings, 2 replies; 3+ messages in thread
From: Maupin, Chase @ 2008-02-29 21:18 UTC (permalink / raw)
  To: u-boot


> 
> 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
> =====================================================================
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] (no subject)
  2008-02-29 21:18 [U-Boot-Users] (no subject) Maupin, Chase
@ 2008-03-01 10:32 ` Stefan Roese
  2008-03-03 13:54 ` [U-Boot-Users] Writing JFFS2 image using u-boot Maupin, Chase
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2008-03-01 10:32 UTC (permalink / raw)
  To: u-boot

On Friday 29 February 2008, Maupin, Chase wrote:
> > 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.

Perhaps its a problem of the U-Boot NAND driver for your platform. Is this 
board/platform supported in the official U-Boot version? What platform are 
you using btw? And are using software or hardware ECC generation in the NAND 
driver?

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
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Writing JFFS2 image using u-boot
  2008-02-29 21:18 [U-Boot-Users] (no subject) Maupin, Chase
  2008-03-01 10:32 ` Stefan Roese
@ 2008-03-03 13:54 ` Maupin, Chase
  1 sibling, 0 replies; 3+ messages in thread
From: Maupin, Chase @ 2008-03-03 13:54 UTC (permalink / raw)
  To: u-boot

Sorry, I forgot to add a subject.

Sincerely,
Chase Maupin
Software Applications
Catalog DSP Products
e-mail: chase.maupin at ti.com
phone: (281) 274-3285
 

> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net 
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf 
> Of Maupin, Chase
> Sent: Friday, February 29, 2008 3:19 PM
> To: Stefan Roese
> Cc: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] (no subject)
> 
> 
> > 
> > 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
> > 
> =====================================================================
> > 
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft Defy all 
> challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-03 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-29 21:18 [U-Boot-Users] (no subject) Maupin, Chase
2008-03-01 10:32 ` Stefan Roese
2008-03-03 13:54 ` [U-Boot-Users] Writing JFFS2 image using u-boot Maupin, Chase

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.