Setting up ramdisk with dosfs

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Tue Nov 9 16:36:04 UTC 2004


Eugeny S. Mints wrote:
> Greetings,
> 
> Thomas Doerfler wrote:
> 
>> Hi,
>>
>> AFAIK the ramdisk would work fine with the MSDOS filesystem, but it is 
>> not formatted :-(
> 
> 
> Exactly. Ramdisk works fine with DOSFS since I used ramdisk during DOSFS 
> development:) And again - exactly - a ramdisk needs to be formatted by 
> any means out of RTEMS since Thomas msdos_format for RTEMS is the work 
> in progress (yet:).
> 
>>
>> I am currently developing a msdos_format function which should solve 
>> this problem.
>>
>>
>>> Hi.
>>>
>>> I want to use the ramdisk with dosfs but has some problems.
>>> I am running on a sun solaris with target ERC32. Using TSIM as 
>>> simulator.
>>> Want to modify the fileio sample to use ramdisk instead of ata.
>>> My questions are:
>>>
>>> What should I initialize? (I added RAMDISK_TABLE_ENTRY to the Device 
>>> table
>>> and this seems to work fine.)
> 
> 
> In addition to the RAMDISK_TABLE_ENTRY you need to define at least one 
> ramdisk itself - rtems_ramdisk_configuration[] array of type 
> rtems_ramdisk_config (please, see 
> cpukit/libblock/include/rtems/ramdisk.h - there are good comments 
> there). The rtems_ramdisk_configuration[] array is expected to be 
> exported by a bsp.
> 
> It seems one time (about june of 2002) I sent Angelo Fraietta <angelo_f 
> at bigpond dot com> the ramdisk application example.
> 
> 2Angelo: If it possible, please re-post the example on the list.

Is the attached program something like it?

> Regards,
>         Eugeny
> 
>>> I am trying to run rtems_ide_part_table_initialize(dev) but it 
>>> returns '25'
>>> and 'not a char device' (the ramdisk is accessed). Must I use ide_part?
>>> I really could use a step by step instruction how to init and mount a
>>> ramdisk and use msdos with it.
>>>
>>> Any information would be greatly appreciated.
>>>
>>> Regards
>>> Daniel Gustavsson
>>>
>>
>>
>> --------------------------------------------
>> IMD Ingenieurbuero fuer Microcomputertechnik
>> Thomas Doerfler           Herbststrasse 8
>> D-82178 Puchheim          Germany
>> email:    Thomas.Doerfler at imd-systems.de
>> PGP public key available at: http://www.imd-
>> systems.de/pgp_keys.htm
>>
>>
>>
> 
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ramdisk.tar.bz2
Type: application/x-bzip2
Size: 1405 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20041109/027a3ce5/attachment-0001.bin>


More information about the users mailing list