]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
kconfig: add Kconfig options for CONFIG_BOOTP_* settings
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 12 Jun 2015 11:15:19 +0000 (13:15 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 15 Jun 2015 12:39:34 +0000 (14:39 +0200)
common/Kconfig
include/configs/tx28.h
include/configs/tx48.h
include/configs/tx51.h
include/configs/tx53.h

index 1f361555dc15b3c3eabd682373622e72bc8fdd18..dfc581bd147b13c9f09cc1f55522e48f369b7943 100644 (file)
@@ -295,6 +295,83 @@ config CMD_DHCP
        help
          Boot image via network using DHCP/TFTP protocol
 
+if CMD_DHCP
+
+menu "DHCP options"
+
+config BOOTP_BOOTFILESIZE
+       bool "obtain bootfile size from DHCP"
+
+config BOOTP_BOOTPATH
+       bool "obtain bootfile path from DHCP"
+
+config BOOTP_DNS
+       bool "obtain DNS server IP address from DHCP"
+
+config BOOTP_DNS2
+       bool "store secondary DNS IP address in dnsip2"
+
+config BOOTP_GATEWAY
+       bool "obtain gateway IP address from DHCP"
+
+config BOOTP_ID_CACHE_SIZE
+       int "DHCP transaction ID cache size"
+       default 4
+       help
+         BOOTP packets are uniquely identified using a 32-bit ID. The
+         server will copy the ID from client requests to responses and
+         U-Boot will use this to determine if it is the destination of
+         an incoming response. Some servers will check that addresses
+         aren't in use before handing them out (usually using an ARP
+         ping) and therefore take up to a few hundred milliseconds to
+         respond. Network congestion may also influence the time it
+         takes for a response to make it back to the client. If that
+         time is too long, U-Boot will retransmit requests. In order
+         to allow earlier responses to still be accepted after these
+         retransmissions, U-Boot's BOOTP client keeps a small cache of
+         IDs. The CONFIG_BOOTP_ID_CACHE_SIZE controls the size of this
+         cache. The default is to keep IDs for up to four outstanding
+         requests. Increasing this will allow U-Boot to accept offers
+         from a BOOTP client in networks with unusually high latency.
+
+config BOOTP_MAY_FAIL
+       bool "Do not start over, if DHCP server is not available"
+       help
+         If the DHCP server is not found after the configured retry
+         count, the call will fail instead of starting over.  This
+         can be used to fail over to Link-local IP address
+         configuration if the DHCP server is not available.
+
+config BOOTP_NISDOMAIN
+       bool "obtain NIS domain from DHCP"
+
+config BOOTP_NTPSERVER
+       bool "obtain NTP server IP address from DHCP"
+
+config BOOTP_RANDOM_DELAY
+       bool "Use a (pseudo) random delay between DHCP retries"
+       select LIB_RAND
+
+config BOOTP_RANDOM_ID
+       bool "Generate a (pseudo) random transaction ID"
+       select LIB_RAND
+
+config BOOTP_SEND_HOSTNAME
+       bool "send hostname in DHCP request"
+
+config BOOTP_SUBNETMASK
+       bool "obtain subnet mask from DHCP"
+
+config BOOTP_TIMEOFFSET
+       bool "obtain  from DHCP"
+
+config BOOTP_VENDOREX
+       bool "obtain  from DHCP"
+
+endmenu
+
+endif
+
 config CMD_NFS
        bool "nfs"
        help
index a8e4df1ffcfbb0a6ba52e4ce9db8556920981509..fcc9120cdb3151e4ed33a6ea9c9616dcedf49432 100644 (file)
 #endif
 
 #define CONFIG_FEC_XCV_TYPE            RMII
-/* Add for working with "strict" DHCP server */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_DNS
-#define CONFIG_BOOTP_RANDOM_ID
 #endif
 
 #ifndef CONFIG_ENV_IS_NOWHERE
index e63b08074a9def788d10c65c753435587a14fc59..79c92cc97f113e5094738b09128cf7da4cbe557c 100644 (file)
 #ifdef CONFIG_CMD_NET
 #define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_PHY_GIGE
-/* Add for working with "strict" DHCP server */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_DNS
-#define CONFIG_BOOTP_DNS2
 #endif
 
 /*
index e8d9355c026b979a1b51054d23c1c750388bcfed..a4ba2d0500e5cf4eda05669cd72e119fa66e93f7 100644 (file)
 #ifdef CONFIG_FEC_MXC
 #define IMX_FEC_BASE                   FEC_BASE_ADDR
 #define CONFIG_FEC_XCV_TYPE            MII100
-/* Add for working with "strict" DHCP server */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_DNS
 #endif
 
 /*
index 6db8f52730d8131bdfe62ea6c46d70c70fdaf03b..5ea59f480d70a2a81787fb7ff7fe1cc1e22bd80f 100644 (file)
 #define IMX_FEC_BASE                   FEC_BASE_ADDR
 #define CONFIG_FEC_MXC_PHYADDR         0
 #define CONFIG_FEC_XCV_TYPE            MII100
-/* Add for working with "strict" DHCP server */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_DNS
 #endif
 
 /*