Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - tftpd does not work in QNX Neutrino 6.5.0: (12 Items)
   
tftpd does not work in QNX Neutrino 6.5.0  
Hi QNX Support,

I am using QNX Neutrino 6.5.0, and the tftpd does not work.
I have inetd running on my Neutrino 6.5.0 target, and the /etc/inetd.conf has following tftp setting:

# ps -ef |grep inetd
    0     344112          1  - Jan01 ?        00:00:00 inetd /etc/inetd.conf

# cat /etc/inetd.conf |grep tftp 
#tftp   dgram udp       wait    root    /usr/sbin/tftpd in.tftpd
tftp   dgram udp   wait    root    /usr/sbin/tftpd  tftpd -s /tftoboot

Since the tftp daemon in Neutrino 6.5.0 is "tftpd" (not in.tftpd), so I replace the "in.tftp" with "tftpd" in "/etc/
inetd.conf".

On my Neutrino 6.5.0 target, I have following files under /tftpboot:
# ls /tftpboot/
SDMA_MUTEX     inetd.pid      sshd.pid       test.txt

When I try to tftp download the "test.txt" file from my Neutrino 6.5.0 target to my Linux PC, I got the tftp timeout:

Linux PC$ tftp -v 172.17.16.1
Connected to 172.17.16.1 (172.17.16.1), port 69
tftp> trace
Packet tracing on.
tftp> status
Connected to 172.17.16.1.
Mode: netascii Verbose: on Tracing: on Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> get test.txt
getting from 172.17.16.1:test.txt to test.txt [netascii]
sent RRQ <file=test.txt, mode=netascii>
sent RRQ <file=test.txt, mode=netascii>
sent RRQ <file=test.txt, mode=netascii>
sent RRQ <file=test.txt, mode=netascii>
sent RRQ <file=test.txt, mode=netascii>
Transfer timed out.

Any suggestions?

Thanks,
Jane Sun

 
Re: tftpd does not work in QNX Neutrino 6.5.0  
try to invoke sniffer, for examble tcpdump, maybe you will see some intresting things
Re: tftpd does not work in QNX Neutrino 6.5.0  
If you work from Linux machine, try to kill iptables.
Re: tftpd does not work in QNX Neutrino 6.5.0  
Thank you very much for your prompt reply.

Yes, I have disabled the iptables on my Linux PC.
On my QNX target, the /etc/services has tftp port 69 enabled:

# cat /etc/services |grep tftp
tftp        69/tcp
tftp            69/udp

The netstat shows that tftp is enabled:
# netstat -a |grep tftp
udp        0      0  *.tftp                 *.*                   

But the tcpdump on  QNX target shows the error of "udp port tftp unreachable":
# tcpdump -vvv -xx -e -i fec0

19:17:45.986826 00:16:e0:29:16:51 (oui Unknown) > 00:04:a3:4e:dc:d4 (oui Unknown), ethertype IPv4 (0x0
800), length 63: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 49) 172.17.1.1.4
1084 > 172.17.16.1.tftp: [udp sum ok]  21 RRQ "inetd.pid" netascii 
        0x0000:  0004 a34e dcd4 0016 e029 1651 0800 4500
        0x0010:  0031 0000 4000 4011 d197 ac11 0101 ac11
        0x0020:  1001 a07c 0045 001d 2ebe 0001 696e 6574
        0x0030:  642e 7069 6400 6e65 7461 7363 6969 00
19:17:45.986826 00:04:a3:4e:dc:d4 (oui Unknown) > 00:16:e0:29:16:51 (oui Unknown), ethertype IPv4 (0x0
800), length 70: (tos 0x0, ttl 255, id 101, offset 0, flags [none], proto ICMP (1), length 56) 172.17.
16.1 > 172.17.1.1: ICMP 172.17.16.1 udp port tftp unreachable, length 36
        (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 49) 172.17.1.1.41084 > 17
2.17.16.1.tftp:  21 [|tftp]
        0x0000:  0016 e029 1651 0004 a34e dcd4 0800 4500
        0x0010:  0038 0065 0000 ff01 523b ac11 1001 ac11
        0x0020:  0101 0303 2d60 0000 0000 4500 0031 0000
        0x0030:  4000 4011 d197 ac11 0101 ac11 1001 a07c
        0x0040:  0045 001d 2ebe

Any other suggestions that I can try?
Thanks!
Re: tftpd does not work in QNX Neutrino 6.5.0  
Try to invoke this commands from Qnx machine. 


tftp localhost
tftp> get test.txt
tftp> quit 

All it normal??????

And ......... your computers in the LAN?????? Or you try to connect to Qnx machine over Internet?????????



Re: tftpd does not work in QNX Neutrino 6.5.0  
Your IP  = 172.17.16.1. You work over NAT????????
Re: tftpd does not work in QNX Neutrino 6.5.0  
The following tftp command on my QNX target also fails:

# tftp localhost
tftp> get test.txt
Transfer timed out.

My Linux PC (IP=172.17.1.1) connects directly to my QNX target (IP=172.17.16.1), they are not on the real network.
I was able to ping QNX target from my Linux PC, and ssh login to QNX target from my Linux PC.
I was also able to tftp download a file from Linux PC to QNX target, but not the other way around.
So it seems like only the tftp client works on my QNX target, but not the tftpd server.

Re: tftpd does not work in QNX Neutrino 6.5.0  
Try to start tftpd daemon by hand (therefore you must comment string in the inetd.conf which start tftpd).
Re: tftpd does not work in QNX Neutrino 6.5.0  
By the way , you can find tftpd sources and then find string with error you have. This solve all your problems))))
Re: tftpd does not work in QNX Neutrino 6.5.0  
> Hi QNX Support,
> 
> I am using QNX Neutrino 6.5.0, and the tftpd does not work.
> I have inetd running on my Neutrino 6.5.0 target, and the /etc/inetd.conf has 
> following tftp setting:
> 
> # ps -ef |grep inetd
>     0     344112          1  - Jan01 ?        00:00:00 inetd /etc/inetd.conf
> 
> # cat /etc/inetd.conf |grep tftp 
> #tftp   dgram udp       wait    root    /usr/sbin/tftpd in.tftpd
> tftp   dgram udp   wait    root    /usr/sbin/tftpd  tftpd -s /tftoboot
> 
Try to remove "-s" option. Your string in inetd.conf must be as:

 tftp   dgram udp   wait    root    /usr/sbin/tftpd  tftpd /tftoboot
Re: tftpd does not work in QNX Neutrino 6.5.0  
Typo:

tftp   dgram udp   wait    root    /usr/sbin/tftpd  tftpd /tftpboot
Re: tftpd does not work in QNX Neutrino 6.5.0  
Hi Oleg, 

Yes, you are correct. 
After taking out the '-s' option in /etc/inetd.conf, the tftpd on my QNX target works fine now.

tftp   dgram udp   wait    root    /usr/sbin/tftpd  tftpd /tftpboot

Thank you very much for all you help and great support.
You may close this support ticket now.

Thank you and Best Regards,
Jane