1# $NetBSD: CUBOX,v 1.21 2022/08/07 02:52:25 simonb 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 51options DIAGNOSTIC # internally consistency checks 52 53#options DEBUG 54#options UVMHIST # kernhist for uvm/pmap subsystems 55options LOCKDEBUG # expensive locking checks/support 56options IRQSTATS # manage IRQ statistics 57#options NO_POWERSAVE # uncomment this to run under ICE 58 59#makeoptions COPTS="-O2" 60options DDB # in-kernel debugger 61#options DDB_KEYCODE=0x1d # ^] 62#options DDB_COMMANDONENTER="bt" # execute command when ddb is entered 63options DDB_ONPANIC=1 # see also sysctl(7): `ddb.onpanic' 64options DDB_HISTORY_SIZE=100 # Enable history editing in DDB 65options DDB_VERBOSE_HELP 66#options KGDB 67#options KGDB_DEVRATE=115200 68makeoptions DEBUG="-g" # compile full symbol table 69makeoptions COPY_SYMTAB=1 70#options SYSCALL_STATS # per syscall counts 71#options SYSCALL_TIMES # per syscall times 72#options SYSCALL_TIMES_HASCOUNTER # use 'broken' rdtsc (soekris) 73 74 75# Compatibility options 76 77include "conf/compat_netbsd60.config" 78options COMPAT_NETBSD32 # allow running arm (e.g. non-earm) binaries 79 80# Wedge support 81options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances 82options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges 83 84# File systems 85file-system FFS # UFS 86file-system MFS # memory file system 87file-system NFS # Network File System client 88file-system TMPFS # Efficient memory file-system 89file-system EXT2FS # second extended file system (linux) 90file-system LFS # log-structured file system 91file-system NTFS # Windows/NT file system (experimental) 92file-system CD9660 # ISO 9660 + Rock Ridge file system 93file-system MSDOSFS # MS-DOS file system 94file-system FDESC # /dev/fd 95file-system KERNFS # /kern 96file-system NULLFS # loopback file system 97file-system OVERLAY # overlay file system 98file-system PROCFS # /proc 99file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 100file-system UMAPFS # NULLFS + uid and gid remapping 101file-system UNION # union file system 102file-system CODA # Coda File System; also needs vcoda (below) 103file-system PTYFS # /dev/ptm support 104#file-system UDF # experimental - OSTA UDF CD/DVD file-system 105#file-system HFS # experimental - Apple HFS+ (read-only) 106#file-system NILFS # experimental - NTT's NiLFS(2) 107 108# File system options 109options FFS_EI # FFS Endian Independent support 110#options FFS_NO_SNAPSHOT # No FFS snapshot support 111options QUOTA # legacy UFS quotas 112options QUOTA2 # new, in-filesystem UFS quotas 113options UFS_DIRHASH # UFS Large Directory Hashing 114options UFS_EXTATTR # Extended attribute support for UFS1 115options WAPBL # File system journaling support 116options LFS_DIRHASH # LFS version of UFS_DIRHASH - experimental 117#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 118 # immutable) behave as system flags. 119#options DISKLABEL_EI # disklabel Endian Independent support 120options NFSSERVER # Network File System server 121 122# Networking options 123#options GATEWAY # packet forwarding 124options INET # IP + ICMP + TCP + UDP 125options INET6 # IPv6 126options IPSEC # IP security 127#options IPSEC_DEBUG # debug for IP security 128#options MPLS # MultiProtocol Label Switching (needs ifmpls) 129#options MROUTING # IP multicast routing 130#options PIM # Protocol Independent Multicast 131options NETATALK # AppleTalk networking protocols 132options PPP_BSDCOMP # BSD-Compress compression support for PPP 133options PPP_DEFLATE # Deflate compression support for PPP 134options PPP_FILTER # Active filter support for PPP (requires bpf) 135#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 136 137#options ALTQ # Manipulate network interfaces' output queues 138#options ALTQ_BLUE # Stochastic Fair Blue 139#options ALTQ_CBQ # Class-Based Queueing 140#options ALTQ_CDNR # Diffserv Traffic Conditioner 141#options ALTQ_FIFOQ # First-In First-Out Queue 142#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 143#options ALTQ_HFSC # Hierarchical Fair Service Curve 144#options ALTQ_LOCALQ # Local queueing discipline 145#options ALTQ_PRIQ # Priority Queueing 146#options ALTQ_RED # Random Early Detection 147#options ALTQ_RIO # RED with IN/OUT 148#options ALTQ_WFQ # Weighted Fair Queueing 149 150# Device options 151 152# These options enable verbose messages for several subsystems. 153# Warning, these may compile large string tables into the kernel! 154options MIIVERBOSE # verbose PHY autoconfig messages 155#options PCIVERBOSE # verbose PCI device autoconfig messages 156#options PCI_CONFIG_DUMP # verbosely dump PCI config space 157#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 158#options SCSIVERBOSE # Verbose SCSI errors 159#options USBVERBOSE # verbose USB device autoconfig messages 160 161# Kernel root file system and dump configuration. 162config netbsd root on ? type ? 163 164options NFS_BOOT_BOOTP 165options NFS_BOOT_DHCP 166#options NFS_BOOT_BOOTPARAM 167#options NFS_BOOT_BOOTSTATIC 168#options NFS_BOOTSTATIC_MYIP="\"192.168.0.2\"" 169#options NFS_BOOTSTATIC_GWIP="\"192.168.0.1\"" 170#options NFS_BOOTSTATIC_MASK="\"255.255.255.0\"" 171#options NFS_BOOTSTATIC_SERVADDR="\"192.168.0.3\"" 172#options NFS_BOOTSTATIC_SERVER="\"192.168.0.3:/nfs/cubox\"" 173 174 175# 176# Device configuration 177# 178 179mainbus0 at root 180 181cpu* at mainbus? 182 183# Marvell 88AP510 Dove System-on-chip 184mvsoc0 at mainbus? 185#options MVSOC_CONSOLE_EARLY 186 187# On-chip Power Management Unit 188mvsocpmu* at mvsoc? offset ? irq ? 189 190# On-chip Gigabit Ethernet Controller 191mvgbec* at mvsoc? offset ? 192mvgbe* at mvgbec? port ? irq ? 193 194# MII/PHY support 195makphy* at mii? phy ? 196 197# On-chip Cryptographic Engines and Security Accelerator (CESA) 198mvcesa* at mvsoc? offset ? irq ? 199 200# On-chip XOR DMA Engine 201gtidmac* at mvsoc? offset ? irq ? 202 203# On-chip PCI Express Interface 204mvpex* at mvsoc? offset ? irq ? 205pci* at mvpex? 206 207# PCI bus support 208options PCI_NETBSD_CONFIGURE 209#options PCI_CONFIG_DUMP # verbosely dump PCI config space 210 211pchb* at pci? dev ? function ? # PCI-Host bridges 212 213# On-chip Serial-ATA (SATA) II Interface 214mvsata* at mvsoc? offset ? irq ? 215 216# ATA (IDE) bus support 217atabus* at ata? 218#options ATADEBUG 219 220# IDE drives 221wd* at atabus? drive ? flags 0x0000 222 223# On-chip USB 2.0 Interface 224ehci* at mvsoc? offset ? irq ? 225 226# On-chip Secure Digital Input/Output Host Controller 227sdhc* at mvsoc? offset ? irq ? 228sdmmc* at sdhc? 229 230ld* at sdmmc? 231 232# On-chip Serial Peripheral Interface (SPI) 233mvspi* at mvsoc? offset ? irq ? 234spi* at mvspi? 235 236m25p0 at spi? slave 0 237spiflash0 at spiflashbus? 238 239# On-chip Two-Wire Serial Interface (TWSI) 240gttwsi* at mvsoc? offset ? irq ? 241iic* at gttwsi? 242 243#TDA998x at iic? addr 0x34 # HDMI transmitters 244#Si5351A at iic? addr 0x60 # Programmable Any-Frequency CMOS Clock Generator 245#lcdc at iic? addr 0x70 246 247# On-chip UART Interface 248com* at mvsoc? offset ? irq ? 249 250# On-chip Real Time Clock (RTC) 251mvsocrtc* at mvsoc? offset ? irq ? 252 253# On-chip Timers 254mvsoctmr* at mvsoc? offset ? irq ? 255 256 257# USB bus support 258usb* at ehci? 259 260# USB Hubs 261uhub* at usb? 262uhub* at uhub? port ? 263 264# USB HID device 265uhidev* at uhub? port ? configuration ? interface ? 266 267# USB Mice 268ums* at uhidev? reportid ? 269wsmouse* at ums? mux 0 270 271# USB Keyboards 272ukbd* at uhidev? reportid ? 273wskbd* at ukbd? console ? mux 1 274 275# USB Mass Storage 276umass* at uhub? port ? configuration ? interface ? 277scsibus* at scsi? 278sd* at scsibus? target ? lun ? # SCSI disk drives 279cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 280 281# Serial adapters 282uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter 283ucom* at uftdi? portno ? 284 285uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter 286ucom* at uplcom? portno ? 287 288# USB Generic driver 289ugen* at uhub? port ? 290 291 292# Pseudo-Devices 293 294pseudo-device crypto # /dev/crypto device 295pseudo-device swcrypto # software crypto implementation 296 297# disk/mass storage pseudo-devices 298pseudo-device bio # RAID control device driver 299pseudo-device ccd # concatenated/striped disk devices 300pseudo-device cgd # cryptographic disk devices 301pseudo-device raid # RAIDframe disk driver 302#options RAID_AUTOCONFIG # auto-configuration of RAID components 303#Options to enable various other RAIDframe RAID types. 304#options RF_INCLUDE_EVENODD=1 305#options RF_INCLUDE_RAID5_RS=1 306#options RF_INCLUDE_PARITYLOGGING=1 307#options RF_INCLUDE_CHAINDECLUSTER=1 308#options RF_INCLUDE_INTERDECLUSTER=1 309#options RF_INCLUDE_PARITY_DECLUSTERING=1 310#options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 311pseudo-device fss # file system snapshot device 312pseudo-device putter # for puffs and pud 313 314pseudo-device vnd # disk-like interface to files 315options VND_COMPRESSION # compressed vnd(4) 316 317 318# network pseudo-devices 319pseudo-device bpfilter # Berkeley packet filter 320#pseudo-device carp # Common Address Redundancy Protocol 321#pseudo-device npf # NPF packet filter 322pseudo-device loop # network loopback 323#pseudo-device ifmpls # MPLS pseudo-interface 324pseudo-device ppp # Point-to-Point Protocol 325pseudo-device pppoe # PPP over Ethernet (RFC 2516) 326pseudo-device sl # Serial Line IP 327pseudo-device irframetty # IrDA frame line discipline 328pseudo-device tun # network tunneling over tty 329pseudo-device tap # virtual Ethernet 330pseudo-device gre # generic L3 over IP tunnel 331pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 332#pseudo-device faith # IPv[46] tcp relay translation i/f 333pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 334pseudo-device vlan # IEEE 802.1q encapsulation 335pseudo-device bridge # simple inter-network bridging 336pseudo-device vether # Virtual Ethernet for bridge 337pseudo-device agr # IEEE 802.3ad link aggregation 338#pseudo-device npf # NPF packet filter 339 340# 341# accept filters 342pseudo-device accf_data # "dataready" accept filter 343pseudo-device accf_http # "httpready" accept filter 344 345# miscellaneous pseudo-devices 346pseudo-device pty # pseudo-terminals 347pseudo-device sequencer # MIDI sequencer 348#options RND_COM # use "com" randomness as well (BROKEN) 349pseudo-device clockctl # user control of clock subsystem 350pseudo-device ksyms # /dev/ksyms 351 352# a pseudo device needed for Coda # also needs CODA (above) 353pseudo-device vcoda # coda minicache <-> venus comm. 354 355# wscons pseudo-devices 356pseudo-device wsmux # mouse & keyboard multiplexor 357pseudo-device wsfont 358 359# pseudo audio device driver 360#pseudo-device pad 361 362# userland interface to drivers, including autoconf and properties retrieval 363pseudo-device drvctl 364 365# Veriexec 366include "dev/veriexec.config" 367 368options PAX_MPROTECT=0 # PaX mprotect(2) restrictions 369options PAX_ASLR=0 # PaX Address Space Layout Randomization 370