<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Udit,</p>
<p>While I am not familiar with your exact setup, we had issues with
larger files on the IMFS using RTEMS4.10.</p>
<p>We discovered that there is a default max size of an IMFS file
which is around 4.3MBytes.</p>
<p>It can be changed by changing the bytes per block in the
CONFDEFS:</p>
<p>/* IMFS file system block size increase to make max file size
68,173,568, instead of 4,329,344 */<br>
#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK 256<br>
</p>
<p>We performed this update to increase the maximum file size as
shown above.</p>
<p>Hope this helps.</p>
<p>regards,</p>
<p>Ian Caddy<br>
</p>
<br>
<div class="moz-cite-prefix">On 24/07/2018 4:48 PM, Udit agarwal
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM0bxh89OmM3qNQwk8=m-QP_1HFu0NiSoBDNC8r-DyyB7QZJ8Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi all,<br>
</div>
I've been trying to use IMFS with a ramdisk on BBB. Here's
what i did:<br>
<br>
</div>
After creating a ram disk (block size:512, block
count:262144), i used
mount_and_make_target_path("/dev/rda","/mnt",RTEMS_FILESYSTEM_TYPE_IMFS,RTEMS_FILESYSTEM_READ_WRITE,NULL)<br>
<br>
</div>
There is no error during bootup, but when allocating a file(in
the /mnt directory) of size 10MB(or even of 1MB) it gives a
file too large error.<br>
</div>
I've used similar config for RFS too and that did worked, so
probably there's no issue while setting up the RAM disk.<br
clear="all">
<div>
<div>
<div>
<div>
<div>
<div><br>
</div>
<div>I've also tried testsuite/fstests/imfs_support
setup, but looks like similar method doesn't work
with ram-disks<br>
</div>
<div>-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>Regards,<br>
</div>
Udit kumar agarwal<br>
<a href="http://uditagarwal.in/" target="_blank"
moz-do-not-send="true">http://uditagarwal.in/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@rtems.org">users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a></pre>
</blockquote>
<br>
</body>
</html>