public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* canT use jffs2 with nand
@ 2003-03-06 16:58 Stephan Linke
  2003-03-06 21:46 ` Thomas Gleixner
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan Linke @ 2003-03-06 16:58 UTC (permalink / raw)
  To: linux-mtd

Hi,

I'm trying to use some nand chips on my board. Some selfmade tests in the bootloader show that they are already working fin in the
system.
But I have trouble using them in linux.
When trying to use touch to create an empty file on a JFFS2 mounted on the nand I get the following result: "nand_write_ecc: Attempt
to write not page aligned data" which is actualy true since the FS is trying to write only 12 bytes...
I tried to use YAFFS first but the result was more difficult to "translate".
Writing an mounting a cramfs image worked fine.

Any help is appreciated.
  Thanks, Stephan

P.S.: I have pretty new MTD and YAFFS sources and a 2.4.18 kernel.

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

* canT use jffs2 with nand
  2003-03-06 16:58 canT use jffs2 with nand Stephan Linke
@ 2003-03-06 21:46 ` Thomas Gleixner
  2003-03-07  9:46   ` Stephan Linke
  2003-03-07 11:43   ` Stephan Linke
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Gleixner @ 2003-03-06 21:46 UTC (permalink / raw)
  To: linux-mtd

On Thursday 06 March 2003 17:58, Stephan Linke wrote:
> Hi,
>
> I'm trying to use some nand chips on my board. Some selfmade tests in the
> bootloader show that they are already working fin in the system.
> But I have trouble using them in linux.
> When trying to use touch to create an empty file on a JFFS2 mounted on the
> nand I get the following result: "nand_write_ecc: Attempt to write not page
> aligned data" which is actualy true since the FS is trying to write only 12
> bytes... I tried to use YAFFS first but the result was more difficult to
> "translate". Writing an mounting a cramfs image worked fine.
Seem's, that CONFIG_JFFS2_NAND is missing.
Have you used patchin.sh ?
Have you read http://linux-mtx.infradead.org/tech/nand.html ?

-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de

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

* canT use jffs2 with nand
  2003-03-06 21:46 ` Thomas Gleixner
@ 2003-03-07  9:46   ` Stephan Linke
  2003-03-08 19:36     ` Thomas Gleixner
  2003-03-07 11:43   ` Stephan Linke
  1 sibling, 1 reply; 5+ messages in thread
From: Stephan Linke @ 2003-03-07  9:46 UTC (permalink / raw)
  To: linux-mtd

Hi Thomas,

actualy I did not use the patch script. But on the other hand I don't like the way it modifies my kernel. Since CVS can't deal with
links...
Is it possible to add an option that uses copies instead of links?
That would be fine.

Now I will test it with the automaticaly patched kernel. Thanks.

Stephan

> -----Original Message-----
> From: Thomas Gleixner [mailto:tglx at linutronix.de]
> Sent: Donnerstag, 6. M?rz 2003 22:47
> To: Stephan Linke; Linux-Mtd
> Subject: Re: canT use jffs2 with nand
>
>
> On Thursday 06 March 2003 17:58, Stephan Linke wrote:
> > Hi,
> >
> > I'm trying to use some nand chips on my board. Some selfmade tests in the
> > bootloader show that they are already working fin in the system.
> > But I have trouble using them in linux.
> > When trying to use touch to create an empty file on a JFFS2 mounted on the
> > nand I get the following result: "nand_write_ecc: Attempt to write not page
> > aligned data" which is actualy true since the FS is trying to write only 12
> > bytes... I tried to use YAFFS first but the result was more difficult to
> > "translate". Writing an mounting a cramfs image worked fine.
> Seem's, that CONFIG_JFFS2_NAND is missing.
> Have you used patchin.sh ?
> Have you read http://linux-mtx.infradead.org/tech/nand.html ?
>
> --
> Thomas
> ________________________________________________________________________
> linutronix - competence in embedded & realtime linux
> http://www.linutronix.de
> mail: tglx at linutronix.de
>
>

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

* canT use jffs2 with nand
  2003-03-06 21:46 ` Thomas Gleixner
  2003-03-07  9:46   ` Stephan Linke
@ 2003-03-07 11:43   ` Stephan Linke
  1 sibling, 0 replies; 5+ messages in thread
From: Stephan Linke @ 2003-03-07 11:43 UTC (permalink / raw)
  To: linux-mtd

Hi,

Still the same result. JFFS2 uses wrong size when accessing NAND flash:
...
Write clean marker to block at 0x00018000 failed: -22
nand_write_ecc: Attempt to write not page aligned data
Write clean marker to block at 0x00014000 failed: -22
nand_write_ecc: Attempt to write not page aligned data
Write clean marker to block at 0x00010000 failed: -22
nand_write_ecc: Attempt to write not page aligned data
...

And I could not find any CONFIG_JFFS2_NAND mentioned in my sources. Maybe some misspelling?


Thanks, Stephan

P.S: Once again I had to patch nand.h after using the patchin.sh script since nand_ids.c doesn't include mtd.h before includeing
nand.h...



> -----Original Message-----
> From: Thomas Gleixner [mailto:tglx at linutronix.de]
> Sent: Donnerstag, 6. M?rz 2003 22:47
> To: Stephan Linke; Linux-Mtd
> Subject: Re: canT use jffs2 with nand
>
>
> On Thursday 06 March 2003 17:58, Stephan Linke wrote:
> > Hi,
> >
> > I'm trying to use some nand chips on my board. Some selfmade tests in the
> > bootloader show that they are already working fin in the system.
> > But I have trouble using them in linux.
> > When trying to use touch to create an empty file on a JFFS2 mounted on the
> > nand I get the following result: "nand_write_ecc: Attempt to write not page
> > aligned data" which is actualy true since the FS is trying to write only 12
> > bytes... I tried to use YAFFS first but the result was more difficult to
> > "translate". Writing an mounting a cramfs image worked fine.
> Seem's, that CONFIG_JFFS2_NAND is missing.
> Have you used patchin.sh ?
> Have you read http://linux-mtx.infradead.org/tech/nand.html ?
>
> --
> Thomas
> ________________________________________________________________________
> linutronix - competence in embedded & realtime linux
> http://www.linutronix.de
> mail: tglx at linutronix.de
>
>

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

* canT use jffs2 with nand
  2003-03-07  9:46   ` Stephan Linke
@ 2003-03-08 19:36     ` Thomas Gleixner
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2003-03-08 19:36 UTC (permalink / raw)
  To: linux-mtd

On Friday 07 March 2003 10:46, Stephan Linke wrote:
> Hi Thomas,
>
> actualy I did not use the patch script. But on the other hand I don't like
> the way it modifies my kernel. Since CVS can't deal with links...
> Is it possible to add an option that uses copies instead of links?
> That would be fine.
CVS up. 
./patchin.sh -c ....
will copy the files into the kerneltree instead of linking them.

-- 
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de

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

end of thread, other threads:[~2003-03-08 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-06 16:58 canT use jffs2 with nand Stephan Linke
2003-03-06 21:46 ` Thomas Gleixner
2003-03-07  9:46   ` Stephan Linke
2003-03-08 19:36     ` Thomas Gleixner
2003-03-07 11:43   ` Stephan Linke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox