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