TFTP trouble

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Author Message
ggp81
DD-WRT Novice


Joined: 07 Feb 2007
Posts: 45

PostPosted: Mon Oct 04, 2010 10:36    Post subject: TFTP trouble Reply with quote
Hello,
trying to upgrade a device using Linux TFTP.

root@ggp-desktop:~# dpkg -l | grep tftp
ii tftp 0.17-17ubuntu1 Trivial file transfer protocol client

root@ggp-desktop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:23:ae:65:e4:a0
indirizzo inet:192.168.1.2 Bcast:192.168.1.255 Maschera:255.255.255.0
indirizzo inet6: fe80::223:aeff:fe65:e4a0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33426 errors:0 dropped:0 overruns:0 frame:0
TX packets:16424 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:25042394 (25.0 MB) Byte TX:2223140 (2.2 MB)
Interrupt:16

lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1476 errors:0 dropped:0 overruns:0 frame:0
TX packets:1476 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:0
Byte RX:515464 (515.4 KB) Byte TX:515464 (515.4 KB)

root@ggp-desktop:~# ls -la /home/ggp/firmware.tftp
-rwxr-xr-x 1 ggp ggp 12402940 2010-10-04 11:41 /home/ggp/firmware.tftp

root@ggp-desktop:~# tftp
tftp> verbose
Verbose mode on.
tftp> binary
mode set to octet
tftp> trace
Packet tracing on.
tftp> rexmt 1
tftp> timeout 60
tftp> connect 192.168.1.1
tftp> put /home/ggp/firmware.tftp
tftp: firmware.tftp: No such file or directory

As you can see the file exists and has the correct permissions set.
I remember I did the job one year ago on this machine, but I think I used another syntax, and unfortunately I don't remember it.
Does someone can help me, please?

Thank you.
Sponsor
GeeTek
DD-WRT Guru


Joined: 06 Jun 2006
Posts: 3740
Location: I'm the one on the plate.

PostPosted: Mon Oct 04, 2010 11:56    Post subject: Re: TFTP trouble Reply with quote
ggp81 wrote:
Trivial file transfer protocol...


So that is what TFTP stands for ! Shocked Shocked Shocked

If you have a Windows box laying around, try the automated method.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=79864&start=15
ggp81
DD-WRT Novice


Joined: 07 Feb 2007
Posts: 45

PostPosted: Mon Oct 04, 2010 13:22    Post subject: Reply with quote
Resolved.
I was calling tftp as "root", so this is the procedure that has worked for me

root@ggp-desktop:~# cp firmware.tftp /root/
root@ggp-desktop:~# tftp 192.168.1.1
tftp> verbose
Verbose mode on.
tftp> binary
mode set to octet
tftp> trace
Packet tracing on.
tftp> rexmt 1
tftp> timeout 60
tftp> connect 192.168.1.1
tftp> status
Connected to 192.168.1.1.
Mode: octet Verbose: on Tracing: on
Rexmt-interval: 1 seconds, Max-timeout: 60 seconds
tftp> put firmware.tftp
putting firmware.tftp to 192.168.1.1:firmware.tftp [octet]
sent WRQ <file=firmware.tftp, mode=octet>
etc.

Now my problem is that boot time on my router is very minimal, and I cannot change it. But I have one problem less :)

Perhaps the fact that the file must be in the directory is something discounted. Anyway, the fact that I could not find any trace of this in the tftp manual or in the Google is too bad!!!

Have a nice day.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum