Problem with tftpd

uname -rs

QNX 6.3.0

grep tftpd /etc/inetd.conf

#tftp dgram udp wait root /usr/sbin/tftpd in.tftpd
tftp dgram udp wait root /usr/sbin/tftpd tftpd -l -s /tftpboot
#tftp dgram udp6 wait root /usr/sbin/tftpd tftpd -l -s /tftpboot

netstat -a | grep tftp

udp 0 0 *.tftp .

tftp 127.0.0.1

tftp> ver
Verbose mode on.
tftp> tra
Packet tracing on.
tftp> get zzz
getting from 127.0.0.1:zzz to zzz [netascii]
sent RRQ <file=zzz, mode=netascii>
received ERROR <code=2, msg=Access violation>
Error code 2: Access violation
tftp> quit

Mode 0777 on directory (/tftpboot) and file (zzz).
Why don`t work tftp?

Hi,

uname -rs

QNX 6.3.0

grep tftpd /etc/inetd.conf

#tftp dgram udp wait root /usr/sbin/tftpd in.tftpd
tftp dgram udp wait root /usr/sbin/tftpd tftpd -l -s /tftpboot
#tftp dgram udp6 wait root /usr/sbin/tftpd tftpd -l -s /tftpboot

netstat -a | grep tftp

udp 0 0 *.tftp .

tftp 127.0.0.1

tftp> ver
Verbose mode on.
tftp> tra
Packet tracing on.
tftp> get zzz
getting from 127.0.0.1:zzz to zzz [netascii]
sent RRQ <file=zzz, mode=netascii
received ERROR <code=2, msg=Access violation
Error code 2: Access violation
tftp> quit

Mode 0777 on directory (/tftpboot) and file (zzz).
Why don`t work tftp?

I’ve just check it… And it works for me:


uname -a

QNX qnx 6.3.0 2004/04/29-21:23:19UTC x86pc x86

grep tftp /etc/inetd.conf

tftp dgram udp wait root /usr/sbin/tftpd in.tftpd

id

uid=0(root) gid=0(root)

tftp 127.0.0.1

tftp> get /tftpboot/qnxbasedma.ifs
Received 916624 bytes in 2.6 seconds
tftp> quit

ls -l /tftp*

total 7005
drwxrwxrwx 2 root root 4096 Jul 28 19:41 .
drwxr-xr-x 16 root root 4096 Jul 28 19:40 …
-rw-rw-r-- 1 root root 850876 Jul 14 22:28 elf.nfs-eepro100.ifs
-rw-rw-r-- 1 root root 907404 Jun 21 17:34 qnxbase.ifs
-rw-rw-r-- 1 root root 907400 Jun 21 17:34 qnxbasedma.ifs
-rw-rw-r-- 1 root root 911616 Jun 21 17:34 qnxbasesmp.ifs

What can you see from ‘pidin -P io-net mem’?



Regards,
Igor.

Igor Mazanov wrote:

Thanks.
I have understood the mistake.

tftp> get zzz —> tftp> get /tftpboot/zzz

Hi All,

I am facing a similar problem for tftp. I have connected the QNX
machine to my laptop and i want to tranfer a file (/tranfer.txt) from
the machine to my laptop using tftp. The following messages are
displayed:

/#tftp
tftp> connect 10.10.9.30
tftp> status
Connected to 10.10.9.30.
Mode: octet Verbose: on Tracing: on
Rexmt-interval: 5 seconds, Max-timeout: 60 seconds
tftp> put /tranfer.txt
putting tranfer.txt to 10.10.9.30:/tranfer.txt [octet]
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
sent WRQ <file=/tranfer.txt, mode=octet>
Transfer timed out.

Any idea how I can complete the file transfer??