Forum Discussion
FTP server for stand-alone LWIP
My group is currently working on our first project using an FPGA. We are looking to FTP large amounts of data directly to a hard drive. We are currently running uClinux on a Stratix II with the mtip gigabit ethernet core. However, we are nowhere near the speeds we need. The mtip people are telling us that uClinux is taxing the Nios II and that we cannot achieve the speeds we need (25-35 MB/sec). They suggest switching to stand-alone LWIP. Does anyone know if an FTP server exists for stand-alone LWIP? If not, can anyone recommend a good starting point?
2 Replies
- Altera_Forum
Honored Contributor
MTIP does not support IP/TCP/UDP checksum offloading. It is unlikely that switch to LWIP will ever solve the problem. You should consider Gigabit chips which support checksum offloading and zerocopy, eg, e1000 and sky.
http://www.tldp.org/howto/ethernet-howto-7.html (http://www.tldp.org/howto/ethernet-howto-7.html) http://www.linuxjournal.com/article/6345 (http://www.linuxjournal.com/article/6345) http://www.fefe.de/linuxeth/ (http://www.fefe.de/linuxeth/) - Altera_Forum
Honored Contributor
Writing an FTP server, for standalone LWIP would not be trivial. Have you considered using TFTP instead? You could probably write that code over a weekend. Take a look at Altera's literature page. There's a remote config. example written for LWIP/uC-OSII, but it shouldn't take too much to port that over to standalone LWIP.
Cheers, - slacker