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