OpenWrt Forum Archive

Topic: Problems with flashing via tftp.

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have flash WRT54GL with svn version of Kamikaze, and after this it not boot. Power indicator is blinking, and DMZ is switched off. I try to flash router with kamikaze 7.07 via tftp.

echo -e "binary\nrexmt 1\ntimeout 60\ntrace\nput openwrt-wrt54g-2.4-squashfs.bin\n" | tftp 192.168.1.1

But it show error: "Transfer timed out."
I noticed a strange thing in tcpdump log. In seems that router cat't arp resolve ip of my computer. Here the log:

No. Time      Source            Destination      Prot    Info
 1 0.000000  Wistron_d7:c2:41  Broadcast         ARP   Who has 192.168.1.1?  Tell 192.168.1.2
 ....
 5 3.829121  192.168.1.1       192.168.1.255     WCCP  Unknown WCCP message (3735900274)
 6 4.028190  Wistron_d7:c2:41  Broadcast         ARP   Who has 192.168.1.1?  Tell 192.168.1.2
 ....
16 13.076966 00:1a:70:4e:f9:41 Wistron_d7:c2:41  ARP   192.168.1.1 is at 00:1a:70:4e:f9:41
17 13.076978 192.168.1.2       192.168.1.1       TFTP  Write Request, File: openwrt.bin, Transfer type: octet
18 13.077942 00:1a:70:4e:f9:41 Broadcast         ARP   Who has 192.168.1.2?  Tell 192.168.1.1
19 13.077957 Wistron_d7:c2:41  00:1a:70:4e:f9:41 ARP   192.168.1.2 is at 00:0a:e4:d7:c2:41
20 14.074223 00:1a:70:4e:f9:41 Broadcast         ARP   Who has 192.168.1.2?  Tell 192.168.1.1
21 14.074242 Wistron_d7:c2:41  00:1a:70:4e:f9:41 ARP   192.168.1.2 is at 00:0a:e4:d7:c2:41
22 14.085588 192.168.1.2       192.168.1.1       TFTP  Write Request, File: openwrt.bin, Transfer type: octet
23 15.074257 00:1a:70:4e:f9:41 Broadcast         ARP   Who has 192.168.1.2?  Tell 192.168.1.1
24 15.074275 Wistron_d7:c2:41  00:1a:70:4e:f9:41 ARP   192.168.1.2 is at 00:0a:e4:d7:c2:41
25 15.092724 192.168.1.2       192.168.1.1       TFTP  Write Request, File: openwrt.bin, Transfer type: octet
26 16.096917 192.168.1.2       192.168.1.1       TFTP  Write Request, File: openwrt.bin, Transfer type: octet
27 16.097391 00:1a:70:4e:f9:41 Broadcast         ARP   Who has 192.168.1.2?  Tell 192.168.1.1
28 16.097403 Wistron_d7:c2:41  00:1a:70:4e:f9:41 ARP   192.168.1.2 is at 00:0a:e4:d7:c2:41
29 17.094282 00:1a:70:4e:f9:41 Broadcast         ARP   Who has 192.168.1.2?  Tell 192.168.1.1
30 17.094297 Wistron_d7:c2:41  00:1a:70:4e:f9:41 ARP   192.168.1.2 is at 00:0a:e4:d7:c2:41
.... and many requests "Who has 192.168.1.2?  Tell 192.168.1.1" 
and responses "192.168.1.2 is at 00:0a:e4:d7:c2:41".

Any ideas how to reflash it without JTAG?

P.S.
Sorry for my english.

I had the exact same problem. How I fixed it was:

1) nvram set boot_wait=on
2) nvram commit
3) mtd -r erase linux

I was then able to TFTP an image (Thibor, to be exact) using a hardwired laptop and TFTP.

Hm... But how can I do that, if OpenWrt isn't loading? And I can't enter the failsafe mode.

The discussion might have continued from here.