This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TFTP problems in Test

Hi,

I am a beginner im TFTP protocol in Linux and I habe been trying to make U-boot via TFTP. But first I will test my TFTP server in my host. my host works in Ubuntu 12.04 in a virtual box (VMware Player)

Configuration:

# cat /etc/xinetd.d/tftp

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

# cat /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
RUN_DAEMON="yes"

when I see the /tftpboot file in my host this is the result:

# ls -l /tftpboot/
insgesamt 3096
-rwxrwxrwx 1 root   root     174 Dez  4 14:50 test
-rwxrwxrwx 1 nobody root 3163680 Dez  7 08:59 uImage-am335x-evm.bin

Next I will try to obtain locally via TFTP in my Host some file:

# tftp localhost
tftp> get uImage-am335x-evm.bin
Error code 1: File not found
tftp> quit

Why is it? Because the file exists and i believe that the TFTP configuration is good. When I make a extra test like, that it shows:

# ps aux| grep tftp
root      5218  0.0  0.0  10928   916 pts/5    S+   12:45   0:00 grep --color=auto tftp

# grep tftp /etc/services
tftp  69/udp

netstat -na | grep LIST | grep 69--------- this command shows nothing

And I had been communicating properly over TFTP yesterday before that happened. The only significant change was ./setup.sh made a update for tftp-hpa and tftpd.

I have not idea what it happens, any help would be greatly appreciated

-Regards

  • Hi,

    when I see the /var/log/syslog the lines show that:

    Dec 12 13:12:16 sst-virtual-machine tftpd[5498]: tftpd: trying to get file: test
    Dec 12 13:12:16 sst-virtual-machine tftpd[5498]: tftpd: serving file from /srv/tftp

    Why is the test served from /svr/tftp? Because there are something that I miss out, because my configuration shows that server_args=/tftpboot.

    -Regards

  • Hi,

    I have already solved the mistake. This was only that the update for ./setup.sh generated a /etc/xinetd.d/tftpd with other configuration:

    # cat /etc/xinetd.d/tftpd

    service tftp
    {
        socket_type = dgram
        wait = yes
        user = root
        server = /usr/sbin/in.tftpd
        server_args = -s /srv/tftp
    }

    this file had overwrite the correct configuration in /etc/xinetd.d/tftp.

    Sorry for the time that you would spend in this question.

    -Regards