Kconfig 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. #
  2. # Network configuration
  3. #
  4. menuconfig NET
  5. bool "Networking support"
  6. default y
  7. if NET
  8. config ARP_TIMEOUT
  9. int "Milliseconds before trying ARP again"
  10. default 5000
  11. config NET_RETRY_COUNT
  12. int "Number of timeouts before giving up"
  13. default 5
  14. help
  15. This variable defines the number of retries for network operations
  16. like ARP, RARP, TFTP, or BOOTP before giving up the operation.
  17. config PROT_UDP
  18. bool "Enable generic udp framework"
  19. help
  20. Enable a generic udp framework that allows defining a custom
  21. handler for udp protocol.
  22. config BOOTDEV_ETH
  23. bool "Enable bootdev for ethernet"
  24. depends on BOOTSTD
  25. default y
  26. help
  27. Provide a bootdev for ethernet so that is it possible to boot
  28. an operationg system over the network, using the PXE (Preboot
  29. Execution Environment) protocol.
  30. config BOOTP_SEND_HOSTNAME
  31. bool "Send hostname to DNS server"
  32. help
  33. Some DHCP servers are capable to do a dynamic update of a
  34. DNS server. To do this, they need the hostname of the DHCP
  35. requester.
  36. If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content
  37. of the "hostname" environment variable is passed as
  38. option 12 to the DHCP server.
  39. config NET_RANDOM_ETHADDR
  40. bool "Random ethaddr if unset"
  41. help
  42. Selecting this will allow the Ethernet interface to function even
  43. when the ethaddr variable for that interface is unset. In this case,
  44. a random MAC address in the locally administered address space is
  45. generated. It will be saved to the appropriate environment variable,
  46. too.
  47. config NETCONSOLE
  48. bool "NetConsole support"
  49. help
  50. Support the 'nc' input/output device for networked console.
  51. See README.NetConsole for details.
  52. config IP_DEFRAG
  53. bool "Support IP datagram reassembly"
  54. help
  55. Selecting this will enable IP datagram reassembly according
  56. to the algorithm in RFC815.
  57. config NET_MAXDEFRAG
  58. int "Size of buffer used for IP datagram reassembly"
  59. depends on IP_DEFRAG
  60. default 16384
  61. range 1024 65536
  62. help
  63. This defines the size of the statically allocated buffer
  64. used for reassembly, and thus an upper bound for the size of
  65. IP datagrams that can be received.
  66. config SYS_FAULT_ECHO_LINK_DOWN
  67. bool "Echo the inverted Ethernet link state to the fault LED"
  68. help
  69. Echo the inverted Ethernet link state to the fault LED. Note, if
  70. this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to
  71. be configured.
  72. config TFTP_BLOCKSIZE
  73. int "TFTP block size"
  74. default 1468
  75. help
  76. Default TFTP block size.
  77. The MTU is typically 1500 for ethernet, so a TFTP block of
  78. 1468 (MTU minus eth.hdrs) provides a good throughput with
  79. almost-MTU block sizes.
  80. You can also activate CONFIG_IP_DEFRAG to set a larger block.
  81. config TFTP_PORT
  82. bool "Set TFTP UDP source/destination ports via the environment"
  83. help
  84. If this is defined, the environment variable tftpsrcp is used to
  85. supply the TFTP UDP source port value. If tftpsrcp isn't defined,
  86. the normal pseudo-random port number generator is used.
  87. Also, the environment variable tftpdstp is used to supply the TFTP
  88. UDP destination port value. If tftpdstp isn't defined, the normal
  89. port 69 is used.
  90. The purpose for tftpsrcp is to allow a TFTP server to blindly start
  91. the TFTP transfer using the pre-configured target IP address and UDP
  92. port. This has the effect of "punching through" the (Windows XP)
  93. firewall, allowing the remainder of the TFTP transfer to proceed
  94. normally. A better solution is to properly configure the firewall,
  95. but sometimes that is not allowed.
  96. config TFTP_WINDOWSIZE
  97. int "TFTP window size"
  98. default 1
  99. help
  100. Default TFTP window size.
  101. RFC7440 defines an optional window size of transmits,
  102. before an ack response is required.
  103. The default TFTP implementation implies a window size of 1.
  104. config TFTP_TSIZE
  105. bool "Track TFTP transfers based on file size option"
  106. depends on CMD_TFTPBOOT
  107. default y if (ARCH_OMAP2PLUS || ARCH_K3)
  108. help
  109. By default, TFTP progress bar is increased for each received UDP
  110. frame, which can lead into long time being spent for sending
  111. data over the UART. Enabling this option, TFTP queries the file
  112. size from server, and if supported, limits the progress bar to
  113. 50 characters total which fits on single line.
  114. config SERVERIP_FROM_PROXYDHCP
  115. bool "Get serverip value from Proxy DHCP response"
  116. help
  117. Allows bootfile config to be fetched from Proxy DHCP server
  118. while IP is obtained from main DHCP server.
  119. config SERVERIP_FROM_PROXYDHCP_DELAY_MS
  120. int "# of additional milliseconds to wait for ProxyDHCP response"
  121. default 100
  122. help
  123. Amount of additional time to wait for ProxyDHCP response after
  124. receiving response from main DHCP server. Has no effect if
  125. SERVERIP_FROM_PROXYDHCP is false.
  126. config KEEP_SERVERADDR
  127. bool "Write the server's MAC address to 'serveraddr'"
  128. default y if SANDBOX
  129. help
  130. Keeps the server's MAC address, in the env 'serveraddr'
  131. for passing to bootargs (like Linux's netconsole option). If this is
  132. enabled, when an ARP reply is received, the server's IP address is
  133. written there.
  134. config UDP_CHECKSUM
  135. bool "Check the UDP checksum"
  136. default y if SANDBOX
  137. help
  138. Enable this to verify the checksum on UDP packets. If the checksum
  139. is wrong then the packet is discarded and an error is shown, like
  140. "UDP wrong checksum 29374a23 30ff3826"
  141. config BOOTP_SERVERIP
  142. bool "Use the 'serverip' env var for tftp, not bootp"
  143. help
  144. Enable this if the TFTP server will be the 'serverip' environment
  145. variable, not the BOOTP server. This affects the operation of both
  146. bootp and tftp.
  147. config BOOTP_MAX_ROOT_PATH_LEN
  148. int "Option 17 root path length"
  149. default 64
  150. help
  151. Select maximal length of option 17 root path.
  152. config USE_GATEWAYIP
  153. bool "Set a default 'gateway' value in the environment"
  154. help
  155. Defines a default value for the IP address of the default router
  156. where packets to other networks are sent to. (Environment variable
  157. "gatewayip")
  158. config GATEWAYIP
  159. string "Value of the default 'gateway' value in the environment"
  160. depends on USE_GATEWAYIP
  161. config USE_IPADDR
  162. bool "Set a default 'ipaddr' value in the environment"
  163. help
  164. Define a default value for the IP address to use for the default
  165. Ethernet interface, in case this is not determined through e.g.
  166. bootp. (Environment variable "ipaddr")
  167. config IPADDR
  168. string "Value of the default 'ipaddr' value in the environment"
  169. depends on USE_IPADDR
  170. config USE_NETMASK
  171. bool "Set a default 'netmask' value in the environment"
  172. help
  173. Defines a default value for the subnet mask (or routing prefix) which
  174. is used to determine if an IP address belongs to the local subnet or
  175. needs to be forwarded through a router. (Environment variable "netmask")
  176. config NETMASK
  177. string "Value of the default 'netmask' value in the environment"
  178. depends on USE_NETMASK
  179. config USE_ROOTPATH
  180. bool "Set a default 'rootpath' value in the environment"
  181. config ROOTPATH
  182. string "Value of the default 'rootpath' value in the environment"
  183. depends on USE_ROOTPATH
  184. default "/opt/nfsroot"
  185. config USE_SERVERIP
  186. bool "Set a default 'serverip' value in the environment"
  187. help
  188. Defines a default value for the IP address of a TFTP server to
  189. contact when using the "tftboot" command. (Environment variable
  190. "serverip")
  191. config SERVERIP
  192. string "Value of the default 'serverip' value in the environment"
  193. depends on USE_SERVERIP
  194. config PROT_TCP
  195. bool "TCP stack"
  196. help
  197. Enable a generic tcp framework that allows defining a custom
  198. handler for tcp protocol.
  199. config PROT_TCP_SACK
  200. bool "TCP SACK support"
  201. depends on PROT_TCP
  202. help
  203. TCP protocol with SACK. SACK means selective acknowledgements.
  204. By turning this option on TCP will learn what segments are already
  205. received. So that it improves TCP's retransmission efficiency.
  206. This option should be turn on if you want to achieve the fastest
  207. file transfer possible.
  208. config IPV6
  209. bool "IPv6 support"
  210. help
  211. Enable IPv6 support. It includes Neighbour Discovery protocol, ICMPv6
  212. and auxiliary stuff to make it work. Since it is enabled u-boot
  213. network subsystem can get and handle incoming packets and send packets
  214. through IPv6 network. It allows to use environment variables such as
  215. ip6addr, serverip6. If a u-boot command is capable to parse an IPv6
  216. address and find it, it will force using IPv6 in the network stack.
  217. endif # if NET
  218. config SYS_RX_ETH_BUFFER
  219. int "Number of receive packet buffers"
  220. default 4
  221. help
  222. Defines the number of Ethernet receive buffers. On some Ethernet
  223. controllers it is recommended to set this value to 8 or even higher,
  224. since all buffers can be full shortly after enabling the interface on
  225. high Ethernet traffic.