summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b691bb)
raw | patch | inline | side by side (parent: 1b691bb)
author | Wolfgang Denk <wd@denx.de> | |
Thu, 11 Mar 2010 22:56:03 +0000 (23:56 +0100) | ||
committer | Wolfgang Denk <wd@denx.de> | |
Thu, 11 Mar 2010 22:56:03 +0000 (23:56 +0100) |
The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env
variable serverip be set for the TFTP access. If DHCP is to be used
to get the serverip env variable, this doesn't work as DHCP happens
after the auto-update attempt has run. A solution is to run DHCP in
PREBOOT, but even this is too late.
To solve this, we move update_tftp() below the PREBOOT stuff.
Signed-off-by: Wolfgang Denk <wd@denx.de>
variable serverip be set for the TFTP access. If DHCP is to be used
to get the serverip env variable, this doesn't work as DHCP happens
after the auto-update attempt has run. A solution is to run DHCP in
PREBOOT, but even this is too late.
To solve this, we move update_tftp() below the PREBOOT stuff.
Signed-off-by: Wolfgang Denk <wd@denx.de>
common/main.c | patch | blob | history |
diff --git a/common/main.c b/common/main.c
index 10d8904170b2709ccc0d96d3d6e17698945c036e..c860b0b0e52b5edce3e92aa7dd0e506f09af764a 100644 (file)
--- a/common/main.c
+++ b/common/main.c
trab_vfd (bmp);
#endif /* CONFIG_VFD && VFD_TEST_LOGO */
-#if defined(CONFIG_UPDATE_TFTP)
- update_tftp ();
-#endif /* CONFIG_UPDATE_TFTP */
-
#ifdef CONFIG_BOOTCOUNT_LIMIT
bootcount = bootcount_load();
bootcount++;
}
#endif /* CONFIG_PREBOOT */
+#if defined(CONFIG_UPDATE_TFTP)
+ update_tftp ();
+#endif /* CONFIG_UPDATE_TFTP */
+
#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
s = getenv ("bootdelay");
bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;