OPENBLOCKS_AX3 revision 1.20 1 # $NetBSD: OPENBLOCKS_AX3,v 1.20 2017/02/19 07:47:00 rin Exp $
2 #
3 # OPENBLOCKS_AX3 -- Plat'Home. OpenBlockS AX3 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="openblocks_ax3"
16 options EVBARM_BOARDTYPE=openblocks_ax3
17
18 # CPU options
19 options CPU_PJ4B
20 options L2CACHE_ENABLE
21 #options AURORA_IO_CACHE_COHERENCY
22 options AURORA_L2_PT_WALK
23 options ARM_HAS_VBAR
24 options FPU_VFP
25 makeoptions CPUFLAGS="-march=armv7-a -mfpu=neon"
26
27 # Architecture options
28 options ARMADAXP
29
30 options PIC_MAXSOURCES=128
31
32 options __HAVE_MM_MD_DIRECT_MAPPED_PHYS
33 #options MULTIPROCESSOR
34 options TPIDRPRW_IS_CURCPU
35
36 no options KERNEL_BASE_EXT
37 options KERNEL_BASE_EXT=0x80000000
38 makeoptions KERNEL_BASE_VIRT="0x80008000"
39
40 # Standard system options
41
42 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
43 options NTP # NTP phase/frequency locked loop
44
45 # File systems
46
47 file-system FFS # UFS
48 file-system EXT2FS # second extended file system (linux)
49 #file-system LFS # log-structured file system
50 #file-system MFS # memory file system
51 file-system NFS # Network file system
52 file-system CD9660 # ISO 9660 + Rock Ridge file system
53 file-system MSDOSFS # MS-DOS file system
54 #file-system FDESC # /dev/fd
55 file-system KERNFS # /kern
56 file-system NULLFS # loopback file system
57 file-system PROCFS # /proc
58 file-system PTYFS # /dev/pts/N support
59 #file-system PUFFS # Pass-to-Userspace Framework File System
60 #file-system UMAPFS # NULLFS + uid and gid remapping
61 file-system UNION # union file system
62 file-system TMPFS # Efficient memory file-system
63
64 # File system options
65 #options QUOTA # legacy UFS quotas
66 #options QUOTA2 # new, in-filesystem UFS quotas
67 #options DISKLABEL_EI # disklabel Endian Independent support
68 options FFS_EI # FFS Endian Independent support
69 options NFSSERVER # Network File System server
70 options WAPBL # File system journaling support
71 #options FFS_NO_SNAPSHOT # No FFS snapshot support
72
73 # Networking options
74
75 options GATEWAY # packet forwarding
76 options INET # IP + ICMP + TCP + UDP
77 options INET6 # IPv6
78 options IPSEC # IP security
79 #options IPSEC_DEBUG # debug for IP security
80 options MROUTING # IP multicast routing
81 options PIM # Protocol Independent Multicast
82 options NETATALK # AppleTalk networking protocols
83 options PPP_BSDCOMP # BSD-Compress compression support for PPP
84 options PPP_DEFLATE # Deflate compression support for PPP
85 options PPP_FILTER # Active filter support for PPP (requires bpf)
86 options IPFILTER_LOG # ipmon(8) log support
87 options IPFILTER_LOOKUP # ippool(8) support
88 options IPFILTER_COMPAT # Compat for IP-Filter
89 options IPFILTER_DEFAULT_BLOCK # block all packets by default
90 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
91
92 #options NFS_BOOT_BOOTP
93 options NFS_BOOT_DHCP
94 #options NFS_BOOT_BOOTPARAM
95
96 #options NFS_BOOT_RWSIZE=1024
97
98 # Compatibility options
99
100 options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries
101 #options COMPAT_09 # NetBSD 0.9,
102 #options COMPAT_10 # NetBSD 1.0,
103 #options COMPAT_11 # NetBSD 1.1,
104 #options COMPAT_12 # NetBSD 1.2,
105 #options COMPAT_13 # NetBSD 1.3,
106 #options COMPAT_14 # NetBSD 1.4,
107 #options COMPAT_15 # NetBSD 1.5,
108 #options COMPAT_16 # NetBSD 1.6,
109 #options COMPAT_20 # NetBSD 2.0,
110 #options COMPAT_30 # NetBSD 3.0,
111 #options COMPAT_40 # NetBSD 4.0,
112 options COMPAT_50 # NetBSD 5.0,
113 options COMPAT_60 # NetBSD 6.0, and
114 options COMPAT_70 # NetBSD 7.0 binary compatibility.
115 #options COMPAT_43 # 4.3BSD compatibility.
116 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
117
118 options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
119 options COMPAT_LINUX # binary compatibility with Linux
120 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
121
122 # Shared memory options
123
124 options SYSVMSG # System V-like message queues
125 options SYSVSEM # System V-like semaphores
126 #options SEMMNI=10 # number of semaphore identifiers
127 #options SEMMNS=60 # number of semaphores in system
128 #options SEMUME=10 # max number of undo entries per process
129 #options SEMMNU=30 # number of undo structures in system
130 options SYSVSHM # System V-like memory sharing
131
132 # Device options
133
134 #options MEMORY_DISK_HOOKS # boottime setup of ramdisk
135 #options MEMORY_DISK_IS_ROOT # use memory disk as root
136 #options MEMORY_DISK_DYNAMIC
137 #options MINIROOTSIZE=1000 # Size in blocks
138 #options MEMORY_DISK_ROOT_SIZE=22528 # Size in blocks
139 #options MEMORY_RBFLAGS=RB_AUTOBOOT
140
141 # Miscellaneous kernel options
142
143 #options KTRACE # system call tracing, a la ktrace(1)
144 options IRQSTATS # manage IRQ statistics
145 #options MIIVERBOSE # Verbose MII auto configuration messages
146 #options PCIVERBOSE # Verbose PCI descriptions
147 #options SCSIVERBOSE # Verbose SCSI errors
148 options USBVERBOSE # Verbose USB device auto configuration messages
149 #options DDB_KEYCODE=0x40
150 #options USERCONF # userconf(4) support
151 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
152 #options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
153
154 # Development and Debugging options
155
156 #options PERFCTRS # performance counters
157 options DIAGNOSTIC # internal consistency checks
158 options DEBUG
159 #options PMAP_DEBUG # Enable pmap_debug_level code
160 #options VERBOSE_INIT_ARM # verbose bootstraping messages
161 options DDB # in-kernel debugger
162 options DDB_ONPANIC=1
163 #options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
164 #options KGDB
165 #options DEBUG_KGDB
166 makeoptions DEBUG="-g" # compile full symbol table
167 makeoptions COPY_SYMTAB=1
168
169 config netbsd root on ? type ?
170
171 # The main bus device
172 mainbus0 at root
173
174 # The boot cpu
175 cpu0 at mainbus?
176
177 # Marvell MV88F78260 ARMADA XP System-on-chip
178 mvsoc0 at mainbus?
179 options MVSOC_INTERREGS_PBASE=0xd0000000
180 options MVSOC_FIXUP_DEVID=0x7826
181
182 # On-chip Serial-ATA II Host Controller (SATAHC)
183 mvsata* at mvsoc? offset ? irq ?
184
185 # On-chip Gigabit Ethernet Controller Interface (backward compatible mode)
186 mvgbec* at mvsoc? offset ?
187 mvgbe* at mvgbec? port ? irq ?
188
189 # On-chip Gigabit Ethernet Controller Interface (counter mode)
190 #mvxpbm* at mvsoc? offset ?
191 #mvxpe* at mvsoc? irq ?
192 #options MVXPE_EVENT_COUNTERS
193 #options MVXPE_DEBUG=0
194
195 makphy* at mii? phy ?
196
197 # On-chip USB 2.0 Interface
198 ehci* at mvsoc? offset ? irq ?
199
200 # Serial Peripheral Interface (SPI)
201 #mvspi* at mvsoc? offset ? irq ?
202 #spi* at mvspi?
203
204 # On-chip Two-Wire Serial Interface (TWSI)
205 gttwsi* at mvsoc? offset ? irq ?
206 iic* at gttwsi?
207 s390rtc* at iic1 addr 0x30
208
209 # On-chip Cryptographic Engines and Security Accelerator (DMA)
210 #mvxpsec* at mvsoc? offset ? irq ?
211 #options MVXPSEC_DEBUG=MVXPSEC_DEBUG_ALL
212
213 # On-chip UART Interface
214 com* at mvsoc? offset ? irq ?
215 options COM_16750 # XXXX: required
216 #options COM_DEBUG
217
218 # On-chip PCI Express Interface
219 mvpex* at mvsoc? offset ? irq ?
220
221 # On-chip IDMA Controller
222 gtidmac* at mvsoc? offset ? irq ?
223
224 # On-chip Thermal Sensor
225 mvsocts* at mvsoc? offset ? irq ?
226
227 # On-chip Timers
228 mvsoctmr* at mvsoc? offset ? irq ?
229
230
231 # PCI bus support
232 options PCI_NETBSD_CONFIGURE
233 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
234 pci* at mvpex?
235 pchb* at pci? dev ? function ? # PCI-Host bridges
236
237 #athn* at pci? dev ? function ? # Atheros AR9k (802.11a/g/n)
238
239 # ATA (IDE) bus support
240 atabus* at ata?
241 #options ATADEBUG
242
243 # IDE drives
244 wd* at atabus? drive ? flags 0x0000
245
246 # ATAPI bus support
247 atapibus* at atapi?
248
249 # ATAPI devices
250 # flags have the same meaning as for IDE drives.
251 cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
252 sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
253
254 # USB bus support
255 usb* at ehci?
256
257 # USB Hubs
258 uhub* at usb?
259 uhub* at uhub? port ?
260
261 # USB Mass Storage
262 umass* at uhub? port ? configuration ? interface ?
263 wd* at umass?
264 scsibus* at scsi?
265 sd* at scsibus? target ? lun ? # SCSI disk drives
266 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
267
268 # USB Generic driver
269 ugen* at uhub? port ?
270
271
272 # Pseudo-Devices
273
274 pseudo-device crypto # /dev/crypto device
275 pseudo-device swcrypto # software crypto implementation
276
277 # disk/mass storage pseudo-devices
278 #pseudo-device bio # RAID control device driver
279 #pseudo-device ccd # concatenated/striped disk devices
280 #pseudo-device cgd # cryptographic disk devices
281 #pseudo-device raid # RAIDframe disk driver
282 #options RAID_AUTOCONFIG # auto-configuration of RAID components
283 # Options to enable various other RAIDframe RAID types.
284 #options RF_INCLUDE_EVENODD=1
285 #options RF_INCLUDE_RAID5_RS=1
286 #options RF_INCLUDE_PARITYLOGGING=1
287 #options RF_INCLUDE_CHAINDECLUSTER=1
288 #options RF_INCLUDE_INTERDECLUSTER=1
289 #options RF_INCLUDE_PARITY_DECLUSTERING=1
290 #options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
291 #pseudo-device fss # file system snapshot device
292 #pseudo-device putter # for puffs and pud
293
294 #pseudo-device md # memory disk device (ramdisk)
295 pseudo-device vnd # disk-like interface to files
296 options VND_COMPRESSION # compressed vnd(4)
297
298 # network pseudo-devices
299 pseudo-device bpfilter # Berkeley packet filter
300 #pseudo-device carp # Common Address Redundancy Protocol
301 pseudo-device ipfilter # IP filter (firewall) and NAT
302 pseudo-device loop # network loopback
303 pseudo-device ppp # Point-to-Point Protocol
304 pseudo-device pppoe # PPP over Ethernet (RFC 2516)
305 pseudo-device sl # Serial Line IP
306 #pseudo-device strip # Starmode Radio IP (Metricom)
307 #pseudo-device irframetty # IrDA frame line discipline
308 pseudo-device tap # virtual Ethernet
309 pseudo-device tun # network tunneling over tty
310 pseudo-device gre # generic L3 over IP tunnel
311 pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933)
312 pseudo-device faith # IPv[46] TCP relay translation i/f
313 pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
314 pseudo-device vlan # IEEE 802.1q encapsulation
315 pseudo-device bridge # simple inter-network bridging
316 options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
317 pseudo-device agr # IEEE 802.3ad link aggregation
318 pseudo-device pf # PF packet filter
319 pseudo-device pflog # PF log if
320
321 # miscellaneous pseudo-devices
322 pseudo-device pty # pseudo-terminals
323 #pseudo-device sequencer # MIDI sequencer
324 #options RND_COM
325 pseudo-device clockctl # user control of clock subsystem
326 pseudo-device ksyms # /dev/ksyms
327
328 # a pseudo device needed for Coda # also needs CODA (above)
329 #pseudo-device vcoda # coda minicache <-> venus comm.
330
331 # a pseudo device needed for SMBFS
332 #pseudo-device nsmb # experimental - SMB requester
333
334 # wscons pseudo-devices
335 #pseudo-device wsmux # mouse & keyboard multiplexor
336 #pseudo-device wsfont
337
338 # data mover pseudo-devices
339 pseudo-device swdmover # software dmover(9) back-end
340 pseudo-device dmoverio # /dev/dmover dmover(9) interface
341
342 #options FILEASSOC # fileassoc(9) - required for Veriexec
343 # and PAX_SEGVGUARD
344
345 # Veriexec
346 #pseudo-device veriexec
347 #
348 # Uncomment the fingerprint methods below that are desired. Note that
349 # removing fingerprint methods will have almost no impact on the kernel
350 # code size.
351 #
352 #options VERIFIED_EXEC_FP_RMD160
353 #options VERIFIED_EXEC_FP_SHA256
354 #options VERIFIED_EXEC_FP_SHA384
355 #options VERIFIED_EXEC_FP_SHA512
356 #options VERIFIED_EXEC_FP_SHA1
357 #options VERIFIED_EXEC_FP_MD5
358
359 #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
360 #options PAX_ASLR=0 # PaX Address Space Layout Randomization
361