I'm running a BBB with the latest Alarm (3.8.13-26-ARCH) and recently installed the tftp server (pacman -Sy tftp-hpa). The installation was quick and the installation according to the wiki was simple.
1) Create /etc/systemd/system/tftpd.service with:
$this->bbcode_second_pass_code('', '[Unit]
Description=hpa's original TFTP daemon
[Service]
ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
StandardInput=socket
StandardOutput=inherit
StandardError=journal')
2) Then run systemctl enable tftpd.socket and systemctl start tftpd.socket
I verified the /srv/tftp directory exists and its set to 777, if that makes a difference. I created a small 12 character ASCII (not a binary) readable (755) file called sip.ver and placed it in the /srv/tftp directory. To test to see if tftp was running, I ran the following command from Windows.
$this->bbcode_second_pass_code('', 'tftp -i 192.168.179.42 get /srv/tftp/sip.ver
also tried
tftp -i 192.168.179.42 get sip.ver
also tried
tftp 192.168.179.42 get sip.ver
')
That is the IP number of my tftp server. After I execute the tftp command on Windows, I run a ps on my Alarm system to see if I see any activity (e.g., ps -ef | grep tftp) and I see there is some activity, so I know the windows tftp command is contacting my tftp server to some degree because /usr/sbin/in.tftpd doe not "start" until after I send the tftp command from Windows. Im assuming the way tftp server works is it listens for a connect and then starts /usr/sbin/in.tftpd.
$this->bbcode_second_pass_code('', 'root 304 1 0 14:41 ? 00:00:00 /usr/sbin/in.tftpd -s /srv/tftp/
')
So that makes me think the tftp server is running, but back on my Windows system, the tftp command eventually times out and I see "Timeout occurred Connection request failed".
I found a post on the Arch forum from six years ago that someone was telling another person they needed to edit their /etc/hosts.allow file and add a line (in.tftpd:ALL). Since the post was so old, I didn't even know if /etc/hosts.allow was still in use because I don't have that file on my system, however, I did create it and put that line in it.
Yes, the Windows TFTP Client features is active (control panel - programs & features - Turn Windows features on or off)
Except for that post from six years ago, I have not found any other information about configuring a tftp server on Arch or Alarm. I would like to verify my tftp server is working. Can anyone provide some assistance?