200-openwrt-config.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --- a/arch/arm/mach-kirkwood/Kconfig
  2. +++ b/arch/arm/mach-kirkwood/Kconfig
  3. @@ -74,4 +74,7 @@ source "board/Seagate/goflexhome/Kconfig
  4. source "board/Seagate/nas220/Kconfig"
  5. source "board/zyxel/nsa310s/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. @@ -98,4 +98,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. @@ -108,4 +108,6 @@
  21. #define CONFIG_RTC_MV
  22. #endif /* CONFIG_CMD_DATE */
  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. @@ -103,4 +103,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,40 @@
  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. +/* Ethernet */
  50. +#if defined(CONFIG_CMD_NET)
  51. +#define CONFIG_SERVERIP 192.168.1.2
  52. +#define CONFIG_IPADDR 192.168.1.1
  53. +#endif
  54. +
  55. +/* second stage loader */
  56. +#if defined(CONFIG_SECOND_STAGE)
  57. +#undef CONFIG_ENV_IS_IN_NAND
  58. +#undef CONFIG_ENV_SECT_SIZE
  59. +#define CONFIG_ENV_IS_NOWHERE
  60. +#endif
  61. +
  62. +/* Flattened uImage Tree */
  63. +#define CONFIG_FIT 1
  64. +#define CONFIG_FIT_VERBOSE 1
  65. +
  66. +/* Various */
  67. +#define CONFIG_BZIP2
  68. +#define CONFIG_LZMA
  69. +#define CONFIG_LZO
  70. +
  71. +/* Unnecessary */
  72. +#undef CONFIG_BOOTM_NETBSD
  73. +#undef CONFIG_BOOTM_PLAN9
  74. +#undef CONFIG_BOOTM_RTEMS
  75. +
  76. +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
  77. --- a/include/configs/pogo_e02.h
  78. +++ b/include/configs/pogo_e02.h
  79. @@ -99,4 +99,6 @@
  80. #define CONFIG_CMD_MTDPARTS
  81. #define CONFIG_LZO
  82. +#include "openwrt-kirkwood-common.h"
  83. +
  84. #endif /* _CONFIG_POGO_E02_H */
  85. --- a/include/configs/sheevaplug.h
  86. +++ b/include/configs/sheevaplug.h
  87. @@ -109,4 +109,6 @@
  88. #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
  89. #endif /* CONFIG_CMD_IDE */
  90. +#include "openwrt-kirkwood-common.h"
  91. +
  92. #endif /* _CONFIG_SHEEVAPLUG_H */
  93. --- a/include/configs/goflexhome.h
  94. +++ b/include/configs/goflexhome.h
  95. @@ -122,4 +122,6 @@
  96. #define CONFIG_RTC_MV
  97. #endif /* CONFIG_CMD_DATE */
  98. +#include "openwrt-kirkwood-common.h"
  99. +
  100. #endif /* _CONFIG_GOFLEXHOME_H */