This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JFFS2 Mounting Problem


On Tue, Oct 05, 2004 at 03:19:55PM +0800, Manoj Abraham wrote:
> Hello friends,

> I am able to mount the jffs2 file system now but it is erasing the
> entire flash. If I give length parameter in static confign as
> 0x000c0000, it will not erase the redboot area.i.e it is allowing
> length less than 1M ! .. if length is more than 1 M it is erasing
> the entire flash... can any one tell me why this happens?

Nope, i cannot tell you why this is happening, you will have to debug
it yourself. 

Do you have CYGPKG_INFRA_DEBUG enable? 

Put some breakpoints in flashiodev_getconfig at the two locations it
returns EINVAL while erasing. See if they get hit. I would also add
some code to flash_erase() to detect erases to areas you think it
should not be erasing.

        Andrew


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]