CUBOX revision 1.1 1 # $NetBSD: CUBOX,v 1.1 2017/01/07 16:24:07 kiyohara Exp $
2 #
3 # CUBOX -- SolidRun Ltd. Cubox kernel
4 #
5
6 include "arch/evbarm/conf/std.marvell"
7
8 #options INCLUDE_CONFIG_FILE # embed config file in kernel binary
9
10 # estimated number of users
11
12 maxusers 32
13
14 # Board Type
15 makeoptions BOARDTYPE="cubox"
16 options EVBARM_BOARDTYPE=cubox
17
18 # CPU options
19 options CPU_PJ4B # XXXX: CPU is PJ4
20 options ARM_HAS_VBAR
21 options FPU_VFP
22 makeoptions CPUFLAGS="-march=armv7-a -mfpu=vfpv3"
23
24 # Marvell SoC options
25 options DOVE
26
27 # Standard system options
28
29 options INSECURE # disable kernel security levels - X needs this
30
31 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
32 #options NTP # NTP phase/frequency locked loop
33 options KTRACE # system call tracing via ktrace(1)
34
35 # Note: SysV IPC parameters can be changed dynamically; see sysctl(8).
36 options SYSVMSG # System V-like message queues
37 options SYSVSEM # System V-like semaphores
38 options SYSVSHM # System V-like memory sharing
39
40 #options USERCONF # userconf(4) support
41 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
42 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
43
44 # Alternate buffer queue strategies for better responsiveness under high
45 # disk I/O load.
46 #options BUFQ_READPRIO
47 options BUFQ_PRIOCSCAN
48
49 # Diagnostic/debugging support options
50 #options VERBOSE_INIT_ARM # verbose bootstraping messages
51 #options PERFCTRS # performance counters
52 options DIAGNOSTIC # internally consistency checks
53
54 #options DEBUG
55 #options PMAP_DEBUG # Enable pmap_debug_level code
56 options LOCKDEBUG # expensive locking checks/support
57 options IRQSTATS # manage IRQ statistics
58 #options NO_POWERSAVE # uncomment this to run under ICE
59
60 #makeoptions COPTS="-O2"
61 options DDB # in-kernel debugger
62 #options DDB_KEYCODE=0x1d # ^]
63 #options DDB_COMMANDONENTER="bt" # execute command when ddb is entered
64 options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic'
65 options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
66 options DDB_VERBOSE_HELP
67 #options IPKDB # remote kernel debugging
68 #options KGDB
69 #options KGDB_DEVRATE=115200
70 makeoptions DEBUG="-g" # compile full symbol table
71 makeoptions COPY_SYMTAB=1
72 #options SYSCALL_STATS # per syscall counts
73 #options SYSCALL_TIMES # per syscall times
74 #options SYSCALL_TIMES_HASCOUNTER # use 'broken' rdtsc (soekris)
75
76
77 # Compatibility options
78 options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries
79 #options COMPAT_43 # 4.3BSD compatibility.
80 #options COMPAT_09 # NetBSD 0.9,
81 #options COMPAT_10 # NetBSD 1.0,
82 #options COMPAT_11 # NetBSD 1.1,
83 #options COMPAT_12 # NetBSD 1.2,
84 #options COMPAT_13 # NetBSD 1.3,
85 #options COMPAT_14 # NetBSD 1.4,
86 #options COMPAT_15 # NetBSD 1.5,
87 #options COMPAT_16 # NetBSD 1.6,
88 #options COMPAT_20 # NetBSD 2.0,
89 #options COMPAT_30 # NetBSD 3.0,
90 #options COMPAT_40 # NetBSD 4.0,
91 #options COMPAT_50 # NetBSD 5.0,
92 options COMPAT_60 # NetBSD 6.0, and
93 options COMPAT_70 # NetBSD 7.0 binary compatibility.
94 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
95
96 options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
97 #options COMPAT_NDIS # NDIS network driver
98 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
99
100 # Wedge support
101 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
102 options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
103
104 # File systems
105 file-system FFS # UFS
106 file-system MFS # memory file system
107 file-system NFS # Network File System client
108 file-system TMPFS # Efficient memory file-system
109 file-system EXT2FS # second extended file system (linux)
110 file-system LFS # log-structured file system
111 file-system NTFS # Windows/NT file system (experimental)
112 file-system CD9660 # ISO 9660 + Rock Ridge file system
113 file-system MSDOSFS # MS-DOS file system
114 file-system FDESC # /dev/fd
115 file-system KERNFS # /kern
116 file-system NULLFS # loopback file system
117 file-system OVERLAY # overlay file system
118 file-system PROCFS # /proc
119 file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
120 file-system SMBFS # experimental - CIFS; also needs nsmb (below)
121 file-system UMAPFS # NULLFS + uid and gid remapping
122 file-system UNION # union file system
123 file-system CODA # Coda File System; also needs vcoda (below)
124 file-system PTYFS # /dev/ptm support
125 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
126 #file-system HFS # experimental - Apple HFS+ (read-only)
127 #file-system NILFS # experimental - NTT's NiLFS(2)
128
129 # File system options
130 options QUOTA # legacy UFS quotas
131 options QUOTA2 # new, in-filesystem UFS quotas
132 options FFS_EI # FFS Endian Independent support
133 options WAPBL # File system journaling support
134 # Note that UFS_DIRHASH is suspected of causing kernel memory corruption.
135 # It is not recommended for general use.
136 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
137 options NFSSERVER # Network File System server
138 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
139 # immutable) behave as system flags.
140 #options FFS_NO_SNAPSHOT # No FFS snapshot support
141
142 # Networking options
143 #options GATEWAY # packet forwarding
144 options INET # IP + ICMP + TCP + UDP
145 options INET6 # IPv6
146 options IPSEC # IP security
147 #options IPSEC_DEBUG # debug for IP security
148 #options MPLS # MultiProtocol Label Switching (needs ifmpls)
149 #options MROUTING # IP multicast routing
150 #options PIM # Protocol Independent Multicast
151 options NETATALK # AppleTalk networking protocols
152 options PPP_BSDCOMP # BSD-Compress compression support for PPP
153 options PPP_DEFLATE # Deflate compression support for PPP
154 options PPP_FILTER # Active filter support for PPP (requires bpf)
155 options IPFILTER_LOG # ipmon(8) log support
156 options IPFILTER_LOOKUP # ippool(8) support
157 options IPFILTER_COMPAT # Compat for IP-Filter
158 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
159 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
160
161 #options ALTQ # Manipulate network interfaces' output queues
162 #options ALTQ_BLUE # Stochastic Fair Blue
163 #options ALTQ_CBQ # Class-Based Queueing
164 #options ALTQ_CDNR # Diffserv Traffic Conditioner
165 #options ALTQ_FIFOQ # First-In First-Out Queue
166 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
167 #options ALTQ_HFSC # Hierarchical Fair Service Curve
168 #options ALTQ_LOCALQ # Local queueing discipline
169 #options ALTQ_PRIQ # Priority Queueing
170 #options ALTQ_RED # Random Early Detection
171 #options ALTQ_RIO # RED with IN/OUT
172 #options ALTQ_WFQ # Weighted Fair Queueing
173
174 # Device options
175
176 # These options enable verbose messages for several subsystems.
177 # Warning, these may compile large string tables into the kernel!
178 options MIIVERBOSE # verbose PHY autoconfig messages
179 #options PCIVERBOSE # verbose PCI device autoconfig messages
180 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
181 #options PCMCIAVERBOSE # verbose PCMCIA configuration messages
182 #options SCSIVERBOSE # Verbose SCSI errors
183 #options USBVERBOSE # verbose USB device autoconfig messages
184
185 # Kernel root file system and dump configuration.
186 config netbsd root on ? type ?
187
188 options NFS_BOOT_BOOTP
189 options NFS_BOOT_DHCP
190 #options NFS_BOOT_BOOTPARAM
191 #options NFS_BOOT_BOOTSTATIC
192 #options NFS_BOOTSTATIC_MYIP="\"192.168.0.2\""
193 #options NFS_BOOTSTATIC_GWIP="\"192.168.0.1\""
194 #options NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
195 #options NFS_BOOTSTATIC_SERVADDR="\"192.168.0.3\""
196 #options NFS_BOOTSTATIC_SERVER="\"192.168.0.3:/nfs/cubox\""
197
198
199 #
200 # Device configuration
201 #
202
203 mainbus0 at root
204
205 cpu* at mainbus?
206
207 # Marvell 88AP510 Dove System-on-chip
208 mvsoc0 at mainbus?
209 #options MVSOC_CONSOLE_EARLY
210
211 # On-chip Power Management Unit
212 mvsocpmu* at mvsoc? offset ? irq ?
213
214 # On-chip Gigabit Ethernet Controller
215 mvgbec* at mvsoc? offset ?
216 mvgbe* at mvgbec? port ? irq ?
217
218 # MII/PHY support
219 makphy* at mii? phy ?
220
221 # On-chip Cryptographic Engines and Security Accelerator (CESA)
222 mvcesa* at mvsoc? offset ? irq ?
223
224 # On-chip XOR DMA Engine
225 gtidmac* at mvsoc? offset ? irq ?
226
227 # On-chip PCI Express Interface
228 mvpex* at mvsoc? offset ? irq ?
229 pci* at mvpex?
230
231 # PCI bus support
232 options PCI_NETBSD_CONFIGURE
233 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
234
235 pchb* at pci? dev ? function ? # PCI-Host bridges
236
237 # On-chip Serial-ATA (SATA) II Interface
238 mvsata* at mvsoc? offset ? irq ?
239
240 # ATA (IDE) bus support
241 atabus* at ata?
242 #options ATADEBUG
243
244 # IDE drives
245 wd* at atabus? drive ? flags 0x0000
246
247 # On-chip USB 2.0 Interface
248 ehci* at mvsoc? offset ? irq ?
249
250 # On-chip Secure Digital Input/Output Host Controller
251 sdhc* at mvsoc? offset ? irq ?
252 sdmmc* at sdhc?
253
254 ld* at sdmmc?
255
256 # On-chip Serial Peripheral Interface (SPI)
257 mvspi* at mvsoc? offset ? irq ?
258 spi* at mvspi?
259
260 m25p0 at spi? slave 0
261 spiflash0 at spiflashbus?
262
263 # On-chip Two-Wire Serial Interface (TWSI)
264 gttwsi* at mvsoc? offset ? irq ?
265 iic* at gttwsi?
266
267 #TDA998x at iic? addr 0x34 # HDMI transmitters
268 #Si5351A at iic? addr 0x60 # Programmable Any-Frequency CMOS Clock Generator
269 #lcdc at iic? addr 0x70
270
271 # On-chip UART Interface
272 com* at mvsoc? offset ? irq ?
273
274 # On-chip Real Time Clock (RTC)
275 mvsocrtc* at mvsoc? offset ? irq ?
276
277 # On-chip Timers
278 mvsoctmr* at mvsoc? offset ? irq ?
279
280
281 # USB bus support
282 usb* at ehci?
283
284 # USB Hubs
285 uhub* at usb?
286 uhub* at uhub? port ?
287
288 # USB HID device
289 uhidev* at uhub? port ? configuration ? interface ?
290
291 # USB Mice
292 ums* at uhidev? reportid ?
293 wsmouse* at ums? mux 0
294
295 # USB Keyboards
296 ukbd* at uhidev? reportid ?
297 wskbd* at ukbd? console ? mux 1
298
299 # USB Mass Storage
300 umass* at uhub? port ? configuration ? interface ?
301 wd* at umass?
302 scsibus* at scsi?
303 sd* at scsibus? target ? lun ? # SCSI disk drives
304 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
305
306 # Serial adapters
307 uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter
308 ucom* at uftdi? portno ?
309
310 uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter
311 ucom* at uplcom? portno ?
312
313 # USB Generic driver
314 ugen* at uhub? port ?
315
316
317 # Pseudo-Devices
318
319 pseudo-device crypto # /dev/crypto device
320 pseudo-device swcrypto # software crypto implementation
321
322 # disk/mass storage pseudo-devices
323 pseudo-device bio # RAID control device driver
324 pseudo-device ccd # concatenated/striped disk devices
325 pseudo-device cgd # cryptographic disk devices
326 pseudo-device raid # RAIDframe disk driver
327 #options RAID_AUTOCONFIG # auto-configuration of RAID components
328 #Options to enable various other RAIDframe RAID types.
329 #options RF_INCLUDE_EVENODD=1
330 #options RF_INCLUDE_RAID5_RS=1
331 #options RF_INCLUDE_PARITYLOGGING=1
332 #options RF_INCLUDE_CHAINDECLUSTER=1
333 #options RF_INCLUDE_INTERDECLUSTER=1
334 #options RF_INCLUDE_PARITY_DECLUSTERING=1
335 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
336 pseudo-device fss # file system snapshot device
337 pseudo-device putter # for puffs and pud
338
339 pseudo-device vnd # disk-like interface to files
340 options VND_COMPRESSION # compressed vnd(4)
341
342
343 # network pseudo-devices
344 pseudo-device bpfilter # Berkeley packet filter
345 #pseudo-device carp # Common Address Redundancy Protocol
346 #pseudo-device ipfilter # IP filter (firewall) and NAT
347 pseudo-device loop # network loopback
348 #pseudo-device ifmpls # MPLS pseudo-interface
349 pseudo-device ppp # Point-to-Point Protocol
350 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
351 pseudo-device sl # Serial Line IP
352 pseudo-device strip # Starmode Radio IP (Metricom)
353 pseudo-device irframetty # IrDA frame line discipline
354 pseudo-device tun # network tunneling over tty
355 pseudo-device tap # virtual Ethernet
356 pseudo-device gre # generic L3 over IP tunnel
357 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
358 #pseudo-device faith # IPv[46] tcp relay translation i/f
359 pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
360 pseudo-device vlan # IEEE 802.1q encapsulation
361 pseudo-device bridge # simple inter-network bridging
362 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
363 pseudo-device agr # IEEE 802.3ad link aggregation
364 #pseudo-device pf # PF packet filter
365 #pseudo-device pflog # PF log if
366 #pseudo-device pfsync # PF sync if
367 #pseudo-device npf # NPF packet filter
368
369 #
370 # accept filters
371 pseudo-device accf_data # "dataready" accept filter
372 pseudo-device accf_http # "httpready" accept filter
373
374 # miscellaneous pseudo-devices
375 pseudo-device pty # pseudo-terminals
376 pseudo-device sequencer # MIDI sequencer
377 # rnd works; RND_COM does not on port i386 yet.
378 #options RND_COM # use "com" randomness as well (BROKEN)
379 pseudo-device clockctl # user control of clock subsystem
380 pseudo-device ksyms # /dev/ksyms
381
382 # a pseudo device needed for Coda # also needs CODA (above)
383 pseudo-device vcoda # coda minicache <-> venus comm.
384
385 # a pseudo device needed for SMBFS
386 pseudo-device nsmb # experimental - SMB requester
387
388 # wscons pseudo-devices
389 pseudo-device wsmux # mouse & keyboard multiplexor
390 pseudo-device wsfont
391
392 # pseudo audio device driver
393 #pseudo-device pad
394
395 # userland interface to drivers, including autoconf and properties retrieval
396 pseudo-device drvctl
397
398 options FILEASSOC # fileassoc(9) - required for Veriexec
399
400 # Veriexec
401 #
402 # a pseudo device needed for veriexec
403 pseudo-device veriexec
404 #
405 # Uncomment the fingerprint methods below that are desired. Note that
406 # removing fingerprint methods will have almost no impact on the kernel
407 # code size.
408 #
409 options VERIFIED_EXEC_FP_RMD160
410 options VERIFIED_EXEC_FP_SHA256
411 options VERIFIED_EXEC_FP_SHA384
412 options VERIFIED_EXEC_FP_SHA512
413 options VERIFIED_EXEC_FP_SHA1
414 options VERIFIED_EXEC_FP_MD5
415
416 options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
417 options PAX_ASLR=0 # PaX Address Space Layout Randomization
418