<br><tt><font size=2>Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
wrote on 11/16/2007 06:12:58 PM:<br>
<br>
> Hi,<br>
</font></tt>
<br><tt><font size=2>> Aitor.Viana.Sanchez@esa.int schrieb:<br>
> ><br>
> > Hi,<br>
> ><br>
> > OK the problem eventually was only half mine ;). I'll try to
explain.<br>
> ><br>
> ><br>
> >         #define _FILESYSTEM_SIZE    
                   (0x1000000)<br>
> >    // 16MB<br>
> >         static unsigned int numberOfBlocks
= (_FILESYSTEM_SIZE / 512);<br>
> ><br>
> > The problem is that, with this numberOfBlocks  value, RTEMS
is not able<br>
> > to mount the filesystem, raising an error. The error shows up
when<br>
> > msdos_format() is called, returning "not such file or directory".
On the<br>
> > contrary, if numberOfBlocks = 40 (for instance) everything goes
well.<br>
> ><br>
> > Is there any limitation within RTEMS w.r.t. the size of the filesystem?<br>
</font></tt>
<br><tt><font size=2>> Hm, this is strange. We are currently working
with Compact Flash cards<br>
> with about 2GByte of capacity, and there are no such problems. We
are<br>
> also formatting them with msdos_format().<br>
</font></tt>
<br><tt><font size=2>> There MIGHT be a problem with the ramdisk driver.<br>
</font></tt>
<br><tt><font size=2>> Normally you would not want to use a MSDOS-based
ramdisk in RTEMS,<br>
> because you can also use the "IMFS" (in-memory-file system)
which uses<br>
> the heap to get the memory it needs.</font></tt>
<br>
<br><tt><font size=2>Yes, i would also use the IMFS but the problem is
that the heap is located, in my board, in the static RAM (4 MB size) because
is where RTEMS is placed and I need a quite big filesystem. That's why
I am trying to used the SDRAM which is located from 0x60000000 on.</font></tt>
<br><tt><font size=2>I do not know whether  it is possible to do another
thing to solve that.<br>
</font></tt>
<br><tt><font size=2>> The ramdisk driver was a test vehicle to implement
the DOS filesystem<br>
> and, AFAIK, was not/seldomly used with the capacity you mentioned.<br>
</font></tt>
<br><tt><font size=2>> Can you see "/dev/ramdisk0" in the
device tree of the (in memory) file<br>
> system?</font></tt>
<br>
<br><tt><font size=2>I think it is not, and that's why the "no such
file or directory" is raised, but anyway, how can a check that out?</font></tt>
<br>
<br><tt><font size=2>regards,</font></tt>
<br>
<br><tt><font size=2>//avs<br>
</font></tt>
<br><tt><font size=2>> wkr,<br>
> Thomas.<br>
</font></tt>
<br><tt><font size=2>> <br>
> ><br>
> > thanks in advanced.<br>
> ><br>
> > //avs<br>
> ><br>
> > -----------------------------<br>
> > Aitor Viana Sánchez<br>
> ><br>
> > ESA - European Space Technology Centre (ESTEC)<br>
> > TEC-EDD - Computer and Data Systems Section<br>
> > ESA/ESTEC P.O. Box 299 / 2200AG Noordwijk ZH, The Netherlands<br>
> > Tel (+31) 71 565 6727<br>
> > Email: aitor.viana.sanchez@esa.int<br>
> ><br>
> ><br>
> > *Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>*<br>
> > Sent by: rtems-users-bounces@rtems.org<br>
> ><br>
> > 11/15/2007 09:54 PM<br>
> ><br>
> ><br>
> > To<br>
> >  Aitor.Viana.Sanchez@esa.int<br>
> > cc<br>
> >  rtems-users@rtems.org<br>
> > Subject<br>
> >  Re: External RAM filesystem<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Hi,<br>
> ><br>
> > Aitor.Viana.Sanchez@esa.int schrieb:<br>
> >><br>
> >> Hi,<br>
> >><br>
> >> I got everything ready to send an example and to include
a wiki entry<br>
> >> but fist...the example is only working in rtems-4.7.99.2-1.0.3.
I also<br>
> >> tried with RTEMS 4.6.5 but looks like some functions are
not implemented<br>
> >> in this version. This is the compilation output.<br>
> ><br>
> > ys you are right, I implemented the msdos_format function somewhere<br>
> > after 4.6.5, so you might have missed it in that version.<br>
> ><br>
> > See:<br>
> ><br>
> > http://www.rtems.com/cgi-bin/cvsweb.<br>
> cgi/rtems/cpukit/libfs/src/dosfs/msdos_format.c<br>
> ><br>
> > The module should be back-portable if required, but there might
be some<br>
> > other unresolved references then.<br>
> ><br>
> > Are you currently stuck to 4.6.5 in your work? Which architecture
are<br>
> > you working on?<br>
> ><br>
> > wkr,<br>
> > Thomas.<br>
> ><br>
> > --<br>
> > --------------------------------------------<br>
> > Embedded Brains GmbH<br>
> > Thomas Doerfler           Obere Lagerstr.
30<br>
> > D-82178 Puchheim          Germany<br>
> > email: Thomas.Doerfler@embedded-brains.de<br>
> > Phone: +49-89-18908079-2<br>
> > Fax:   +49-89-18908079-9<br>
> > _______________________________________________<br>
> > rtems-users mailing list<br>
> > rtems-users@rtems.com<br>
> > http://rtems.rtems.org/mailman/listinfo/rtems-users<br>
</font></tt>
<br><tt><font size=2>> <br>
> --<br>
> --------------------------------------------<br>
> embedded brains GmbH<br>
> Thomas Doerfler           Obere Lagerstr.
30<br>
> D-82178 Puchheim          Germany<br>
> Tel. : +49-89-18 90 80 79-2<br>
> Fax  : +49-89-18 90 80 79-9<br>
> email: Thomas.Doerfler@embedded-brains.de<br>
> PGP public key available on request<br>
</font></tt>
<br><tt><font size=2>> Diese Nachricht ist keine geschäftliche Mitteilung
im Sinne des EHUG.</font></tt>