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