[U-Boot] ping timeout

David Collier from_denx_uboot at dexdyne.com
Fri Oct 23 10:52:00 CEST 2009


I'd like to have a boot cmd which says

"if my test server is there, download uImage from it, otherwise boot from
the MMC card."

I can do that by starting with a ping, and waiting for it to fail, but it
takes 10 seconds, which is way too much to add to the normal boot
process.

The timeout appears to be set by a line in net.h reading

	NetSetTimeout (10UL * CFG_HZ, PingTimeout);

Questions then:

Is there a better way to quickly check for the presence of a server?
Actually trying TFTP seems to take even longer.

Would it be a good enhancement to u-boot to have an environment variable
which changes the ping timeout when it exists?
        
David Collier

www.dexdyne.com


More information about the U-Boot mailing list