summaryrefslogtreecommitdiff
path: root/board/BuR
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2015-08-25 13:55:41 +0200
committerTom Rini <trini@konsulko.com>2015-09-11 14:05:34 -0400
commit6312e9aab8672a06caf5cbd7fd88b620d7122949 (patch)
tree3935867dc46940467154cd83ed82509035c94d31 /board/BuR
parent18a10d46f267057ede0490ddba71c106475b4eb1 (diff)
downloadu-boot-imx-6312e9aab8672a06caf5cbd7fd88b620d7122949.zip
u-boot-imx-6312e9aab8672a06caf5cbd7fd88b620d7122949.tar.gz
u-boot-imx-6312e9aab8672a06caf5cbd7fd88b620d7122949.tar.bz2
board/BuR: simplify default IP-setup on B&R boards.
To simplify and having a common default IP-setup on all B&R boards we introduce an environment variable "brdefaultip" which does following. Test if ${ipaddr} is empty, if yes it set's up some defaults: - ipaddr : 192.168.60.1 - netmask : 255.255.255.0 - gatewayip: 192.168.60.254 - serverip : 192.168.60.254 This environment is ran from CONFIG_PREBOOT. All other "tricks" are dropped. Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'board/BuR')
-rw-r--r--board/BuR/kwb/board.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/board/BuR/kwb/board.c b/board/BuR/kwb/board.c
index 640aca4..039ec20 100644
--- a/board/BuR/kwb/board.c
+++ b/board/BuR/kwb/board.c
@@ -283,16 +283,6 @@ int board_late_init(void)
}
/* setup vxworks bootline */
char *vxworksbootline = (char *)VXWORKS_BOOTLINE;
-
- /* setup default IP, in case if there is nothing in environment */
- if (!getenv("ipaddr")) {
- setenv("ipaddr", "192.168.60.1");
- setenv("netmask", "255.255.255.0");
- setenv("serverip", "192.168.60.254");
- setenv("gatewayip", "192.168.60.254");
- puts("net: had no IP! made default setup.\n");
- }
-
sprintf(vxworksbootline,
"%s h=%s e=%s:%s g=%s %s o=0x%08x;0x%08x;0x%08x;0x%08x",
DEFAULT_BOOTLINE,