--- Quote Start ---
originally posted by dannyjacobs@Oct 7 2005, 01:41 PM
for an assignment i need to create an ftp-server on the nios ii dev kit from altera.
the basic webserver example works fine, but they want me to upload files into the flash memory and preferably into the ro_zipfs.zip-file. i don't know where to start. --- Quote End ---
I don't remember seeing an FTP server in eCos. And if "ro_zipfs.zip-file" you mean the included Nios2 HAL "Read-only ZIP File System"... it's called read-only for a reason; you're not going to be able to upload things to it without rebuilding the project and reprogramming it each time. You're going to need something like JFFS2 (which I think is included).
My instinct tells me you might want to try ucLinux instead. I know it has FTP and JFFS2 support, and it will let you use the CFI card as a nonvolatile IDE drive, too. The downside is it's going to take more of your flash up wth OS. Also, ucLinux might be easier for you since it's actually supported by the IDE, unlike eCos where you're writing your own makefiles.
--- Quote Start ---
originally posted by dannyjacobs@Oct 7 2005, 01:41 PM
i read that ecos is usefull for a ftp-server. if i want to upload files from a browser e.g. internet explorer, what should i use best.... c/c++, cgi... --- Quote End ---
The simple web server in eCos does not support POST-method forms, just GET-method, so file upload via http is out. I've been using TFTP for file upload.
Also, the simple eCos web server treats everything like a CGI; each web page is a callback function of the form: int MyWebPage(FILE* client, const char* url, const char* formdata, void* userdata), where you write the web page to the FILE* "client".
eCos doesn't have a filesystem by default, and for most purposes (including TFTP and HTTP) doesn't need one, however, this might seem alien to you if you're just starting out.