This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Mount a FAT partition
- From: Alessio Bianchi <venator85 at gmail dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 14 Sep 2009 11:11:34 +0200
- Subject: [ECOS] Re: Mount a FAT partition
- References: <4AA79848.6000004@gmail.com>
Anyone? :)
Thanks
2009/9/9 Alessio Bianchi <venator85@gmail.com>:
> Hi, I'd want to mount the only partition from a pen drive formatted in FAT.
> My intent is to run a web server (as athttpd) from the pendrive attached to
> a regular i386 PC and serve the files located on it. I have a few questions:
> - does eCos support USB mass storage devices?
> - which packages should I add to do this?
> I managed to configure the network and have the httpd serve hard-coded
> pages. I added the packages:
> ÂCYGPKG_IO_FILEIO
> ÂCYGPKG_IO
> ÂCYGPKG_LIBC_STRING
> ÂCYGPKG_DEVS_DISK_IDE
> ÂCYGPKG_IO_DISK
> ÂCYGPKG_BLOCK_LIB
> ÂCYGPKG_LINUX_COMPAT
> ÂCYGPKG_FS_FAT
> ÂCYGPKG_MEMALLOC
> and used the mount command like this:
> Âx = mount("/dev/idedisk0/0" , "/", "fatfs:sync=write");
> or
> Âx = mount("/dev/hda1" , "/", "fatfs:sync=write");
> or
> Âx = mount("/dev/hda0/1" , "/", "fatfs:sync=write");
> but I don't know exactly the syntax of devnames as mount returns -1.
>
> I also tried to analyze the IDE debug infos but I don't have a serial port
> available and I can only see on my PC screen the last portion of the
> messages, which were not helpful. Does anyone at least know how to scroll up
> (shift+PageUp doesn't work)?
>
> Thank you very much
> Bye
> Alessio
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss