uboot-envtools: add env settings for Edgerouter-X
[openwrt/openwrt.git] / package / boot / uboot-kirkwood / patches / 200-openwrt-config.patch
1 --- a/arch/arm/mach-kirkwood/Kconfig
2 +++ b/arch/arm/mach-kirkwood/Kconfig
3 @@ -107,4 +107,7 @@ source "board/alliedtelesis/SBx81LIFXCAT
4 source "board/Marvell/db-88f6281-bp/Kconfig"
5 source "board/checkpoint/l-50/Kconfig"
6
7 +config SECOND_STAGE
8 + bool "OpenWrt second stage hack"
9 +
10 endif
11 --- a/include/configs/dockstar.h
12 +++ b/include/configs/dockstar.h
13 @@ -60,4 +60,6 @@
14 * File system
15 */
16
17 +#include "openwrt-kirkwood-common.h"
18 +
19 #endif /* _CONFIG_DOCKSTAR_H */
20 --- a/include/configs/ib62x0.h
21 +++ b/include/configs/ib62x0.h
22 @@ -77,4 +77,6 @@
23 #define CONFIG_RTC_MV
24 #endif /* CONFIG_CMD_DATE */
25
26 +#include "openwrt-kirkwood-common.h"
27 +
28 #endif /* _CONFIG_IB62x0_H */
29 --- a/include/configs/iconnect.h
30 +++ b/include/configs/iconnect.h
31 @@ -67,4 +67,6 @@
32 * File system
33 */
34
35 +#include "openwrt-kirkwood-common.h"
36 +
37 #endif /* _CONFIG_ICONNECT_H */
38 --- a/include/configs/l-50.h
39 +++ b/include/configs/l-50.h
40 @@ -12,6 +12,8 @@
41 #ifndef _CONFIG_L50_H
42 #define _CONFIG_L50_H
43
44 +#include "openwrt-kirkwood-common.h"
45 +
46 /*
47 * High Level Configuration Options (easy to change)
48 */
49 --- /dev/null
50 +++ b/include/configs/openwrt-kirkwood-common.h
51 @@ -0,0 +1,31 @@
52 +/*
53 + * Copyright (C) 2013 Luka Perkov <luka@openwrt.org>
54 + *
55 + * SPDX-License-Identifier: GPL-2.0+
56 + */
57 +
58 +#ifndef __OPENWRT_KIRKWOOD_COMMON_H
59 +#define __OPENWRT_KIRKWOOD_COMMON_H
60 +
61 +/* Ethernet */
62 +#if defined(CONFIG_CMD_NET)
63 +#define CONFIG_SERVERIP 192.168.1.2
64 +#define CONFIG_IPADDR 192.168.1.1
65 +#endif
66 +
67 +/* second stage loader */
68 +#if defined(CONFIG_SECOND_STAGE)
69 +#undef CONFIG_ENV_IS_IN_NAND
70 +#undef CONFIG_ENV_SECT_SIZE
71 +#define CONFIG_ENV_IS_NOWHERE
72 +#endif
73 +
74 +/* Various */
75 +#define CONFIG_BZIP2
76 +
77 +/* Unnecessary */
78 +#undef CONFIG_BOOTM_NETBSD
79 +#undef CONFIG_BOOTM_PLAN9
80 +#undef CONFIG_BOOTM_RTEMS
81 +
82 +#endif /* __OPENWRT_KIRKWOOD_COMMON_H */
83 --- a/include/configs/pogo_e02.h
84 +++ b/include/configs/pogo_e02.h
85 @@ -66,4 +66,6 @@
86 * File system
87 */
88
89 +#include "openwrt-kirkwood-common.h"
90 +
91 #endif /* _CONFIG_POGO_E02_H */
92 --- a/include/configs/goflexhome.h
93 +++ b/include/configs/goflexhome.h
94 @@ -85,4 +85,6 @@
95 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
96 #endif /*CONFIG_MVSATA_IDE*/
97
98 +#include "openwrt-kirkwood-common.h"
99 +
100 #endif /* _CONFIG_GOFLEXHOME_H */
101 --- a/include/configs/nsa310.h
102 +++ b/include/configs/nsa310.h
103 @@ -100,4 +100,6 @@
104 #define CONFIG_RTC_MV
105 #endif /* CONFIG_CMD_DATE */
106
107 +#include "openwrt-kirkwood-common.h"
108 +
109 #endif /* _CONFIG_NSA310_H */
110 --- a/configs/dockstar_defconfig
111 +++ b/configs/dockstar_defconfig
112 @@ -38,3 +38,8 @@ CONFIG_SYS_NS16550=y
113 CONFIG_USB=y
114 CONFIG_USB_EHCI_HCD=y
115 CONFIG_USB_STORAGE=y
116 +CONFIG_CMD_BOOTZ=y
117 +CONFIG_FIT=y
118 +CONFIG_FIT_VERBOSE=y
119 +CONFIG_LZMA=y
120 +CONFIG_LZO=y
121 --- a/configs/goflexhome_defconfig
122 +++ b/configs/goflexhome_defconfig
123 @@ -49,3 +49,8 @@ CONFIG_USB=y
124 CONFIG_DM_USB=y
125 CONFIG_USB_EHCI_HCD=y
126 CONFIG_USB_STORAGE=y
127 +CONFIG_CMD_BOOTZ=y
128 +CONFIG_FIT=y
129 +CONFIG_FIT_VERBOSE=y
130 +CONFIG_LZMA=y
131 +CONFIG_LZO=y
132 --- a/configs/ib62x0_defconfig
133 +++ b/configs/ib62x0_defconfig
134 @@ -43,4 +43,7 @@ CONFIG_SYS_NS16550=y
135 CONFIG_USB=y
136 CONFIG_USB_EHCI_HCD=y
137 CONFIG_USB_STORAGE=y
138 +CONFIG_FIT=y
139 +CONFIG_FIT_VERBOSE=y
140 CONFIG_LZMA=y
141 +CONFIG_LZO=y
142 --- a/configs/iconnect_defconfig
143 +++ b/configs/iconnect_defconfig
144 @@ -39,4 +39,8 @@ CONFIG_SYS_NS16550=y
145 CONFIG_USB=y
146 CONFIG_USB_EHCI_HCD=y
147 CONFIG_USB_STORAGE=y
148 +CONFIG_CMD_BOOTZ=y
149 +CONFIG_FIT=y
150 +CONFIG_FIT_VERBOSE=y
151 CONFIG_LZMA=y
152 +CONFIG_LZO=y
153 --- a/configs/l-50_defconfig
154 +++ b/configs/l-50_defconfig
155 @@ -57,3 +57,8 @@ CONFIG_SYS_I2C_MVTWSI=y
156 CONFIG_USB=y
157 CONFIG_USB_EHCI_HCD=y
158 CONFIG_USB_STORAGE=y
159 +CONFIG_CMD_BOOTZ=y
160 +CONFIG_FIT=y
161 +CONFIG_FIT_VERBOSE=y
162 +CONFIG_LZMA=y
163 +CONFIG_LZO=y
164 --- a/configs/nsa310_defconfig
165 +++ b/configs/nsa310_defconfig
166 @@ -43,6 +43,9 @@ CONFIG_CMD_UBI=y
167 CONFIG_USB=y
168 CONFIG_USB_EHCI_HCD=y
169 CONFIG_USB_STORAGE=y
170 +CONFIG_CMD_BOOTZ=y
171 +CONFIG_FIT=y
172 +CONFIG_FIT_VERBOSE=y
173 CONFIG_LZMA=y
174 CONFIG_LZO=y
175 CONFIG_SYS_LONGHELP=y
176 --- a/configs/pogo_e02_defconfig
177 +++ b/configs/pogo_e02_defconfig
178 @@ -39,3 +39,8 @@ CONFIG_SYS_NS16550=y
179 CONFIG_USB=y
180 CONFIG_USB_EHCI_HCD=y
181 CONFIG_USB_STORAGE=y
182 +CONFIG_CMD_BOOTZ=y
183 +CONFIG_FIT=y
184 +CONFIG_FIT_VERBOSE=y
185 +CONFIG_LZMA=y
186 +CONFIG_LZO=y
187 --- a/configs/nsa310s_defconfig
188 +++ b/configs/nsa310s_defconfig
189 @@ -40,5 +40,8 @@ CONFIG_SYS_NS16550=y
190 CONFIG_USB=y
191 CONFIG_USB_EHCI_HCD=y
192 CONFIG_USB_STORAGE=y
193 +CONFIG_FIT=y
194 +CONFIG_FIT_VERBOSE=y
195 CONFIG_LZMA=y
196 +CONFIG_LZO=y
197 CONFIG_OF_LIBFDT=y
198 --- a/include/configs/nsa310s.h
199 +++ b/include/configs/nsa310s.h
200 @@ -63,4 +63,6 @@
201 #define CONFIG_RTC_MV
202 #endif /* CONFIG_CMD_DATE */
203
204 +#include "openwrt-kirkwood-common.h"
205 +
206 #endif /* _CONFIG_NSA310S_H */