-
Notifications
You must be signed in to change notification settings - Fork 72
/
kcnf
317 lines (220 loc) · 5.6 KB
/
kcnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
menu LWIP
choice
prompt "version"
config LWIP_ESP
bool "LWIP espressif sources (close to v1.4.0RC2)"
config LWIP_GIT
bool "LWIP (git-pre-1.5, experimental)"
endchoice
endmenu
menu Hacks
config ESP8266_NEED_ESPCONN_INIT
bool "SDK >= 1.0 fix"
default n
endmenu
menu "Services to build"
config SERVICE_DHCPS
bool "DHCP Server"
help
You should execute 'resetenv' and reboot again after flashing, if you change this setting.
config SVC_HTTPD
bool "HTTP Server"
help
config SERVICE_AURA
bool "AURA RPC Client"
menuconfig SERVICE_SENSORLOGGER
bool "NextCloud Sensorlogger"
help
Provides an interface to NextCloud Sensorlogger app.
Your can register and submit data via frankenstein commandline
or via a set of sensors connected to the board.
if SERVICE_SENSORLOGGER
config SENSLOG_DUMMY
bool "Dummy sensor"
config SENSLOG_PING
bool "Ping sensor logger"
config SENSLOG_VDD3V3
bool "VDD3V3 sensor"
config SENSLOG_ADC
bool "Internal ADC sensor"
endif
config SERVICE_TCP
bool "TCP/IP services"
menuconfig SERVICE_TELNET
bool "Telnet Service"
depends on SERVICE_TCP
help
Provides a commandline interface via telnet.
if SERVICE_TELNET
config ENV_DEFAULT_TELNET_AUTOSTART
bool "always run telnet server after boot"
default n
config ENV_DEFAULT_TELNET_PORT
int "TCP port to bind to"
default 23
config ENV_DEFAULT_TELNET_DROP
int "Drop connection after this many seconds of inactivity"
default 60
endif
config SERVICE_ECHO
bool "Echo Service"
depends on SERVICE_TCP
endmenu
menu "Modules to build"
config CMD_IW
bool "Wireless commands"
config CMD_PHY
bool "Wireless hardware commands"
config CMD_UART
bool "UART commands"
config CMD_IF
bool "ifconfig/apconfig"
config CMD_GPIO
bool "GPIO commands"
config CMD_FLASH
bool "FLASH commands"
config CMD_LISTEN
bool "Listen on a port"
depends on SERVICE_TCP
config CMD_SEND
bool "Send data over TCP"
depends on SERVICE_TCP
config CMD_NSLOOKUP
bool "Network tool: nslookup"
#seems broken because of undefined reference
config CMD_PING
bool "Network tool: ping"
config CMD_TFTP
bool "TFTP firmware update support"
if CMD_TFTP
config ENV_DEFAULT_TFTP_SERVER_IP
string "Default IP to connect to when using tftp command"
default "192.168.1.215"
config ENV_DEFAULT_TFTP_SERVER_DIR
string "TFTP server directory"
default "/"
config ENV_DEFAULT_TFTP_SERVER_FILE
string "TFTP server file to retrieve"
default "antares.com"
endif
config CMD_AT
bool "AT to say OK"
config CMD_ADC
bool "System ADC support"
menuconfig CMD_I2C
bool "I2C subsystem (experimental)"
if CMD_I2C
config CMD_I2C_BMP180
bool "BMP180 pressure sensor"
config CMD_I2C_SHT21
bool "SHT21 humidity sensor"
config CMD_I2C_BH1750
bool "BH1750 light sensor"
config CMD_I2C_SI7020
bool "SI7020 Temperature/Humidity sensor"
config CMD_I2C_PCF8591
bool "PCF8591 8-bit ADC DAC"
config CMD_I2C_INA219
bool "INA219 current sensor"
config CMD_I2C_TCS3414CS
bool "TCS3414CS color sensor (EXPERIMENTAL)"
config CMD_I2C_MLX90614
bool "MLX90614 temperature sensor (EXPERIMENTAL)"
config CMD_I2C_HMC5883L
bool "HMC5883l 3-Axis Digital Compass (Needs testing)"
endif
menuconfig CMD_DHT22
bool "DHT22/DHT11 temperature and humidity sensor"
config ENABLE_MQTT
bool "MQTT Support"
config ENABLE_SCHED
bool "Scheduled command execution"
# Not working right now.
config ENABLE_PASSTHROUGH
bool "enable tcp(10101)<->serial passthrough"
menuconfig CMD_DS18B20
bool "DS18B20/DS18S20 Thermal Sensor support"
if CMD_DS18B20
config CMD_DS18B20_DEBUG
bool "DS18B20 Debugging"
help
Show debugging messages
endif
endmenu
menu "Commandline fine-tuning"
config ENV_DEFAULT_PROMPT
string "default commandline prompt"
default "frankenstein"
config MICRORL_USE_COMPLETE
bool "Command auto-completion"
config MICRORL_USE_HISTORY
bool "Command history"
endmenu
menu "Environment Settings"
config ENV_OFFSET
hex "Environment address in flash (4K aligned)"
default 0x7c000
config ENV_LEN
hex "Environment length"
default 0x1000
config ADDR_BLOBSETTING1
hex "Adress of blob settings in flash (copy 1)"
default 0x7d000
config ADDR_BLOBSETTING2
hex "Adress of blob settings in flash (copy 2)"
default 0x7e000
config ENV_NOWRITE
bool "Simulate writes of environment data in flash"
default n
menu "Default Values"
choice
prompt "Default wifi mode"
default WIFI_MODE_AP
config WIFI_MODE_AP
bool "Access point"
config WIFI_MODE_STATION
bool "Station mode - (client)"
config WIFI_MODE_SOFTAP
bool "Soft access point mode - (both AP & client)"
config WIFI_MODE_NONE
bool "Wifi initially off"
endchoice
config ENV_DEFAULT_HOSTNAME
string "Hostname at boot"
default "frankenstein"
config ENV_DEFAULT_STATION_IP
string "Station mode IP address at boot"
default "192.168.0.123"
config ENV_DEFAULT_STATION_MASK
string "Station mode IP netmask at boot"
default "255.255.255.0"
config ENV_DEFAULT_STATION_GW
string "Station mode IP gateway address at boot"
default "192.168.0.1"
if WIFI_MODE_STATION
config ENV_DEFAULT_STATION_AUTO_CONNECT
bool "Station mode: automatically attempt to connect on boot"
if ENV_DEFAULT_STATION_AUTO_CONNECT
config ENV_DEFAULT_STATION_AUTO_SSID
string "SSID to automatically attempt connection"
config ENV_DEFAULT_STATION_AUTO_PASSWORD
string "Password to attempt connection"
endif
endif
config ENV_DEFAULT_AP_IP
string "AP mode IP address at boot"
default "192.168.1.1"
config ENV_DEFAULT_AP_MASK
string "AP mode IP netmask at boot"
default "255.255.255.0"
config ENV_DEFAULT_AP_GW
string "AP mode IP gateway at boot"
default "192.168.1.1"
endmenu
config ENABLE_SECOND_UART
bool "Enable the second uart"
default y
config ENABLE_BANNER
bool "Enable the banner message at boot"
default y
endmenu