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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
|
#
# Realtek Semiconductor Corp.
#
# RLX Linux Kernel Configuration
#
# Tony Wu (tonywu@realtek.com)
# Dec. 07, 2008
#
#### BEGIN INCLUDE
config RTL_819X
def_bool y
config RTL_8196C
def_bool y
#
# Processor Config
#
config ARCH_32BIT
bool
default y
config ARCH_CPU_RLX4181
bool
default y
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_IRQ_CPU
bool
default y
config ARCH_IRQ_VEC
bool
default y
config ARCH_BUS_USB
bool
default n
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_8196C_GW
config RTL_8196C_GW
bool "RTL8196C Demo Board"
help
This enables support for Realtek RTL8196C demo board
endchoice
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_PCIE_SIMPLE_INIT
bool
default y if RTL8192SE
default y if RTL8192CD
config RTL_WTDOG
bool "Enable watchdog timer support"
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 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 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 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.
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.
# 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_EAP_RELAY
bool
config RTL_HOSTAPD_SUPPORT
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.
#------------------------------------------------------------------------
endmenu
# remove this line when make SDK
#source "../target/Kconfig.ictest"
### END INCLUDE
config MIPS
bool
default y
select EMBEDDED
config TRAD_SIGNALS
bool
default y
config EMBEDDED
bool
default y
#
# 32BIT
#
config 32BIT
bool
default y
config BOOT_32BIT
bool
default y
config BINFMT_ELF32
bool
default y
config BINFMT_ELF
bool
default y
config SYS_SUPPORTS_32BIT_KERNEL
bool
default y
config CPU_SUPPORTS_32BIT_KERNEL
bool
default y
#
# CPU
#
config CPU_RLX4180
bool
default y if ARCH_CPU_RLX4180
config CPU_RLX4181
bool
default y if ARCH_CPU_RLX4181
config CPU_RLX5181
bool
default y if ARCH_CPU_RLX5181
config CPU_RLX5280
bool
default y if ARCH_CPU_RLX5280
config CPU_RLX4281
bool
default y if ARCH_CPU_RLX4281
config CPU_RLX5281
bool
default y if ARCH_CPU_RLX5281
config CPU_HAS_RADIAX
bool
default y if ARCH_CPU_RADIAX
config CPU_HAS_SLEEP
bool
default y if ARCH_CPU_SLEEP
config CPU_HAS_ULS
bool
default y if ARCH_CPU_ULS
config CPU_HAS_LLSC
bool
default y if ARCH_CPU_LLSC
config CPU_HAS_SYNC
bool
default y if ARCH_CPU_SYNC
config MMU
bool
default y
config PAGE_SIZE_4KB
bool
default y
#
# CPU may reorder R->R, R->W, W->R, W->W
# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
#
config WEAK_ORDERING
bool
#
# CPU may reorder reads and writes beyond LL/SC
# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
#
config WEAK_REORDERING_BEYOND_LLSC
bool
#
# CACHE
#
config CPU_HAS_WBC
bool
default y if ARCH_CACHE_WBC
config CPU_HAS_L2C
bool
default y if ARCH_CACHE_L2C
#
## WRITE BUFFER
##
config CPU_HAS_WB
bool
default n
#
# DMA
#
config DMA_NONCOHERENT
bool
default y
select DMA_NEED_PCI_MAP_STATE
config DMA_NEED_PCI_MAP_STATE
bool
config ZONE_DMA
bool
#
# ENDIAN
#
config CPU_BIG_ENDIAN
bool
default y if ARCH_CPU_EB
config CPU_LITTLE_ENDIAN
bool
default y if ARCH_CPU_EL
#
# IRQ
#
config IRQ_CPU
bool
default y if ARCH_IRQ_CPU
config IRQ_VEC
bool
default y if ARCH_IRQ_VEC
config GENERIC_HARDIRQS
bool
default y
config GENERIC_IRQ_PROBE
bool
default n
config GENERIC_HARDIRQS_NO__DO_IRQ
def_bool y
#
# BUS
#
config HW_HAS_PCI
bool
default y if ARCH_BUS_PCI
config ARCH_SUPPORTS_MSI
bool
default y if ARCH_BUS_PCI_MSI
config HW_HAS_USB
bool
default y if ARCH_BUS_USB
#
# end of RLX configuration
#
config RWSEM_GENERIC_SPINLOCK
bool
default y
config RWSEM_XCHGADD_ALGORITHM
bool
config ARCH_SUPPORTS_OPROFILE
bool
default y if !MIPS_MT_SMTC
config GENERIC_FIND_NEXT_BIT
bool
default y
config GENERIC_HWEIGHT
bool
default y
config GENERIC_CALIBRATE_DELAY
bool
default y
config GENERIC_CLOCKEVENTS
bool
default y
config GENERIC_TIME
bool
default y
config GENERIC_CMOS_UPDATE
bool
default n
config SCHED_OMIT_FRAME_POINTER
bool
default y
#
# Select some configuration options automatically based on user selections.
#
config EARLY_PRINTK
bool "Early printk" if EMBEDDED && DEBUG_KERNEL
depends on SYS_HAS_EARLY_PRINTK
default y
help
This option enables special console drivers which allow the kernel
to print messages very early in the bootup process.
This is useful for kernel debugging when your machine crashes very
early before the console code is initialized. For normal operation,
it is not recommended because it looks ugly on some machines and
doesn't cooperate with an X server. You should normally say N here,
unless you want to debug such a crash.
config SYS_HAS_EARLY_PRINTK
bool
config NO_IOPORT
def_bool n
config GENERIC_ISA_DMA
bool
select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
config GENERIC_ISA_DMA_SUPPORT_BROKEN
bool
select GENERIC_ISA_DMA
config GENERIC_GPIO
bool
config SWAP_IO_SPACE
bool
#
# Set to y for ptrace access to watch registers.
#
config HARDWARE_WATCHPOINTS
bool
default y if CPU_MIPSR1 || CPU_MIPSR2
menu "Kernel type"
#
# - Highmem only makes sense for the 32-bit kernel.
# - The current highmem code will only work properly on physically indexed
# caches such as R3000, SB1, R7000 or those that look like they're virtually
# indexed such as R4000/R4400 SC and MC versions or R10000. So for the
# moment we protect the user and offer the highmem option only on machines
# where it's known to be safe. This will not offer highmem on a few systems
# such as MIPS32 and MIPS64 CPUs which may have virtual and physically
# indexed CPUs but we're playing safe.
# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
# know they might have memory configurations that could make use of highmem
# support.
#
config HIGHMEM
bool "High Memory Support"
depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM
config CPU_SUPPORTS_HIGHMEM
bool
config SYS_SUPPORTS_HIGHMEM
bool
config ARCH_FLATMEM_ENABLE
def_bool y
config ARCH_DISCONTIGMEM_ENABLE
def_bool n
config ARCH_POPULATES_NODE_MAP
def_bool y
config NODES_SHIFT
int
default "6"
depends on NEED_MULTIPLE_NODES
source "mm/Kconfig"
config SMP
def_bool n
source "kernel/time/Kconfig"
#
# Timer Interrupt Frequency Configuration
#
choice
prompt "Timer frequency"
default HZ_250
help
Allows the configuration of the timer frequency.
config HZ_48
bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_100
bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_128
bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_250
bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_256
bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_1000
bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
config HZ_1024
bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
endchoice
config SYS_SUPPORTS_48HZ
bool
config SYS_SUPPORTS_100HZ
bool
config SYS_SUPPORTS_128HZ
bool
config SYS_SUPPORTS_250HZ
bool
config SYS_SUPPORTS_256HZ
bool
config SYS_SUPPORTS_1000HZ
bool
config SYS_SUPPORTS_1024HZ
bool
config SYS_SUPPORTS_ARBIT_HZ
bool
default y if !SYS_SUPPORTS_48HZ && !SYS_SUPPORTS_100HZ && \
!SYS_SUPPORTS_128HZ && !SYS_SUPPORTS_250HZ && \
!SYS_SUPPORTS_256HZ && !SYS_SUPPORTS_1000HZ && \
!SYS_SUPPORTS_1024HZ
config HZ
int
default 48 if HZ_48
default 100 if HZ_100
default 128 if HZ_128
default 250 if HZ_250
default 256 if HZ_256
default 1000 if HZ_1000
default 1024 if HZ_1024
source "kernel/Kconfig.preempt"
config KEXEC
bool "Kexec system call (EXPERIMENTAL)"
depends on EXPERIMENTAL
help
kexec is a system call that implements the ability to shutdown your
current kernel, and to start another kernel. It is like a reboot
but it is independent of the system firmware. And like a reboot
you can start any kernel with it, not just Linux.
The name comes from the similarity to the exec system call.
It is an ongoing process to be certain the hardware in a machine
is properly shutdown, so do not be surprised if this code does not
initially work for you. It may help to enable device hotplugging
support. As of this writing the exact hardware interface is
strongly in flux, so no good recommendation can be made.
config SECCOMP
bool "Enable seccomp to safely compute untrusted bytecode"
depends on PROC_FS
default y
help
This kernel feature is useful for number crunching applications
that may need to compute untrusted bytecode during their
execution. By using pipes or other transports made available to
the process as file descriptors supporting the read/write
syscalls, it's possible to isolate those applications in
their own address space using seccomp. Once seccomp is
enabled via /proc/<pid>/seccomp, it cannot be disabled
and the task is only allowed to execute a few safe syscalls
defined by each seccomp mode.
If unsure, say Y. Only embedded should say N here.
endmenu
config LOCKDEP_SUPPORT
bool
default y
config STACKTRACE_SUPPORT
bool
default n
source "init/Kconfig"
config PROBE_INITRD_HEADER
bool "Probe initrd header created by addinitrd"
depends on BLK_DEV_INITRD
help
Probe initrd header at the last page of kernel image.
Say Y here if you are using arch/rlx/boot/addinitrd.c to
add initrd or initramfs image to the kernel image.
Otherwise, say N.
source "kernel/Kconfig.freezer"
menu "Bus options (PCI/USB)"
config PCI
bool "Support for PCI controller"
depends on HW_HAS_PCI
select PCI_DOMAINS
help
Find out whether you have a PCI motherboard. PCI is the name of a
bus system, i.e. the way the CPU talks to the other stuff inside
your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
say Y, otherwise N.
config PCI_DOMAINS
bool
source "drivers/pci/Kconfig"
source "drivers/pci/hotplug/Kconfig"
source "drivers/pcmcia/Kconfig"
endmenu
menu "Power management options"
config ARCH_SUSPEND_POSSIBLE
def_bool y
depends on !SMP
source "kernel/power/Kconfig"
endmenu
source "net/Kconfig"
source "drivers/Kconfig"
source "fs/Kconfig"
source "arch/rlx/Kconfig.debug"
source "security/Kconfig"
source "crypto/Kconfig"
source "lib/Kconfig"
|