Re: IMFS on ram-disk

2018-07-24 Thread Joel Sherrill
On Tue, Jul 24, 2018 at 11:34 AM, Gedare Bloom wrote: > On Tue, Jul 24, 2018 at 10:46 AM, Joel Sherrill wrote: > > > > > > On Tue, Jul 24, 2018 at 9:24 AM, Udit agarwal > wrote: > >> > >> > >> > >> On Jul 24, 2018 7:45 PM, "Gedare Bloom" wrote: > >> > >> On Tue, Jul 24, 2018 at 10:12 AM, Gedar

Re: IMFS on ram-disk

2018-07-24 Thread Gedare Bloom
On Tue, Jul 24, 2018 at 10:46 AM, Joel Sherrill wrote: > > > On Tue, Jul 24, 2018 at 9:24 AM, Udit agarwal wrote: >> >> >> >> On Jul 24, 2018 7:45 PM, "Gedare Bloom" wrote: >> >> On Tue, Jul 24, 2018 at 10:12 AM, Gedare Bloom wrote: >> > On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal >> > wrote

Re: IMFS on ram-disk

2018-07-24 Thread Joel Sherrill
On Tue, Jul 24, 2018 at 9:24 AM, Udit agarwal wrote: > > > On Jul 24, 2018 7:45 PM, "Gedare Bloom" wrote: > > On Tue, Jul 24, 2018 at 10:12 AM, Gedare Bloom wrote: > > On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal > wrote: > >> Hi all, > >> I've been trying to use IMFS with a ramdisk on BBB. H

Re: IMFS on ram-disk

2018-07-24 Thread Udit agarwal
On Jul 24, 2018 7:45 PM, "Gedare Bloom" wrote: On Tue, Jul 24, 2018 at 10:12 AM, Gedare Bloom wrote: > On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal wrote: >> Hi all, >> I've been trying to use IMFS with a ramdisk on BBB. Here's what i did: >> >> After creating a ram disk (block size:512, block

Re: IMFS on ram-disk

2018-07-24 Thread Gedare Bloom
On Tue, Jul 24, 2018 at 10:12 AM, Gedare Bloom wrote: > On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal wrote: >> Hi all, >> I've been trying to use IMFS with a ramdisk on BBB. Here's what i did: >> >> After creating a ram disk (block size:512, block count:262144), i used >> mount_and_make_target_p

Re: IMFS on ram-disk

2018-07-24 Thread Gedare Bloom
On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal wrote: > Hi all, > I've been trying to use IMFS with a ramdisk on BBB. Here's what i did: > > 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_FILESYS

Re: IMFS on ram-disk

2018-07-24 Thread Sebastian Huber
You cannot use the IMFS on a RAM disk. The IMFS always allocates its memory via the standard heap allocator. See: https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#configure-imfs-memfile-bytes-per-block -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-

Re: IMFS on ram-disk

2018-07-24 Thread Ian Caddy
Hi Udit, While I am not familiar with your exact setup, we had issues with larger files on the IMFS using RTEMS4.10. We discovered that there is a default max size of an IMFS file which is around 4.3MBytes. It can be changed by changing the bytes per block in the CONFDEFS: /* IMFS file sys