200-openwrt-config.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --- a/arch/arm/cpu/arm926ejs/kirkwood/Kconfig
  2. +++ b/arch/arm/cpu/arm926ejs/kirkwood/Kconfig
  3. @@ -84,4 +84,7 @@ source "board/raidsonic/ib62x0/Kconfig"
  4. source "board/Seagate/dockstar/Kconfig"
  5. source "board/Seagate/goflexhome/Kconfig"
  6. +config SECOND_STAGE
  7. + bool "OpenWrt second stage hack"
  8. +
  9. endif
  10. --- a/include/configs/dockstar.h
  11. +++ b/include/configs/dockstar.h
  12. @@ -115,4 +115,6 @@
  13. #define CONFIG_CMD_MTDPARTS
  14. #define CONFIG_LZO
  15. +#include "openwrt-kirkwood-common.h"
  16. +
  17. #endif /* _CONFIG_DOCKSTAR_H */
  18. --- a/include/configs/ib62x0.h
  19. +++ b/include/configs/ib62x0.h
  20. @@ -145,4 +145,6 @@
  21. #define CONFIG_MTD_PARTITIONS
  22. #define CONFIG_CMD_MTDPARTS
  23. +#include "openwrt-kirkwood-common.h"
  24. +
  25. #endif /* _CONFIG_IB62x0_H */
  26. --- a/include/configs/iconnect.h
  27. +++ b/include/configs/iconnect.h
  28. @@ -118,4 +118,6 @@
  29. #define CONFIG_MTD_PARTITIONS
  30. #define CONFIG_CMD_MTDPARTS
  31. +#include "openwrt-kirkwood-common.h"
  32. +
  33. #endif /* _CONFIG_ICONNECT_H */
  34. --- /dev/null
  35. +++ b/include/configs/openwrt-kirkwood-common.h
  36. @@ -0,0 +1,52 @@
  37. +/*
  38. + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
  39. + *
  40. + * SPDX-License-Identifier: GPL-2.0+
  41. + */
  42. +
  43. +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
  44. +#define __OPENWRT_KIRKWOOD_COMMON_H
  45. +
  46. +/* Commands */
  47. +#define CONFIG_CMD_BOOTZ
  48. +
  49. +#if defined(CONFIG_CMD_NET)
  50. +#define CONFIG_CMD_DHCP
  51. +#define CONFIG_CMD_PING
  52. +#endif
  53. +
  54. +/* Auto boot */
  55. +#undef CONFIG_BOOTDELAY
  56. +#define CONFIG_BOOTDELAY 3
  57. +
  58. +/* Ethernet */
  59. +#if defined(CONFIG_CMD_NET)
  60. +#define CONFIG_SERVERIP 192.168.1.2
  61. +#define CONFIG_IPADDR 192.168.1.1
  62. +#endif
  63. +
  64. +/* second stage loader */
  65. +#if defined(CONFIG_SECOND_STAGE)
  66. +#undef CONFIG_ENV_IS_IN_NAND
  67. +#undef CONFIG_ENV_SECT_SIZE
  68. +#define CONFIG_ENV_IS_NOWHERE
  69. +#endif
  70. +
  71. +/* Flattened Device Tree */
  72. +#define CONFIG_OF_LIBFDT
  73. +
  74. +/* Flattened uImage Tree */
  75. +#define CONFIG_FIT
  76. +#define CONFIG_FIT_VERBOSE
  77. +
  78. +/* Various */
  79. +#define CONFIG_BZIP2
  80. +#define CONFIG_LZMA
  81. +#define CONFIG_LZO
  82. +
  83. +/* Unnecessary */
  84. +#undef CONFIG_BOOTM_NETBSD
  85. +#undef CONFIG_BOOTM_PLAN9
  86. +#undef CONFIG_BOOTM_RTEMS
  87. +
  88. +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
  89. --- a/include/configs/pogo_e02.h
  90. +++ b/include/configs/pogo_e02.h
  91. @@ -115,4 +115,6 @@
  92. #define CONFIG_CMD_MTDPARTS
  93. #define CONFIG_LZO
  94. +#include "openwrt-kirkwood-common.h"
  95. +
  96. #endif /* _CONFIG_POGO_E02_H */
  97. --- a/include/configs/sheevaplug.h
  98. +++ b/include/configs/sheevaplug.h
  99. @@ -143,4 +143,6 @@
  100. #define CONFIG_CMD_MTDPARTS
  101. #define CONFIG_LZO
  102. +#include "openwrt-kirkwood-common.h"
  103. +
  104. #endif /* _CONFIG_SHEEVAPLUG_H */
  105. --- a/include/configs/goflexhome.h
  106. +++ b/include/configs/goflexhome.h
  107. @@ -133,4 +133,6 @@
  108. #define CONFIG_RTC_MV
  109. #endif /* CONFIG_CMD_DATE */
  110. +#include "openwrt-kirkwood-common.h"
  111. +
  112. #endif /* _CONFIG_GOFLEXHOME_H */