]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
lsxl: unset ncip for rescue mode
authorMichael Walle <michael@walle.cc>
Thu, 4 Oct 2012 06:54:25 +0000 (06:54 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Tue, 8 Jan 2013 22:42:11 +0000 (04:12 +0530)
Instead of using the serverip we get from the DHCP server, implicitly use
the broadcast address, which is automatically set when no ncip environment
variable is set. That way it isn't necessary to use a special DHCP
configuration to set the netconsole peer.

Signed-off-by: Michael Walle <michael@walle.cc>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
board/buffalo/lsxl/lsxl.c
include/configs/lsxl.h

index f2980204c8d9ec331e93a43319919e3139878657..83eea04cbcb90dcccc72ab587026b98cf727b7f3 100644 (file)
@@ -49,9 +49,8 @@
  * you can do this only with a working network connection. Therefore, a random
  * ethernet address is generated if none is set and a DHCP request is sent.
  * After a successful DHCP response is received, the network settings are
- * configured and the ncip parameter is set to the serverip. Eg. for a working
- * resuce mode, you should set 'next-server' to the host where the netconsole
- * client is started.
+ * configured and the ncip is unset. Therefore, all netconsole packets are
+ * broadcasted.
  * Additionally, the bootsource is set to 'rescue'.
  */
 
index 8097f28ccc54bd136404d14f58a8f4af0c4397c2..59f151a37515a96a1be395bd2cd90b49d0672f4b 100644 (file)
        "config_nc_dhcp=setenv autoload_old ${autoload}; "              \
                "setenv autoload no "                                   \
                "&& bootp "                                             \
-               "&& setenv ncip ${serverip} "                           \
+               "&& setenv ncip "                                       \
                "&& setenv autoload ${autoload_old}; "                  \
                "setenv autoload_old\0"                                 \
        "standard_env=setenv ipaddr; setenv netmask; setenv serverip; " \