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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
|
config RTL_819X
def_bool y
menu "Chip Configuration"
choice
prompt "Chip Type"
default RTL_819XD
config RTL_819XD
bool "rtl8196d"
select ARCH_REQUIRE_GPIOLIB
select ARCH_CPU_RLX5281
config RTL_8196C
bool "rtl8196c"
select ARCH_REQUIRE_GPIOLIB
select ARCH_CPU_RLX4181
endchoice
endmenu
#
# Processor Config
#
config ARCH_32BIT
bool
default y
config ARCH_CPU_RLX5281
bool
config ARCH_CPU_RLX4181
bool
config ARCH_CPU_EB
bool
default y
config ARCH_CPU_EL
bool
default n
config ARCH_CPU_RADIAX
bool
default n
config ARCH_CPU_SLEEP
bool
default y
config ARCH_CPU_ULS
bool
default y
config ARCH_CPU_LLSC
bool
default n
config ARCH_CPU_SYNC
bool
default n
config ARCH_CACHE_WBC
bool
default y
config ARCH_CACHE_L2C
bool
default n
config ARCH_CACHE_WBIC
bool
default n
config ARCH_IRQ_CPU
bool
default y
config ARCH_IRQ_VEC
bool
default y
config ARCH_BUS_USB
bool
default y
config ARCH_BUS_PCI
bool
default y
config ARCH_BUS_PCI_MSI
bool
default n
#
# System Config
#
menu "System Configuration"
choice
prompt "System Type"
default RTL_81XXX
config RTL_81XXX
bool "Selects default platform/This one is empty"
config RTL_8196D_GW
bool "96D+92D/92E GW"
#select FPGA_PLATFORM
default y if RTL_819XD
depends on RTL_819XD
select RTL_8196D
select RTL_819XD_GW
select SYS_HAS_EARLY_PRINTK
help
This enables support for Realtek RTL8196D demo board
config RTL_8197D_GW
bool "97D+92C+92D GW"
depends on RTL_819XD
select RTL_8197D
select RTL_819XD_GW
select SYS_HAS_EARLY_PRINTK
help
This enables support for Realtek RTL8197D demo board
config RTL_8197D_AP
bool "97D+92C+92D AP"
depends on RTL_819XD
select RTL_8197D
select SYS_HAS_EARLY_PRINTK
help
This enables support for Realtek RTL8197D demo board
config RTL_8197DL_GW
bool "97DL GW"
depends on RTL_819XD
select RTL_8197DL
select RTL_819XD_GW
select SYS_HAS_EARLY_PRINTK
help
This enables support for Realtek RTL8197DL demo board
config RTL_8196C_GW
bool "RTL8196C Demo Board"
default y if RTL_8196C
depends on RTL_8196C
select RTL8196C_GREEN_ETHERNET
help
This enables support for Realtek RTL8196C demo board
config RTL_8196C_iNIC
bool "RTL8196C iNIC AP"
depends on RTL_8196C
select RTL_EAP_RELAY
select RTL_HOSTAPD_SUPPORT
help
This enables support for Realtek RTL8196C iNIC AP support
config RTL_8196C_ICT
bool "RTL8196C IC Test"
depends on RTL_8196C
#select FPGA_PLATFORM
endchoice
endmenu
config RTL8196C_REVISION_B
bool
default y if RTL_8196C_GW
default y if RTL_8196C_iNIC
config RTL8196C_GREEN_ETHERNET
bool
default y if RTL_8196C_GW
config FPGA_PLATFORM
bool
config RTL_8196D
bool
config RTL_8197D
bool
config RTL_8197DL
bool
config RTL_819XD_GW
bool
config RTL_PCIE_SIMPLE_INIT
bool
default y if RTL8192SE
default y if RTL8192CD
config RTL_WTDOG
bool "Enable watchdog timer support"
config RTL_8211DS_SUPPORT
bool "Support rtl8211ds for rtl8197D"
default n
depends on RTL_8197D
config RTL_TIMER_ADJUSTMENT
bool "Enable timer adjustment support"
config RTL_WEBPAGES_IN_ROOTFS
bool "Webpages in rootfs support"
config RTL819X_SPI_FLASH
bool "SPI flash support"
config AUTO_PCIE_PHY_SCAN
bool "8196D PCIE Autoscan PCIE PHY 40Mhz"
depends on RTL_8196D
default y
config PHY_EAT_40MHZ
bool "819xD clock source at 40Mhz"
depends on RTL_819XD
default y
config RTL_FLASH_DUAL_IMAGE_ENABLE
bool "Enable Flash Dual Bank support"
comment "Second Bank Offset"
depends on RTL_FLASH_DUAL_IMAGE_ENABLE
config RTL_FLASH_DUAL_IMAGE_OFFSET
hex "offset of Flash"
depends on RTL_819X && RTL_FLASH_DUAL_IMAGE_ENABLE
default "0x200000"
help
offset of second bank, Normally should be 2M or 4M.
config RTL_FLASH_MAPPING_ENABLE
bool "Enable Flash Mapping"
config POCKET_ROUTER_SUPPORT
bool "Pocket router support"
config POCKET_AP_SUPPORT
bool "Pocket AP support"
config DOMAIN_NAME_QUERY_SUPPORT
bool "Domain name query support"
config USB3G_SUPPORT
bool "USB3G support"
select HOTPLUG
#select UEVENT_HELPER_PATH
select FW_LOADER
select FIRMWARE_IN_KERNEL
#select EXTRA_FIRMWARE=""
select SCSI
select SCSI_DMA
select BLK_DEV_SD
select BLK_DEV_SR
select SCSI_MULTI_LUN
select PPP
select PPP_MULTILINK
select PPP_FILTER
select PPP_DEFLATE
select PPP_BSDCOMP
select DEFAULTS_KERNEL_2_6
select USB_SUPPORT
select USB_ARCH_HAS_HCD
select USB_ARCH_HAS_OHCI
select USB_ARCH_HAS_EHCI
select USB
select USB_ANNOUNCE_NEW_DEVICES
select USB_DEVICEFS
select USB_DEVICE_CLASS
select USB_MON
select USB_EHCI_HCD
select USB_EHCI_ROOT_HUB_TT
select USB_EHCI_TT_NEWSCHED
select USB_OHCI_HCD
select USB_OHCI_LITTLE_ENDIAN
select USB_STORAGE
select USB_SERIAL
select USB_SERIAL_CONSOLE
select USB_SERIAL_GENERIC
select USB_SERIAL_OPTION
select CONFIGFS_FS
select ZLIB_DEFLATE
default n
config RTL_USB_IP_HOST_SPEEDUP
depends on RTL_8196D
bool "Seedup usb samba performance"
config HTTP_FILE_SERVER_SUPPORT
bool "Http File server support"
comment "Support two spi flash"
config RTL_TWO_SPI_FLASH_ENABLE
bool "two spi flash support"
default n
config RTL_SPI_FLASH1_SIZE
hex "Config 1st flash size"
depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE
default "0x400000"
help
Normally should be 0x400000 or 0x800000.
config RTL_SPI_FLASH2_SIZE
hex "Config 2nd flash size"
depends on RTL_819X && RTL_TWO_SPI_FLASH_ENABLE
default "0x400000"
help
Normally should be 0x400000 or 0x800000.
config RTL_FLASH_MAPPING_ENABLE
bool "Enable Flash Mapping"
comment "Flash size 2M or 4M, default 2M"
depends on RTL_FLASH_MAPPING_ENABLE
comment "USB3G is enable, please set to 0x400000"
depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT
config RTL_FLASH_SIZE
hex "Size of Flash"
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x200000"
help
Size of Flash, Normally should be 2M or 4M.
comment "Hardware setting offset,should be 4K alignment"
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_HW_SETTING_OFFSET
hex "Hardware setting offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x6000"
help
Hardware Setting store in flash from the offset.
it should be 4k alignment.
comment "Default setting offset,should be 4K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
comment "size of default and current setting should be same."
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_DEFAULT_SETTING_OFFSET
hex "Default setting offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x8000"
help
Default Setting store in flash from the offset.
normally the default setting shoud save before current settting.
NOTE: make sure it's size is enough for default setting,
default size is 16K.
comment "Current setting offset,should be 4K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_CURRENT_SETTING_OFFSET
hex "Current setting offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0xC000"
help
Current Setting store in flash from the offset.
normally the current setting saved after default setting.
NOTE: make sure it's size is enough for current setting,
default size is 16K.
comment "Webpage image offset,should be 4K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
comment "size of web page is normally about 100K."
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_WEB_PAGES_OFFSET
hex "webpages image offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x10000"
help
Webpages image store in flash from the offset.
NOTE: default size is 128K.
comment "Linux image offset,should be 4K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
comment "this offset MUST between 0x10000~0x40000."
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_LINUX_IMAGE_OFFSET
hex "linux image offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x30000"
help
linux image store in flash from the offset.
comment "Root image offset,should be 64K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
comment "USB3G is enable, please set to 0x130000."
depends on RTL_FLASH_MAPPING_ENABLE && USB3G_SUPPORT
config RTL_ROOT_IMAGE_OFFSET
hex "root image offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0xF0000"
help
root image store in flash from the offset.
comment "Flatfs image offset,should be 128K alignment."
depends on RTL_FLASH_MAPPING_ENABLE
config RTL_FLATFS_IMAGE_OFFSET
hex "FLATFS image offset in flash."
depends on RTL_819X && RTL_FLASH_MAPPING_ENABLE
default "0x3E0000"
help
flatfs image store in flash from the offset.
# KERNE_STACK_SIZE = PAGE_SIZE<<KERNEL_STACK_SIZE_ORDER
config KERNEL_STACK_SIZE_ORDER
int "Kenel Stack Size Order Configuration"
default "2"
help
With Page Size 4K
1 for 8K kenel stack size
2 for 16K kernel stack size
3 for 32K kernel stack size
etc...
config RTL_NFBI_MDIO
bool
config RTL_EAP_RELAY
bool
config RTL_HOSTAPD_SUPPORT
bool
default y
config RTK_INBAND_HOST_HACK
bool
#------------------------------------------------------------------------
comment "Build rootfs options"
choice
prompt "File system to mount root"
help
This option is mainly to assist to decide how to build rootfs, because
echo kind of file system for rootfs will uses different flow in our design.
config ROOTFS_RAMFS
bool "linux built-in ramfs"
depends on INITRAMFS_SOURCE != ""
#config ROOTFS_RAMDISK
# bool "ramdisk"
# depends on BLK_DEV_RAM
config ROOTFS_SQUASH
bool "squash fs"
depends on SQUASHFS
config ROOTFS_JFFS2
bool "JFFS2 (work on u-boot only)"
depends on JFFS2_FS
endchoice
config JFFS2_ERASE_SIZE
hex "Erase size for JFFS2 tool"
depends on ROOTFS_JFFS2
default 0x10000
help
This value is for mkfs.jffs2 tool, so bad value may cause kernel
boot failure.
Given 0x1000 and 0x10000 for 4k and 64k flash respectively.
#------------------------------------------------------------------------
|