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