Problem to save file on the hard disk! What I have to set to do it ?
Thomas Doerfler (nt)
Thomas.Doerfler at imd-systems.de
Wed Mar 8 19:50:32 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
I assume you are working on a standard i386 pc hardware. Have a look at
the "fileio" sample application available in the RTEMS source tree under
"cpukit/testsuites/samples/fileio". You should try to get it working on
your system (it should work from scratch if you got a standard PC system).
Have a look at "fileio.doc", it explains a bit what should work with
this sample program.
In your application, you will have to do the following steps to get
access to your harddisk:
- - add the IDE and ATA drivers to your standard driver table (see entries
- - add a rtems_bdbuf_configuration data structure to your system (once
again, see fileio/system.h)
- - add a fs_table to your application, which specifies which harddisk
partitions are to be mounted to which mount points (see fileio/
- - call the "rtems_ide_part_table_initialize" function after system
startup to read in your harddisk partition table. This call will create
a new device node (/dev/hda1 ...) for each partition available.
- - call the "rtems_fsmount" function to mount the partitions to their
respective mount points. Have a look into "libmisc/fsmount" to find out,
how it works.
Then you can access the harddisk partitions at their respective mount
> Joe says to me ask you how I can save a file on hard disk? if I have to set
> something in my linux's grub?
> below the previous email sent to Joel.
> Thanks in advance
> Scrive Joel Sherrill <joel.sherrill at oarcorp.com>:
>>>I'm trying to use the fdopen example of the package example-126.96.36.199 but it
>>>doesn't works, It doesn't create the file!
>>I could be wrong but I think this one actually was submitted as part of
>>a bug report and
>>the bug may still be outstanding. It may be fixed. I just don't
>>remember. See below for
>>the more likely case.
>>>But I can launch the hello world example and I create some simple posix
>>>with rtems yet so I think to have configured it well.
>>>So what can be the problem ?
>>>May be when I launch the fdopen example I have to set some particular
>>>in the "grub"(my linux boot loader) to allow it to write on the hard disk?
>>>is only my newbye's opinion..
>>Ohh.... if you are doing anything with the hard disk, then there is some
>>configuration to get things right. The example code is only going to
>>work with the IMFS
>>which is a RAM based filesystem.
>>Ask on the list so someone list Thomas can point you to an example setup.
>>>Thanks in advantage
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the users