has been under the development of windows, when the need to download firmware to the Development Board, is generally open a TFTPD32, set the firmware folder, everything is OK
Now switch to Linux and see how the server operating system is superior in service configuration
Before and after the installation of WU-FTPD,VSFTPD,PURE-FTPD,TFTPD (as well as the derivative of the TFTPD-HPA), not one can make my board successfully down to firmware, but also wasted my time to understand the respective configuration file format, inetd/ XINETD configuration, syslog configuration, etc.
Finally, I thought of the phrase "life's short, use Python"
So, found this artifact--tftpy
Install first
sudo easy_install tftpy
Then write a wrapper to name tftp.py
#!/usr/bin/pythonimport tftpyserver = tftpy. Tftpserver ('/home/wang/ftpd ') server.listen (' 0.0.0.0 ', 69)
At last
chmod +x/path/to/tftpd.pysudo/path/to/tftpd.py
Verify on the board (BusyBox)
18bc# tftp-g-R b_c-l b_c 192.168.0.10318bc# lssettings b_c jsoncpp.log pump.sock
B_c is the board downloaded from the host computer files
The simplest way to build FTP server under Linux