1# 2# $NetBSD: RPI,v 1.44 2014/04/22 18:51:35 kardel Exp $ 3# 4# RPi -- Raspberry Pi 5# 6 7include "arch/evbarm/conf/std.rpi" 8 9# estimated number of users 10 11maxusers 32 12 13# Standard system options 14 15options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 16#options NTP # NTP phase/frequency locked loop 17 18# CPU options 19 20options CPU_ARM1176 21options BCM2835 22options PMAPCOUNTERS 23options FPU_VFP 24 25# Architecture options 26 27# File systems 28 29file-system FFS # UFS 30#file-system LFS # log-structured file system 31file-system MFS # memory file system 32file-system NFS # Network file system 33#file-system ADOSFS # AmigaDOS-compatible file system 34file-system EXT2FS # second extended file system (linux) 35#file-system CD9660 # ISO 9660 + Rock Ridge file system 36file-system MSDOSFS # MS-DOS file system 37#file-system FDESC # /dev/fd 38file-system KERNFS # /kern 39file-system NULLFS # loopback file system 40file-system PROCFS # /proc 41file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 42#file-system UMAPFS # NULLFS + uid and gid remapping 43#file-system UNION # union file system 44file-system TMPFS # memory file system 45#file-system UDF # experimental - OSTA UDF CD/DVD file-system 46#file-system HFS # experimental - Apple HFS+ (read-only) 47#file-system NILFS # experimental - NTT's NiLFS(2) 48file-system PTYFS # /dev/pts/N support 49 50# File system options 51options QUOTA # legacy UFS quotas 52options QUOTA2 # new, in-filesystem UFS quotas 53#options FFS_EI # FFS Endian Independent support 54#options NFSSERVER 55options WAPBL # File system journaling support 56#options FFS_NO_SNAPSHOT # No FFS snapshot support 57 58# Networking options 59 60#options GATEWAY # packet forwarding 61options INET # IP + ICMP + TCP + UDP 62options INET6 # IPV6 63#options IPSEC # IP security 64#options IPSEC_DEBUG # debug for IP security 65#options MROUTING # IP multicast routing 66#options PIM # Protocol Independent Multicast 67#options NETATALK # AppleTalk networking 68#options PPP_BSDCOMP # BSD-Compress compression support for PPP 69#options PPP_DEFLATE # Deflate compression support for PPP 70#options PPP_FILTER # Active filter support for PPP (requires bpf) 71#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 72 73#options NFS_BOOT_BOOTP 74#options NFS_BOOT_DHCP 75#options NFS_BOOT_BOOTSTATIC 76#options NFS_BOOTSTATIC_MYIP="\"192.168.1.4\"" 77#options NFS_BOOTSTATIC_GWIP="\"192.168.1.1\"" 78#options NFS_BOOTSTATIC_MASK="\"255.255.255.0\"" 79#options NFS_BOOTSTATIC_SERVADDR="\"192.168.1.1\"" 80#options NFS_BOOTSTATIC_SERVER="\"192.168.1.1:/nfs/sdp2430\"" 81 82options NFS_BOOT_RWSIZE=1024 83 84# Compatibility options 85 86#options COMPAT_43 # 4.3BSD compatibility. 87options COMPAT_60 # NetBSD 6.0 compatibility. 88#options COMPAT_50 # NetBSD 5.0 compatibility. 89#options COMPAT_40 # NetBSD 4.0 compatibility. 90#options COMPAT_30 # NetBSD 3.0 compatibility. 91#options COMPAT_20 # NetBSD 2.0 compatibility. 92#options COMPAT_16 # NetBSD 1.6 compatibility. 93#options COMPAT_15 # NetBSD 1.5 compatibility. 94#options COMPAT_14 # NetBSD 1.4 compatibility. 95#options COMPAT_13 # NetBSD 1.3 compatibility. 96#options COMPAT_12 # NetBSD 1.2 compatibility. 97#options COMPAT_11 # NetBSD 1.1 compatibility. 98#options COMPAT_10 # NetBSD 1.0 compatibility. 99#options COMPAT_09 # NetBSD 0.9 compatibility. 100#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 101#options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 102 103# Shared memory options 104 105options SYSVMSG # System V-like message queues 106options SYSVSEM # System V-like semaphores 107#options SEMMNI=10 # number of semaphore identifiers 108#options SEMMNS=60 # number of semaphores in system 109#options SEMUME=10 # max number of undo entries per process 110#options SEMMNU=30 # number of undo structures in system 111options SYSVSHM # System V-like memory sharing 112 113# Device options 114 115#options MEMORY_DISK_HOOKS # boottime setup of ramdisk 116#options MEMORY_DISK_ROOT_SIZE=8192 # Size in blocks 117#options MEMORY_DISK_DYNAMIC 118#options MINIROOTSIZE=1000 # Size in blocks 119#options MEMORY_DISK_IS_ROOT # use memory disk as root 120 121# Miscellaneous kernel options 122options KTRACE # system call tracing, a la ktrace(1) 123#options KMEMSTATS # kernel memory statistics 124#options SCSIVERBOSE # Verbose SCSI errors 125#options MIIVERBOSE # Verbose MII autoconfuration messages 126#options DDB_KEYCODE=0x40 127#options USERCONF # userconf(4) support 128#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 129 130# Development and Debugging options 131#options PERFCTRS # performance counters 132options DIAGNOSTIC # internally consistency checks 133options DEBUG 134#options LOCKDEBUG 135#options IPKDB # remote kernel debugging 136#options VERBOSE_INIT_ARM # verbose bootstraping messages 137options DDB # in-kernel debugger 138options DDB_ONPANIC=1 139options DDB_HISTORY_SIZE=100 # Enable history editing in DDB 140#options KGDB,KGDB_PLCOMUNIT=0,KGDB_DEVRATE=115200,KGDB_CONMODE=0xB00 141makeoptions DEBUG="-g" # compile full symbol table 142options SYMTAB_SPACE=880000 143options PLCONSOLE 144#options PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00 145 146## USB Debugging options 147options USB_DEBUG 148#options EHCI_DEBUG 149#options OHCI_DEBUG 150#options UHUB_DEBUG 151 152 153# Valid options for BOOT_ARGS: 154# single Boot to single user only 155# kdb Give control to kernel debugger 156# ask Ask for file name to reboot from 157# pmapdebug=<n> If PMAP_DEBUG, set pmap_debug_level to <n> 158# memorydisk=<n> Set memorydisk size to <n> KB 159# quiet Show aprint_naive output 160# verbose Show aprint_normal and aprint_verbose output 161#options BOOT_ARGS="\"\"" 162 163config netbsd root on ? type ? 164 165# The main bus device 166mainbus0 at root 167 168# The cpu 169cpu0 at mainbus? 170 171# OBIO 172obio0 at mainbus? 173 174# Interrupt Controller 175bcmicu0 at obio? 176 177# VC Mailbox 178bcmmbox0 at obio? 179vcmbox0 at bcmmbox0 180 181# VCHIQ 182vchiq0 at obio? 183 184# AUDS 185vcaudio0 at vchiq0 186audio0 at vcaudio0 187 188# PL011 uart 189plcom0 at obio? 190 191# Framebuffer console 192genfb0 at obio? 193wsdisplay* at genfb? 194options VCONS_DRAW_INTR 195 196# System timer 197bcmtmr0 at obio? 198 199# Power management, Reset controller and Watchdog registers 200bcmpm0 at obio? 201 202# Random number generator 203bcmrng0 at obio? 204 205# GPIO 206bcmgpio0 at obio? # pins 0 ... 31 207bcmgpio1 at obio? # pins 32 ... 53 208 209# Arasan SD/MMC Interface 210sdhc* at obio? 211sdmmc* at sdhc? 212 213ld* at sdmmc? 214 215# On-board USB 216dwctwo* at obio? 217usb* at dwctwo? 218 219# USB device drivers 220include "dev/usb/usbdevices.config" 221 222ukphy* at mii? phy ? 223 224# Broadcom Serial Control (I2C) 225bsciic* at obio? 226iic* at i2cbus? 227 228# SPI controller 229bcmspi* at obio? 230spi* at spibus? 231 232# PIFace or other boards using that chip (needs gpio) 233#mcp23s17gpio0 at spi? slave 0 flags 0 234#mcp23s17gpio1 at spi? slave 0 flags 1 235#mcp23s17gpio2 at spi? slave 0 flags 2 236#mcp23s17gpio3 at spi? slave 0 flags 3 237 238# gpio support (e. g. mcp23s17gpio, bcmgpio) 239gpio* at gpiobus? 240 241# various options for wscons - we try to look as much like a standard 242# sun console as possible 243options WSEMUL_VT100 # sun terminal emulation 244options WS_DEFAULT_FG=WSCOL_WHITE 245options WS_DEFAULT_BG=WSCOL_BLACK 246options WS_KERNEL_FG=WSCOL_GREEN 247options WS_KERNEL_BG=WSCOL_BLACK 248options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 249options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls 250options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 251options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 252options WSDISPLAY_DEFAULTSCREENS=4 253 254#options FONT_QVSS8x15 255#options FONT_GALLANT12x22 # the console font 256 257# Pseudo-Devices 258 259# disk/mass storage pseudo-devices 260#pseudo-device fss # file system snapshot device 261 262#pseudo-device md # memory disk device (ramdisk) 263pseudo-device vnd # disk-like interface to files 264pseudo-device putter # for puffs and pud 265 266# network pseudo-devices 267pseudo-device bpfilter # Berkeley packet filter 268#pseudo-device carp # Common Address Redundancy Protocol 269#pseudo-device ipfilter # IP filter (firewall) and NAT 270pseudo-device loop # network loopback 271#pseudo-device kttcp # network loopback 272#pseudo-device ppp # Point-to-Point Protocol 273#pseudo-device pppoe # PPP over Ethernet (RFC 2516) 274#options PPPOE_SERVER # Enable PPPoE server via link0 275#pseudo-device sl # Serial Line IP 276#pseudo-device strip # Starmode Radio IP (Metricom) 277#pseudo-device irframetty # IrDA frame line discipline 278#pseudo-device tap # virtual Ethernet 279#pseudo-device tun # network tunneling over tty 280#pseudo-device gre # generic L3 over IP tunnel 281#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933) 282#pseudo-device faith # IPv[46] TCP relay translation i/f 283#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 284#pseudo-device vlan # IEEE 802.1q encapsulation 285#pseudo-device bridge # simple inter-network bridging 286#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 287#pseudo-device agr # IEEE 802.3ad link aggregation 288#pseudo-device pf # PF packet filter 289#pseudo-device pflog # PF log if 290 291# miscellaneous pseudo-devices 292pseudo-device pty # pseudo-terminals 293#options RND_COM 294#pseudo-device clockctl # user control of clock subsystem 295pseudo-device ksyms # /dev/ksyms 296pseudo-device lockstat # lock profiling 297 298# wscons pseudo-devices 299pseudo-device wsmux # mouse & keyboard multiplexor 300pseudo-device wsfont 301 302# data mover pseudo-devices 303#pseudo-device swdmover # software dmover(9) back-end 304#pseudo-device dmoverio # /dev/dmover dmover(9) interface 305 306# userland interface to drivers, including autoconf and properties retrieval 307pseudo-device drvctl 308 309# local configuration 310cinclude "arch/evbarm/conf/RPI.local" 311