fw_env_private.h 1.4 KB

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