flashdisk heap requirements
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Mar 14 09:31:37 UTC 2013
On 03/13/2013 05:22 PM, Matthew J Fletcher wrote:
> Hi,
>
> I have setup a flashdisk device, the segment descriptor, defines a size of 64k
> and a count of 32 (although i am not 100% sure what the count means). I have a
> 512 block size in the flashdisk configuration.
>
> In rtems_flashdisk_initalize() the code calloc()'s the size of blocks as
> calculated by rtems_fdisk_blocks_in_device(), for the example above this
> results in calloc(4032,8) a request of 32256 !, thats 50% of the NOR size.
> Actually i would like a 6MB filesystem on a 16MB NOR chip.
This table maps the bdbuf block to the corresponding flash page. If you want
to reduce the runtime memory demands, then you have to improve the data
structures in the flash disk driver.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list