File system from list of files?
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Wed Sep 22 13:47:12 UTC 2004
Peter Dufault wrote:
> I did some searching but didn't see the answer -
Look at the netdemo for httpd and the "tar filesystem". That provides
a way to load initial filesystem contents from a tarball either linked
with your application or placed in a known place in non-volatile memory.
> Is there a utility that I can run on Unix (or whatever development host
> I'm using) where I can specify a list of files, and the utility will
> generate C code that will implement a read-only POSIX filename file
> system under RTEMS?
>
> I'd like to be able to say "rtems_files -o config.c /config/foo1
> /config/foo2" (or much worse "RTEMS_FILES /O config-c C:\config\foo1
> C:\config\foo2") on the host and wind up with a config.c source that I
> can link into my rtems task, call at init time, and that will let me:
>
> fopen("/config/foo1", "r");
>
> successfully. /config/foo1 should be rom-based (C language const based
> which one can hopefully romify).
>
> If not, I'd like input as to how such a utility should work, and even
> better since I'm busy, input as to why such a utility isn't needed. (I
> don't want constant access to a network so that can't be part of why it
> isn't needed.)
>
> Peter
>
> Peter Dufault
> HD Associates, Inc.
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list