bur_cfg_common.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  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
  9. */
  10. #ifndef __BUR_CFG_COMMON_H__
  11. #define __BUR_CFG_COMMON_H__
  12. /* ------------------------------------------------------------------------- */
  13. #define BUR_COMMON_ENV \
  14. "usbscript=usb start && fatload usb 0 ${scradr} usbscript.img &&" \
  15. " source ${scradr}\0" \
  16. "brdefaultip=if test -r ${ipaddr}; then; else" \
  17. " setenv ipaddr 192.168.60.1; setenv serverip 192.168.60.254;" \
  18. " setenv gatewayip 192.168.60.254; setenv netmask 255.255.255.0; fi;\0" \
  19. "netconsole=echo switching to network console ...; " \
  20. "if dhcp; then; else run brdefaultip; fi; setenv ncip ${serverip}; " \
  21. "setcurs 1 9; lcdputs myip; setcurs 10 9; lcdputs ${ipaddr};" \
  22. "setcurs 1 10;lcdputs serverip; setcurs 10 10; lcdputs ${serverip};" \
  23. "setenv stdout nc;setenv stdin nc;setenv stderr nc\0"
  24. /* Network defines */
  25. #define CONFIG_BOOTP_SEND_HOSTNAME
  26. #define CONFIG_NET_RETRY_COUNT 10
  27. /* Network console */
  28. #define CONFIG_NETCONSOLE 1
  29. #define CONFIG_BOOTP_MAY_FAIL /* if we don't have DHCP environment */
  30. #define CONFIG_ENV_OVERWRITE /* Overwrite ethaddr / serial# */
  31. /* As stated above, the following choices are optional. */
  32. /* We set the max number of command args high to avoid HUSH bugs. */
  33. #define CONFIG_SYS_MAXARGS 64
  34. /* Console I/O Buffer Size */
  35. #define CONFIG_SYS_CBSIZE 512
  36. #endif /* __BUR_CFG_COMMON_H__ */