jffs2_scan_medium effor

Frederic Giasson fgiasson at mediatrix.com
Thu Jun 21 13:33:41 EDT 2001


	Yes, that's what I did actually.  I locked the sectors I don't what
to be erased in my chip-level driver.  My erase function returns -EINVAL
when JFFS2 tries to erase it, so it marks it dirty ( I think ).  There may
be, however, a cleanier way of doing this.  Nevertheless, it works but I
have stange problems with jffs2.  For example, if I mount jffs2 on an empty
flash, fill it with files, erase all files and then try to refill it, I
sometimes get a kernel panic... 



Frédéric Giasson





-----Original Message-----
From: Kári Davíðsson [mailto:kd at flaga.is]
Sent: Thursday, June 21, 2001 1:34 PM
To: Frederic Giasson; Nicolas Pitre
Cc: MTD mailing list (E-mail)
Subject: RE: jffs2_scan_medium effor


Maybe there is a way to mark the sectors were the bootmonitor resides as

"burnt out" or reserved so that the jffs2 does not attempt to use the.

Then in theory you could just make one partition of the whole flash with
few "bad" sectors that are not used by the jffs2....

Just an idea.....

K.D.

> -----Original Message-----
> From: Frederic Giasson [mailto:fgiasson at mediatrix.com]
> Sent: 21. júní 2001 17:03
> To: 'Nicolas Pitre'; Frederic Giasson
> Cc: Kári Davíðsson; MTD mailing list (E-mail)
> Subject: RE: jffs2_scan_medium effor
> 
> 
> Because my boot monitor is straigth in the middle of my flash 
> and I can't
> move it for an hardware reason.
> 
> Frédéric Giasson
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Nicolas Pitre [mailto:nico at cam.org]
> Sent: Thursday, June 21, 2001 1:07 PM
> To: Frederic Giasson
> Cc: 'Kári Davíðsson'; MTD mailing list (E-mail)
> Subject: RE: jffs2_scan_medium effor
> 
> 
> 
> 
> On Thu, 21 Jun 2001, Frederic Giasson wrote:
> 
> > Thank you Kari for your help.
> >
> > 	I tried partionning as you suggested, but I loose a lot of space
> > because I have two seperate partitions on which I mount 
> JFFS2.  It takes
> the
> > same space ( roughly 324 KB ) for its own usage per 
> partition.  Therefore,
> I
> > can't afford the partitioning method to map my flash 
> because I was already
> > tight on it with 324K taken by JFFS2.
> 
> Why can't you make only a single JFFS2 partition out of the two you
> currently made?
> 
> 
> Nicolas
> 




More information about the linux-mtd mailing list