[ECOS] Mount a FAT partition
Wed Sep 9 11:58:00 GMT 2009
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:
and used the mount command like this:
x = mount("/dev/idedisk0/0" , "/", "fatfs:sync=write");
x = mount("/dev/hda1" , "/", "fatfs:sync=write");
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
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss