timvideos / litex-buildenv

An environment for building LiteX based FPGA designs. Makes it easy to get everything you need!
BSD 2-Clause "Simplified" License
215 stars 79 forks source link

Use an integrated Python based tftp server rather than atftp/in.tftpd on the system. #11

Open mithro opened 6 years ago

mithro commented 6 years ago

It might still be worth providing, eg, Python-based TFTP server to reduce need to install system dependencies that auto-start daemons. (But I suspect some users will be forced to interact with their firewall config anyway.)

ewenmcneill commented 6 years ago

(Copying from issue #6 for ease of reference):

tftpy code appears to be at https://github.com/msoulier/tftpy now. Last update 2017 (cf sf.net page last updated around 2010). Seems to have a listenport option on the TFTPServer class, so at least could be given a simple frontend to listen on a different port.

py3tftp (https://github.com/sirMackk/py3tftp) is server only, takes port on command line, and defaults to UDP/9069.

Potentially either one would do as a "simple TFTP Server run as user".

GitHub
msoulier/tftpy
tftpy - Pure Python TFTP library
GitHub
sirMackk/py3tftp
py3tftp - An asynchronous TFTP server in pure Python 3.5