Problem to save file on the hard disk! What I have to set to do it ?
Matteo
matteo.posterli at studenti.unipr.it
Sun Mar 12 17:17:13 UTC 2006
Ok, like you have suggested I understood the steps to mount the hardisk, but
the problem is that the fileio example doesn't mount my hardisk!
I follow the steps suggest from the fileio.doc but after it asks to me to enter
the partition table of first harddisk ( /dev/hda ) I try to mount the
partitions and I have an error, He says to me
" fsmount: mounting of "/dev/hda1" to "/mnt/hda1" failed: No such file or
directory " and so on for hda2,3,4 and for hdc1,2,3,4
Linux partition is on hda3, but the fileio example doesn't mount it !
What's the problem ?
Have you some idea ?
Really Thanks in advance
Matteo
Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matteo,
>
> 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
> in fileio/system.h)
> - - 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
> points.
>
> wkr,
> Thomas.
>
>
> Matteo schrieb:
> > Hi
> > 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
> >
> > Matteo
> >
> > Scrive Joel Sherrill <joel.sherrill at oarcorp.com>:
> >
> >
> >>Matteo wrote:
> >>
> >>
> >>>Hi
> >>>
> >>>I'm trying to use the fdopen example of the package example-4.6.99.2 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
> >>
> >>program
> >>
> >>>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
> >>
> >>privilege
> >>
> >>>in the "grub"(my linux boot loader) to allow it to write on the hard
> disk?
> >>
> >>this
> >>
> >>>is only my newbye's opinion..
> >>>
> >>>
> >>>
> >>
> >>Ohh.... if you are doing anything with the hard disk, then there is some
> >>filesystem specific
> >>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
> >>>
> >>>Matteo
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
>
>
> - --
> - --------------------------------------------
> 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/pgpkey_en.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFEDzWHwHyg4bDtfjQRAnlVAKCSrLeIZqpXcAy/4mWEDIqQ+xhL/wCeNV7n
> hOGyTZNeWRDj389IK0DewMk=
> =ZOBe
> -----END PGP SIGNATURE-----
>
>
More information about the users
mailing list