fw_env_private.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * (C) Copyright 2002-2008
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. /* Pull in the current config to define the default environment */
  8. #include <linux/kconfig.h>
  9. #ifndef __ASSEMBLY__
  10. #define __ASSEMBLY__ /* get only #defines from config.h */
  11. #include <config.h>
  12. #undef __ASSEMBLY__
  13. #else
  14. #include <config.h>
  15. #endif
  16. /*
  17. * To build the utility with the static configuration
  18. * comment out the next line.
  19. * See included "fw_env.config" sample file
  20. * for notes on configuration.
  21. */
  22. #define CONFIG_FILE "/etc/fw_env.config"
  23. #ifndef CONFIG_FILE
  24. #define HAVE_REDUND /* For systems with 2 env sectors */
  25. #define DEVICE1_NAME "/dev/mtd1"
  26. #define DEVICE2_NAME "/dev/mtd2"
  27. #define DEVICE1_OFFSET 0x0000
  28. #define ENV1_SIZE 0x4000
  29. #define DEVICE1_ESIZE 0x4000
  30. #define DEVICE1_ENVSECTORS 2
  31. #define DEVICE2_OFFSET 0x0000
  32. #define ENV2_SIZE 0x4000
  33. #define DEVICE2_ESIZE 0x4000
  34. #define DEVICE2_ENVSECTORS 2
  35. #endif
  36. #ifndef CONFIG_BAUDRATE
  37. #define CONFIG_BAUDRATE 115200
  38. #endif
  39. #ifndef CONFIG_BOOTDELAY
  40. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  41. #endif
  42. #ifndef CONFIG_BOOTCOMMAND
  43. #define CONFIG_BOOTCOMMAND \
  44. "bootp; " \
  45. "setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} "\
  46. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; "\
  47. "bootm"
  48. #endif