This is the mail archive of the ecos-patches@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: Pooled memory allocation for JFFS2


On Fri, 21 Nov 2003, Gary Thomas wrote:

> > Need include pkgconf/fs_jffs2.h somehow in compr.c else no compression 
> > actually gets linked in. You need to build images elsewhere and install 
> > them in order to notice this, however.
> 
> I think it would be good to put this into one of the common .h files,
> perhaps <linux/jffs2.h>

Yes; something like that. Perhaps os-ecos.h which gets included 
everywhere.

> How'd you do this?  We've had long talks about the approach to this
> in the past, but less than final resolution.  I just wouldn't want
> your ideas/work to go to waste :-)

Ten minute hack. First remove the gratuitous includes of kernel stuff in 
the fileio package in places they're not actually used, so JFFS2 actually 
compiles in RedBoot again. Then hack up a trivial load method based on the 
disk one, and a new command which calls mount("/dev/flash1", "/", "jffs2") 
... oh and reinitialise the flash io block device because it gets 
initialised before the FIS mangling virtual vectors are installed and 
hence doesn't find the partition.

The latter wants fixing, rather than the evil hack I have which makes it 
work, and we ideally want to be able to specify the FIS partition in the 
mount command.

I'll send you the code when I get back to the office, but it's little more 
than a proof of concept atm.
 
-- 
dwmw2


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