blob: 304abc6d2e21d8dadc440cb2beb92baa8c6f5ab5 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hannes Schmelzer27bf4412016-02-19 12:09:45 +01002/*
3 * bur_cfg_common.h
4 *
5 * common parts used over all B&R boards
6 *
7 * Copyright (C) 2016 Hannes Schmelzer <oe5hpm@oevsv.at> -
8 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
Hannes Schmelzer27bf4412016-02-19 12:09:45 +01009 */
10
11#ifndef __BUR_CFG_COMMON_H__
12#define __BUR_CFG_COMMON_H__
13/* ------------------------------------------------------------------------- */
14#define BUR_COMMON_ENV \
15"usbscript=usb start && fatload usb 0 ${scradr} usbscript.img &&" \
16" source ${scradr}\0" \
17"brdefaultip=if test -r ${ipaddr}; then; else" \
18" setenv ipaddr 192.168.60.1; setenv serverip 192.168.60.254;" \
19" setenv gatewayip 192.168.60.254; setenv netmask 255.255.255.0; fi;\0" \
20"netconsole=echo switching to network console ...; " \
21"if dhcp; then; else run brdefaultip; fi; setenv ncip ${serverip}; " \
22"setcurs 1 9; lcdputs myip; setcurs 10 9; lcdputs ${ipaddr};" \
23"setcurs 1 10;lcdputs serverip; setcurs 10 10; lcdputs ${serverip};" \
24"setenv stdout nc;setenv stdin nc;setenv stderr nc\0"
25
Hannes Schmelzer27bf4412016-02-19 12:09:45 +010026/* Network console */
Hannes Schmelzer27bf4412016-02-19 12:09:45 +010027
Hannes Schmelzer27bf4412016-02-19 12:09:45 +010028/* As stated above, the following choices are optional. */
Hannes Schmelzer27bf4412016-02-19 12:09:45 +010029
Hannes Schmelzer27bf4412016-02-19 12:09:45 +010030#endif /* __BUR_CFG_COMMON_H__ */