[U-Boot] [PATCH 1/1] MX5: Unable to get ip address when using dhcp

Jason Liu r64343 at freescale.com
Wed Oct 20 08:11:28 CEST 2010


Can't get IP address with dhcp due to the dhcp server not
allow the empty param list request under some network env

Add the advanced DHCP options to fix this issue:

CONFIG_BOOTP_SUBNETMASK
CONFIG_BOOTP_GATEWAY
CONFIG_BOOTP_DNS

Signed-off-by: Jason Liu <r64343 at freescale.com>
---
 include/configs/mx51evk.h |    4 ++++
 include/configs/vision2.h |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 291404c..b1f673d 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -105,6 +105,10 @@
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_NET
+#define CONFIG_BOOTP_SUBNETMASK
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_DNS
+
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
diff --git a/include/configs/vision2.h b/include/configs/vision2.h
index a2ecbe5..7fdf17f 100644
--- a/include/configs/vision2.h
+++ b/include/configs/vision2.h
@@ -127,6 +127,10 @@
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_NET
+#define CONFIG_BOOTP_SUBNETMASK
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_DNS
+
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
-- 
1.7.0.4




More information about the U-Boot mailing list