My Tech notes: Porting vsftpd server to ARM target Board
Subscribe

Unix Documentation

Free Online Unix Training Materials

Lists many links to free Unix training materials.

Pointers and Arrays Materials

Pointers and Arrays materials Explained for C beginners

C FAQ and General Questions C Interview Questions

Powered By

Free XML Skins for Blogger

Powered by Blogger

Tuesday, October 7, 2008

Porting vsftpd server to ARM target Board

I want to cross compile vsftpd for my ARM target board?
vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution.
download vsftpd
cross compile vsftpd
# tar zxvf vsftpd-2.0.5.tar.gz
#cd vsftpd-2.0.5
#vim Makefile
Edit CC = arm-linux-gcc
#make
Now starts getting errors;
/lib/libcap.so.1: could not read symbols
means it can not find libcap shared library.
use
#which libcap
and Edit vsf_findlibs.sh, shield “locate_library /lib/libcap.so.1 && echo "/lib/libcap.so.1";”,
substitute with the path from #which libcap instead of /lib/libcap.so.1

now
#make clean;make

and done;
Next one more hurdle,
vsftpd server and vsftpd.conf configure file will be created.
#cp vsftpd /path/to/target/filesystem/usr/sbin/
#cp vsftpd.conf /etc/

Run vsftpd in the background.
#/usr/sbin/vsftpd &
[1] 1178 root@192.168.2.149:/etc# 500 OOPS: vsftpd: not configured for standalone, must be started from inetd;

you need to edit /etc/vsftpd.conf, and add listen=YES at the end.
Now run;
# vsftpd &

And you are done with ftp server setup.
Enjoy.

1 comment:

shivmitra said...

i have BlueBoard AT91rm9200 board and i m trying to run ftp on it but when i cross compile it gives error in libcap.so.2 could not read symbol..which libcap doesnt gives any output .what should i do??

Post a Comment