public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 on 2.2.18
@ 2002-06-10 16:44 Chris AtLee
  2002-06-10 21:56 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Chris AtLee @ 2002-06-10 16:44 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

Hi,

I've had some success getting MTD and JFFS (v1) working on my 2.2.18
system.  I've been trying over the past few weeks to get JFFS2 up and
running.  I've got it to the point where the kernel can read a jffs2
partition, but I really have no idea how to get writing to work.  The
mechanism for writing seems completely different in 2.2.x than in 2.4.x

Any pointers?  Is anyone else working on this?

Cheers,
Chris



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: JFFS2 on 2.2.18
  2002-06-10 16:44 JFFS2 on 2.2.18 Chris AtLee
@ 2002-06-10 21:56 ` David Woodhouse
  2002-06-13 16:33   ` Chris AtLee
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2002-06-10 21:56 UTC (permalink / raw)
  To: Chris AtLee; +Cc: linux-mtd

catlee@canada.com said:
> I've had some success getting MTD and JFFS (v1) working on my 2.2.18
> system.  I've been trying over the past few weeks to get JFFS2 up and
> running.  I've got it to the point where the kernel can read a jffs2
> partition, but I really have no idea how to get writing to work.  The
> mechanism for writing seems completely different in 2.2.x than in
> 2.4.x

> Any pointers?  Is anyone else working on this? 

I know of nobody else working on a 2.2 backport. Worst case, you should be 
able to ditch the page-based write code and call jffs2_write_file_range() 
from a jffs2_file_write() which you provide instead of 
generic_file_write(), surely?

--
dwmw2

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

* Re: JFFS2 on 2.2.18
  2002-06-10 21:56 ` David Woodhouse
@ 2002-06-13 16:33   ` Chris AtLee
  0 siblings, 0 replies; 3+ messages in thread
From: Chris AtLee @ 2002-06-13 16:33 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]

Ok cool, I ditched the page-based write and make a jffs2_file_write
using jffs2_commit_write as a template and it works!

Now I can go back and try to figure out what's going wrong with
reading...The kernel seems able to read files just fine (except device
files...), except every time I access a new file to read I get some
warnings about page locking / unlocking:

The !PageLocked(pg) test at the top of jffs2_readpage_nolock fails and
generates a warning

and

UnlockPage(pg) in jffs2_do_readpage_unlock also generates a warning

This only happens the first time I access a file.  Could it have
something to do with differences between generic_file_read in the 2.2
and 2.4 kernels?

Thanks,
Chris


On Mon, 2002-06-10 at 17:56, David Woodhouse wrote:
> 
> catlee@canada.com said:
> > I've had some success getting MTD and JFFS (v1) working on my 2.2.18
> > system.  I've been trying over the past few weeks to get JFFS2 up and
> > running.  I've got it to the point where the kernel can read a jffs2
> > partition, but I really have no idea how to get writing to work.  The
> > mechanism for writing seems completely different in 2.2.x than in
> > 2.4.x
> 
> > Any pointers?  Is anyone else working on this? 
> 
> I know of nobody else working on a 2.2 backport. Worst case, you should be 
> able to ditch the page-based write code and call jffs2_write_file_range() 
> from a jffs2_file_write() which you provide instead of 
> generic_file_write(), surely?
> 
> --
> dwmw2
> 
> 
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2002-06-13 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-10 16:44 JFFS2 on 2.2.18 Chris AtLee
2002-06-10 21:56 ` David Woodhouse
2002-06-13 16:33   ` Chris AtLee

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