RB153 revision 1.18 1 # $NetBSD: RB153,v 1.18 2017/02/19 07:47:00 rin Exp $
2 #
3 # Example kernel config for the RouterBOARD 153.
4
5 include "arch/evbmips/conf/std.adm5120"
6
7 #ident "RB153-$Revision: 1.18 $"
8
9 maxusers 32
10
11 options MIPS32
12 options NOFPU # No FPU
13 options FPEMUL # emulate FPU insn
14 options CONSPEED=115200 # YAMON default
15 #options HZ=512 # for profiling
16 #options ADM5120_YAMON # if our bootloader is YAMON
17 #options MEMSIZE="(32*1024*1024)"
18
19 #options LOCKDEBUG
20 options SOSEND_COUNTERS
21 options INET_CSUM_COUNTERS
22 options TCP_CSUM_COUNTERS
23 options UDP_CSUM_COUNTERS
24 options TCP_OUTPUT_COUNTERS
25
26 #options NTP # network time protocol
27
28 # Debugging options
29 options DIAGNOSTIC # extra kernel sanity checking
30 options DEBUG # extra kernel debugging support
31 options DDB # kernel dynamic debugger
32 options DDB_HISTORY_SIZE=100 # enable history editing in DDB
33 makeoptions DEBUG="-g" # compile full symbol table
34 makeoptions CPUFLAGS="-march=4kc"
35 makeoptions COPY_SYMTAB=1 # size for embedded symbol table
36
37 #options MEMORY_DISK_HOOKS
38 #options MEMORY_DISK_IS_ROOT # Force root on ram-disk
39 #options MEMORY_DISK_ROOT_SIZE=16384 # 2 Megabytes
40
41 # File systems
42 file-system FFS # Berkeley Fast Filesystem
43 file-system TMPFS
44 #file-system EXT2FS # second extended file system (linux)
45 file-system NFS # Sun NFS-compatible filesystem client
46 #file-system KERNFS # kernel data-structure filesystem
47 file-system NULLFS # NULL layered filesystem
48 #file-system OVERLAY # overlay file system
49 #file-system FDESC # user file descriptor filesystem
50 #file-system UMAPFS # uid/gid remapping filesystem
51 #file-system LFS # Log-based filesystem (still experimental)
52 #file-system PROCFS # /proc
53 #file-system CD9660 # ISO 9660 + Rock Ridge file system
54 #file-system UNION # union file system
55 #file-system MSDOSFS # MS-DOS FAT filesystem(s).
56 #file-system CODA # Coda File System; also needs vcoda (below)
57
58 # File system options
59 #options NFSSERVER # Sun NFS-compatible filesystem server
60 #options QUOTA # legacy UFS quotas
61 #options QUOTA2 # new, in-filesystem UFS quotas
62 #options DISKLABEL_EI # disklabel Endian Independent support
63 #options FFS_EI # FFS Endian Independent support
64 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
65 # immutable) behave as system flags.
66
67 # Networking options
68 options GATEWAY # IP packet forwarding
69 options INET # Internet protocols
70 options INET6 # IPV6
71 #options IPSEC # IP security
72 #options IPSEC_DEBUG # debug for IP security
73 #options MROUTING # packet forwarding of multicast packets
74 #options NETATALK # AppleTalk (over Ethernet) protocol
75 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
76 #options PPP_DEFLATE # Deflate compression support for PPP
77 #options PPP_FILTER # Active filter support for PPP (requires bpf)
78 #options IPFILTER_LOG # ipmon(8) log support
79
80 # JIT compiler for bpfilter
81 #options SLJIT
82 #options BPFJIT
83
84 # These options enable verbose messages for several subsystems.
85 # Warning, these may compile large string tables into the kernel!
86 #options MIIVERBOSE # verbose PHY autoconfig messages
87 #options PCIVERBOSE # verbose PCI device autoconfig messages
88 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
89 #options SCSIVERBOSE # human readable SCSI error messages
90 #options USBVERBOSE # verbose USB device autoconfig messages
91
92 options NFS_BOOT_DHCP
93 #options NFS_BOOT_RWSIZE=1024
94
95 # Pretty much only one device to use for the root file system.
96 config netbsd root on admsw0 type nfs
97
98 mainbus0 at root
99
100 cpu0 at mainbus?
101
102 # Network pseudo-devices
103 pseudo-device bpfilter # Berkeley packet filter
104 pseudo-device loop # network loopback
105 #pseudo-device ppp # Point-to-Point Protocol
106 #pseudo-device sl # Serial Line IP
107 #pseudo-device strip # Starmode Radio IP (Metricom)
108 #pseudo-device tun # network tunneling over tty
109 pseudo-device gre # generic L3 over IP tunnel
110 #pseudo-device ipip # RFC 2003 IP Encapsulation
111 pseudo-device gif # RFC1933 tunnel
112 #pseudo-device faith # IPv[46] tcp relay translation
113 # Miscellaneous pseudo-devices
114 pseudo-device pty # pseudo-terminals
115 #pseudo-device sequencer # MIDI sequencer
116 pseudo-device pf # PF packet filter
117 pseudo-device pflog # PF log if
118
119 # A pseudo device needed for Coda # also needs CODA (above)
120 #pseudo-device vcoda # coda minicache <-> venus comm.
121 pseudo-device ksyms
122
123 obio* at mainbus?
124 gpio* at mainbus?
125 extio* at mainbus?
126
127 uart* at obio? addr ?
128 admsw* at obio? addr ?
129 #admflash* at obio? addr ?
130
131 wdc* at extio? addr ? gpio_mask ? flags 0x1000
132 atabus* at wdc? channel ?
133 wd* at atabus? drive ?
134
135 #USB
136 options USB_DEBUG
137 options UHUB_DEBUG
138 ahci* at obio? addr ?
139 usb* at ahci?
140 uhub* at usb?
141 uhub* at uhub? port ? configuration ? interface ?
142 ugen* at uhub? port ?
143 umass* at uhub? port ?
144 wd* at umass?
145
146 options PCI_NETBSD_CONFIGURE
147 admpci* at mainbus?
148 pci* at admpci?
149 ath* at pci? dev ? function ?
150
151 options MSGBUFSIZE=65536
152
153 scsibus* at scsi?
154 sd* at scsibus? target ? lun ? # SCSI disk drives
155
156 options IPSELSRC
157 #options WDC_EXTIO_DEBUG
158 #options EXTIO_DEBUG
159 #options ATADEBUG
160