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