This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Mounting a FAT filesystem
- From: Eduardo Sabaj <esabaj at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org, esabaj at hasar dot com
- Date: Fri, 3 Apr 2009 09:04:42 -0300
- Subject: [ECOS] Mounting a FAT filesystem
I have an i386 platform with two IDE disks and until now I have had no
success in trying to mount a FAT filesystem in my development.. What I
have tried is the following:
mount ("/dev/hda/" , "/", "fatfs:sync=write");
In spite of the fact that on my project file (.ecc) the names of the
disk devices are /dev/hda, /dev/hdb, etc..., mount returns -1 and
errno 19 ("no such device").
Moreover, if I try to lookup the driver by...
cyg_io_lookup("/dev/hda/", &handle);
it returns -22 ("invalid argument"). Could anyone tell me what I'm missing ??
FYI, in order to have support for FAT filesystem and for generic IDE,
I added the following packages on my configuration file:
-----
cdl_savefile_version 1;
cdl_savefile_command cdl_savefile_version {};
cdl_savefile_command cdl_savefile_command {};
cdl_savefile_command cdl_configuration { description hardware template
package };
cdl_savefile_command cdl_package { value_source user_value
wizard_value inferred_value };
cdl_savefile_command cdl_component { value_source user_value
wizard_value inferred_value };
cdl_savefile_command cdl_option { value_source user_value wizard_value
inferred_value };
cdl_savefile_command cdl_interface { value_source user_value
wizard_value inferred_value };
cdl_configuration eCos {
package CYGPKG_IO_FILEIO current ;
package CYGPKG_IO current ;
package CYGPKG_LIBC_STRING current ;
package CYGPKG_DEVS_DISK_IDE current ;
package CYGPKG_IO_DISK current ;
package CYGPKG_BLOCK_LIB current ;
package CYGPKG_LINUX_COMPAT current ;
package CYGPKG_FS_FAT current ;
package CYGPKG_MEMALLOC current ;
};
-----
Regards,
Eduardo
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss