
On Tue, Apr 12, 2011 at 10:26 PM, Wolfgang Denk wd@denx.de wrote:
Dear Simon Glass,
In message BANLkTinsrGR1T_YAmQ-21d73OKEo__nGaA@mail.gmail.com you wrote:
Why don't you simply re-assing another value to "serverip" before doing any TFTP transfers?
The point here is to initialize the ethernet only once.
Technically it makes no difference if you change the "serverip" address in a script or in C code.
setenv autoload n; bootp; tftp...
does two initializations which costs a few seconds (to get a link, etc.).
This should not be the case. Which board / network hardware are you talking about?
+list
It is a USB Ethernet dongle (asix). The initialization starts from scratch and obtains a link each time. Maybe I should look at that. I have send this with other platforms also, but perhaps the fault is with the driver in each case.
I will drop this patch from the set.
Regards, Simon