Skip to content

Update RTEMS implementation to dynamically create RAM disk block devices #459

@jphickey

Description

@jphickey

Is your feature request related to a problem? Please describe.
The current RTEMS BSP predefines the RAM disks by way of the rtems_ramdisk_configuration which is set at compile time. However the OSAL model is to create these block devices at runtime based on memory segments that are allocated externally.

The workaround up to this point was to preallocate the ram disks, and then attempt to correlate the address in the OS_mkfs/initfs request to one of the preallocated blocks. However this is not possible when the compile-time config and ramdisk allocation are done by separate libraries (BSP and CFE PSP, respectively).

Describe the solution you'd like
RTEMS can support dynamically-created RAM disks using ramdisk_allocate() which better aligns with the way things are supposed to work.

Additional context
This is necessary as part of decoupling the volume/filesystem table from the OSAL BSP.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions