MARVELL_NAS revision 1.24.2.1 1 # $NetBSD: MARVELL_NAS,v 1.24.2.1 2017/04/21 16:53:25 bouyer Exp $
2 #
3 # This configuration supports for generically Marvell NAS.
4
5 include "arch/evbarm/conf/std.marvell"
6
7 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
8
9 # estimated number of users
10
11 maxusers 32
12
13 # CPU options
14 options CPU_ARM9E
15 #makeoptions CPUFLAGS="-mcpu=xscale" # Orion supports XScale instruction set
16 options CPU_SHEEVA
17 #makeoptions CPUFLAGS="-march=armv5te"
18
19 # Marvell SoC options
20 options ORION
21 options KIRKWOOD
22 #options MV78XX0 # Discovery Innovation
23
24 # Standard system options
25
26 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
27 #options NTP # NTP phase/frequency locked loop
28
29 # File systems
30
31 file-system FFS # UFS
32 file-system EXT2FS # second extended file system (linux)
33 file-system LFS # log-structured file system
34 file-system MFS # memory file system
35 file-system NFS # Network File System client
36 file-system NTFS # Windows/NT file system (experimental)
37 file-system CD9660 # ISO 9660 + Rock Ridge file system
38 file-system MSDOSFS # MS-DOS file system
39 file-system FDESC # /dev/fd
40 file-system KERNFS # /kern
41 file-system NULLFS # loopback file system
42 file-system OVERLAY # overlay file system
43 file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
44 file-system PROCFS # /proc
45 file-system UMAPFS # NULLFS + uid and gid remapping
46 file-system UNION # union file system
47 file-system CODA # Coda File System; also needs vcoda (below)
48 file-system SMBFS # experimental - CIFS; also needs nsmb (below)
49 file-system PTYFS # /dev/ptm support
50 file-system TMPFS # Efficient memory file-system
51 file-system UDF # experimental - OSTA UDF CD/DVD file-system
52 file-system HFS # experimental - Apple HFS+ (read-only)
53
54 # File system options
55 options QUOTA # legacy UFS quotas
56 options QUOTA2 # new, in-filesystem UFS quotas
57 #options DISKLABEL_EI # disklabel Endian Independent support
58 #options FFS_EI # FFS Endian Independent support
59 options WAPBL # File system journaling support
60 # Note that UFS_DIRHASH is suspected of causing kernel memory corruption.
61 # It is not recommended for general use.
62 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
63 options NFSSERVER # Network File System server
64 #options FFS_NO_SNAPSHOT # No FFS snapshot support
65 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
66 # immutable) behave as system flags.
67
68 # Networking options
69
70 #options GATEWAY # packet forwarding
71 options INET # IP + ICMP + TCP + UDP
72 options INET6 # IPv6
73 #options IPSEC # IP security
74 #options IPSEC_DEBUG # debug for IP security
75 #options MROUTING # IP multicast routing
76 #options PIM # Protocol Independent Multicast
77 options NETATALK # AppleTalk networking protocols
78 options PPP_BSDCOMP # BSD-Compress compression support for PPP
79 options PPP_DEFLATE # Deflate compression support for PPP
80 options PPP_FILTER # Active filter support for PPP (requires bpf)
81 options IPFILTER_LOG # ipmon(8) log support
82 options IPFILTER_LOOKUP # ippool(8) support
83 options IPFILTER_COMPAT # Compat for IP-Filter
84 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
85 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
86
87 options NFS_BOOT_BOOTP
88 options NFS_BOOT_DHCP
89 #options NFS_BOOT_BOOTPARAM
90
91 # Compatibility options
92
93 options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries
94 #options COMPAT_09 # NetBSD 0.9,
95 #options COMPAT_10 # NetBSD 1.0,
96 #options COMPAT_11 # NetBSD 1.1,
97 #options COMPAT_12 # NetBSD 1.2,
98 #options COMPAT_13 # NetBSD 1.3,
99 #options COMPAT_14 # NetBSD 1.4,
100 #options COMPAT_15 # NetBSD 1.5,
101 options COMPAT_16 # NetBSD 1.6,
102 options COMPAT_20 # NetBSD 2.0,
103 options COMPAT_30 # NetBSD 3.0, and
104 options COMPAT_40 # NetBSD 4.0 binary compatibility.
105 options COMPAT_50 # NetBSD 5.0,
106 options COMPAT_60 # NetBSD 6.0, and
107 options COMPAT_70 # NetBSD 7.0 binary compatibility.
108 #options COMPAT_43 # 4.3BSD compatibility.
109 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
110
111 options COMPAT_LINUX # binary compatibility with Linux
112 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
113
114 # Shared memory options
115
116 options SYSVMSG # System V-like message queues
117 options SYSVSEM # System V-like semaphores
118 options SYSVSHM # System V-like memory sharing
119
120 # Device options
121
122 #options MEMORY_DISK_HOOKS # boottime setup of ramdisk
123 #options MEMORY_DISK_IS_ROOT # use memory disk as root
124 #options MEMORY_DISK_DYNAMIC
125 #options MEMORY_DISK_ROOT_SIZE=22528 # Size in blocks
126 #options MEMORY_RBFLAGS=RB_AUTOBOOT
127
128 # Miscellaneous kernel options
129
130 options KTRACE # system call tracing, a la ktrace(1)
131 options IRQSTATS # manage IRQ statistics
132 options MIIVERBOSE # Verbose MII autoconfuration messages
133 options PCIVERBOSE # Verbose PCI descriptions
134 options USBVERBOSE # verbose USB device autoconfig messages
135 #options DDB_KEYCODE=0x40
136 #options USERCONF # userconf(4) support
137 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
138 #options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
139
140
141 config netbsd root on ? type ?
142
143 # The main bus device
144 mainbus0 at root
145
146 # The boot cpu
147 cpu0 at mainbus?
148
149 # Marvell MV88Fxx81 Orion System-on-Chip
150 mvsoc0 at mainbus?
151
152 # On-chip PCI Express Interface
153 mvpex* at mvsoc? offset ? irq ?
154
155 # On-chip PCI Interface
156 gtpci* at mvsoc? offset ? irq ?
157
158 # PCI bus support
159 options PCI_NETBSD_CONFIGURE
160 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
161
162 pci* at mvpex?
163 pci* at gtpci?
164
165 pchb* at pci? dev ? function ? # PCI-Host bridges
166
167 # On-chip Serial-ATA II Host Controller (SATAHC)
168 mvsata* at mvsoc? offset ? irq ?
169
170 # On-chip Gigabit Ethernet Controller Interface
171 mvgbec* at mvsoc? offset ?
172 mvgbe* at mvgbec? port ? irq ?
173
174 # On-chip USB 2.0 Interface
175 ehci* at mvsoc? offset ? irq ?
176
177 # On-chip Cryptographic Engines and Security Accelerator
178 mvcesa* at mvsoc? offset ? irq ?
179
180 # On-chip Two-Wire Serial Interface (TWSI)
181 gttwsi* at mvsoc? offset ? irq ?
182 iic* at gttwsi? # I2C bus
183
184 # On-chip UART Interface
185 com* at mvsoc? offset ? irq ?
186
187 # On-chip IDMA Controller
188 gtidmac* at mvsoc? offset ? irq ?
189
190 # On-chip General Purpose I/O Port Interface
191 mvsocgpp* at mvsoc? offset ? irq ?
192 gpio* at mvsocgpp?
193
194 # On-chip Timers
195 mvsoctmr* at mvsoc? offset ? irq ?
196
197
198 # MII/PHY support
199 makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
200
201 # PCI IDE Controller
202 mvsata* at pci? dev ? function ? # Marvell SATA Controller
203
204 # ATA (IDE) bus support
205 atabus* at ata?
206 #options ATADEBUG
207
208 # IDE drives
209 wd* at atabus? drive? flags 0x0000
210
211 # ATAPI bus support
212 atapibus* at atapi?
213
214 # ATAPI devices
215 # flags have the same meaning as for IDE drives.
216 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
217
218 # SCSI bus support
219 scsibus* at scsi?
220
221 # SCSI devices
222 sd* at scsibus? target ? lun ? # SCSI disk drives
223
224 # USB bus support
225 usb* at ehci?
226
227 # USB Hubs
228 uhub* at usb?
229 uhub* at uhub? port ?
230
231 # USB Mass Storage
232 umass* at uhub? port ? configuration ? interface ?
233 wd* at umass?
234
235 # USB Serial
236 uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
237 ucom* at uplcom? portno ?
238
239 # Wedge support
240 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
241 options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
242
243 # Alternate buffer queue strategies for better responsiveness under high
244 # disk I/O load.
245 #options BUFQ_READPRIO
246 options BUFQ_PRIOCSCAN
247
248 # Development and Debugging options
249
250 #options PERFCTRS # performance counters
251 #options DIAGNOSTIC # internal consistency checks
252 #options DEBUG
253 #options LOCKDEBUG
254 #options PMAP_DEBUG # Enable pmap_debug_level code
255 #options IPKDB # remote kernel debugging
256 #options VERBOSE_INIT_ARM # verbose bootstraping messages
257 options DDB # in-kernel debugger
258 options DDB_ONPANIC=0
259 options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
260 options DDB_COMMANDONENTER="bt"
261 #options KGDB
262 #options SYSCALL_DEBUG
263
264
265 # Pseudo-Devices
266
267 pseudo-device crypto # /dev/crypto device
268 pseudo-device swcrypto # software crypto implementation
269
270 # disk/mass storage pseudo-devices
271 pseudo-device bio # RAID control device driver
272 pseudo-device ccd # concatenated/striped disk devices
273 pseudo-device cgd # cryptographic disk devices
274 pseudo-device raid # RAIDframe disk driver
275 options RAID_AUTOCONFIG # auto-configuration of RAID components
276 # Options to enable various other RAIDframe RAID types.
277 #options RF_INCLUDE_EVENODD=1
278 #options RF_INCLUDE_RAID5_RS=1
279 #options RF_INCLUDE_PARITYLOGGING=1
280 #options RF_INCLUDE_CHAINDECLUSTER=1
281 #options RF_INCLUDE_INTERDECLUSTER=1
282 #options RF_INCLUDE_PARITY_DECLUSTERING=1
283 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
284 pseudo-device fss # file system snapshot device
285 pseudo-device putter # for puffs and pud
286
287 #pseudo-device md # memory disk device (ramdisk)
288 pseudo-device vnd # disk-like interface to files
289 options VND_COMPRESSION # compressed vnd(4)
290
291 # network pseudo-devices
292 pseudo-device bpfilter # Berkeley packet filter
293 #pseudo-device carp # Common Address Redundancy Protocol
294 pseudo-device ipfilter # IP filter (firewall) and NAT
295 pseudo-device loop # network loopback
296 #pseudo-device ppp # Point-to-Point Protocol
297 #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
298 #pseudo-device sl # Serial Line IP
299 #pseudo-device strip # Starmode Radio IP (Metricom)
300 #pseudo-device irframetty # IrDA frame line discipline
301 #pseudo-device tap # virtual Ethernet
302 pseudo-device tun # network tunneling over tty
303 #pseudo-device gre # generic L3 over IP tunnel
304 #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933)
305 #pseudo-device faith # IPv[46] TCP relay translation i/f
306 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
307 #pseudo-device vlan # IEEE 802.1q encapsulation
308 #pseudo-device bridge # simple inter-network bridging
309 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
310 #pseudo-device agr # IEEE 802.3ad link aggregation
311 pseudo-device npf # NPF packet filter
312 #pseudo-device pflog # PF log if
313
314 # miscellaneous pseudo-devices
315 pseudo-device pty # pseudo-terminals
316 #pseudo-device sequencer # MIDI sequencer
317 #options RND_COM
318 pseudo-device clockctl # user control of clock subsystem
319 pseudo-device ksyms # /dev/ksyms
320 #pseudo-device bcsp # BlueCore Serial Protocol
321 #pseudo-device btuart # Bluetooth HCI UART (H4)
322
323 # a pseudo device needed for Coda # also needs CODA (above)
324 pseudo-device vcoda # coda minicache <-> venus comm.
325
326 # a pseudo device needed for SMBFS
327 pseudo-device nsmb # experimental - SMB requester
328
329 # wscons pseudo-devices
330 pseudo-device wsmux # mouse & keyboard multiplexor
331 pseudo-device wsfont
332
333 # data mover pseudo-devices
334 pseudo-device swdmover # software dmover(9) back-end
335 pseudo-device dmoverio # /dev/dmover dmover(9) interface
336
337 options FILEASSOC # fileassoc(9) - required for Veriexec
338 # and PAX_SEGVGUARD
339
340 # Veriexec
341 pseudo-device veriexec
342 #
343 # Uncomment the fingerprint methods below that are desired. Note that
344 # removing fingerprint methods will have almost no impact on the kernel
345 # code size.
346 #
347 options VERIFIED_EXEC_FP_RMD160
348 options VERIFIED_EXEC_FP_SHA256
349 options VERIFIED_EXEC_FP_SHA384
350 options VERIFIED_EXEC_FP_SHA512
351 options VERIFIED_EXEC_FP_SHA1
352 options VERIFIED_EXEC_FP_MD5
353
354 options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
355 options PAX_ASLR=0 # PaX Address Space Layout Randomization
356