<br><font size=2 face="sans-serif">Hi, </font>
<br>
<br><font size=2 face="sans-serif">OK the problem eventually was only half
mine ;). I'll try to explain.</font>
<br>
<br><font size=2 face="sans-serif">The LEON2 board i got has 64MB of SDRAM
memory placed in the address 0x60000000, and I want to locate the ramdisk
filesystem within that area.</font>
<br>
<br><font size=2 face="sans-serif">The configuration is:</font>
<br>
<br><font size=2 face="sans-serif">        rtems_bdbuf_config
rtems_bdbuf_configuration[] = {</font>
<br><font size=2 face="sans-serif">         
{ 512, numberOfBlocks, (unsigned char *) _SDRAM_FS_ADDR }</font>
<br><font size=2 face="sans-serif">        };</font>
<br><font size=2 face="sans-serif">        int
rtems_bdbuf_configuration_size = 1;</font>
<br>
<br><font size=2 face="sans-serif">        rtems_ramdisk_config
rtems_ramdisk_configuration[] = {</font>
<br><font size=2 face="sans-serif">         
{512, numberOfBlocks, (void *) _SDRAM_FS_ADDR}</font>
<br><font size=2 face="sans-serif">        };</font>
<br>
<br><font size=2 face="sans-serif">where _SDRAM_FS_ADDR is 0x60000000 and
numberOfBlocks is the size of the filesystem i want to placed divided by
512 (which is the block size), actually:</font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        #define
_FILESYSTEM_SIZE              
         (0x1000000)    
   // 16MB</font>
<br><font size=2 face="sans-serif">        static
unsigned int numberOfBlocks = (_FILESYSTEM_SIZE / 512);</font>
<br>
<br><font size=2 face="sans-serif">The problem is that, with this numberOfBlocks
 value, RTEMS is not able to mount the filesystem, raising an error.
The error shows up when msdos_format() is called, returning "not such
file or directory". On the contrary, if numberOfBlocks = 40 (for instance)
everything goes well.</font>
<br>
<br><font size=2 face="sans-serif">Is there any limitation within RTEMS
w.r.t. the size of the filesystem?</font>
<br>
<br><font size=2 face="sans-serif">thanks in advanced.</font>
<br><font size=2 face="sans-serif"><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</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Thomas Doerfler <Thomas.Doerfler@embedded-brains.de></b>
</font>
<br><font size=1 face="sans-serif">Sent by: rtems-users-bounces@rtems.org</font>
<p><font size=1 face="sans-serif">11/15/2007 09:54 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Aitor.Viana.Sanchez@esa.int</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">rtems-users@rtems.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: External RAM filesystem</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><tt><font size=2>Hi,<br>
</font></tt>
<br><tt><font size=2>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>
</font></tt>
<br><tt><font size=2>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>
</font></tt>
<br><tt><font size=2>See:<br>
</font></tt>
<br><tt><font size=2>http://www.rtems.com/cgi-bin/cvsweb.cgi/rtems/cpukit/libfs/src/dosfs/msdos_format.c<br>
</font></tt>
<br><tt><font size=2>The module should be back-portable if required, but
there might be some<br>
other unresolved references then.<br>
</font></tt>
<br><tt><font size=2>Are you currently stuck to 4.6.5 in your work? Which
architecture are<br>
you working on?<br>
</font></tt>
<br><tt><font size=2>wkr,<br>
Thomas.<br>
</font></tt>
<br><tt><font size=2>--<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</font></tt>
<br>