[U-Boot-Users] [PATCH] fix dhcp command retry
roger blofeld
blofeldus at yahoo.com
Thu Sep 16 20:14:35 CEST 2004
Hi
If the dhcp command fails and retries, it does not reset the BOOTP
counter:
=> dhcp
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.0.207
Using FEC ETHERNET device
TFTP from server 192.168.0.1; our IP address is 192.168.0.207
Filename 'MPC5200/uImage'.
Load address: 0x100000
Loading: ###T ###T ###T ###T ###T ##T ###T ###T ###T ###T ###
Retry count exceeded; starting again
BOOTP broadcast 4
BOOTP broadcast 5
Retry count exceeded; starting again
BOOTP broadcast 6
Retry count exceeded; starting again
The patch below fixes the problem for me
-roger
===================================================================
RCS file: /cvsroot/u-boot/u-boot/net/net.c,v
retrieving revision 1.16
diff -u -r1.16 net.c
--- net/net.c 2 Aug 2004 21:11:29 -0000 1.16
+++ net/net.c 16 Sep 2004 18:00:01 -0000
@@ -383,6 +383,7 @@
/* Start with a clean slate... */
NetOurIP = 0;
NetServerIP = getenv_IPaddr ("serverip");
+ BootpTry = 0;
DhcpRequest(); /* Basically same as
BOOTP */
break;
#endif /* CFG_CMD_DHCP */
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
More information about the U-Boot
mailing list