NETWALKER revision 1.32
1#	$NetBSD: NETWALKER,v 1.32 2014/10/11 11:55:07 uebayasi Exp $
2#
3#	NETWALKER -- http://www.sharp.co.jp/netwalker/
4#
5
6include	"arch/evbarm/conf/std.netwalker"
7
8#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
9
10# estimated number of users
11
12maxusers	32
13
14# Standard system options
15
16options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
17#options 	NTP		# NTP phase/frequency locked loop
18
19# CPU options
20options 	CPU_CORTEXA8	# Support the ARM-v7a core
21options 	IMX51
22options 	PMAPCOUNTERS
23
24# Architecture options
25
26# File systems
27
28file-system	FFS		# UFS
29#file-system	LFS		# log-structured file system
30file-system	MFS		# memory file system
31file-system	NFS		# Network file system
32#file-system 	ADOSFS		# AmigaDOS-compatible file system
33file-system 	EXT2FS		# second extended file system (linux)
34#file-system	CD9660		# ISO 9660 + Rock Ridge file system
35file-system	MSDOSFS		# MS-DOS file system
36file-system	FDESC		# /dev/fd
37file-system	KERNFS		# /kern
38file-system	NULLFS		# loopback file system
39file-system	PROCFS		# /proc
40#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
41file-system	TMPFS		# memory file system
42#file-system	UMAPFS		# NULLFS + uid and gid remapping
43#file-system	UNION		# union file system
44file-system	PTYFS		# /dev/pts/N support
45
46# File system options
47#options 	QUOTA		# legacy UFS quotas
48#options 	QUOTA2		# new, in-filesystem UFS quotas
49#options 	FFS_EI		# FFS Endian Independent support
50#options 	NFSSERVER
51options 	WAPBL		# File system journaling support
52#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
53
54# Networking options
55
56#options 	GATEWAY		# packet forwarding
57options 	INET		# IP + ICMP + TCP + UDP
58options 	INET6		# IPV6
59#options 	IPSEC		# IP security
60#options 	IPSEC_DEBUG	# debug for IP security
61#options 	MROUTING	# IP multicast routing
62#options 	PIM		# Protocol Independent Multicast
63#options 	NETATALK	# AppleTalk networking
64#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
65#options 	PPP_DEFLATE	# Deflate compression support for PPP
66#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
67#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
68
69#options 	NFS_BOOT_BOOTP
70#options 	NFS_BOOT_DHCP
71#options 	NFS_BOOT_BOOTPARAM
72#options	DEBUG_NFS_BOOT_DHCP
73
74# Compatibility options
75
76options		COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
77#options 	COMPAT_43	# 4.3BSD compatibility.
78#options 	COMPAT_09	# NetBSD 0.9,
79#options 	COMPAT_10	# NetBSD 1.0,
80#options 	COMPAT_11	# NetBSD 1.1,
81#options 	COMPAT_12	# NetBSD 1.2,
82#options 	COMPAT_13	# NetBSD 1.3,
83#options 	COMPAT_14	# NetBSD 1.4,
84#options 	COMPAT_15	# NetBSD 1.5,
85#options 	COMPAT_16	# NetBSD 1.6,
86#options 	COMPAT_20	# NetBSD 2.0,
87#options 	COMPAT_30	# NetBSD 3.0,
88#options 	COMPAT_40	# NetBSD 4.0,
89#options 	COMPAT_50	# NetBSD 5.0,
90options 	COMPAT_60	# NetBSD 6.0, and
91options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
92#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
93
94options 	COMPAT_OSSAUDIO	# OSS (Voxware) audio driver compatibility
95#options 	COMPAT_LINUX	# binary compatibility with Linux
96options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
97
98# Shared memory options
99
100options 	SYSVMSG		# System V-like message queues
101options 	SYSVSEM		# System V-like semaphores
102options 	SYSVSHM		# System V-like memory sharing
103
104# Device options
105
106# Console options.    also need IMXUARTCONSOLE
107options 	CONSDEVNAME="\"imxuart\"",CONADDR=0x73fbc000
108options 	CONSPEED=115200	# Console speed
109
110# kgdb
111#options	KGDB
112#options 	KGDB_DEVNAME="\"imxuart\""
113#options 	KGDB_DEVADDR=0x73fbc000
114#options 	KGDB_DEVRATE=115200
115
116# Miscellaneous kernel options
117options 	KTRACE		# system call tracing, a la ktrace(1)
118options 	IRQSTATS	# manage IRQ statistics
119#options 	KMEMSTATS	# kernel memory statistics
120options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
121options 	USBVERBOSE	# verbose USB device autoconfig messages
122#options 	SCSIVERBOSE	# Verbose SCSI errors
123options 	MIIVERBOSE	# Verbose MII autoconfuration messages
124#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
125#options 	DDB_KEYCODE=0x40
126options 	USERCONF	# userconf(4) support
127#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
128#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
129options 	NO_POWERSAVE	# uncomment this to run under ICE
130
131# Development and Debugging options
132#options 	PERFCTRS	# performance counters
133#options 	DIAGNOSTIC	# internal consistency checks
134#options 	DEBUG
135#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
136options 	DDB		# in-kernel debugger
137options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
138options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
139options 	DDB_VERBOSE_HELP
140#options 	LOCKDEBUG
141#options 	PMAP_DEBUG	# Enable pmap_debug_level code
142#options 	IPKDB		# remote kernel debugging
143#options 	VERBOSE_INIT_ARM # verbose bootstraping messages
144makeoptions	DEBUG="-g"	# compile full symbol table
145#makeoptions	COPTS="-O2"
146#options 	SYSCALL_STATS	# per syscall counts
147#options 	SYSCALL_TIMES 	# per syscall times
148#options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
149#options 	SCSIPI_DEBUG
150#options	SCSIPI_DEBUG_TYPE=SCSIPI_BUSTYPE_SCSI
151#options	SCSIPI_DEBUG_TARGET=0
152#options	SCSIPI_DEBUG_LUN=0
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="\"verbose\""
163#options		BOOT_ARGS="\"pmapdebug=1\""
164
165# Kernel root file system and dump configuration.
166config		netbsd		root on ? type ?
167config		netbsd-ld0	root on ld0 type ffs
168
169# The main bus device
170mainbus0	at root
171
172# The boot cpu
173cpu0		at mainbus?
174
175# Devices
176# On-chip
177# On-chip bus
178axi0		at mainbus?
179
180# Interrupt Cotroller
181tzic0		at axi? addr 0xe0000000 size 0x4000 irqbase 0
182
183# Serial
184imxuart0	at axi? addr 0x73fbc000 irq 31		# UART1
185#imxuart1	at axi? addr 0x73fc0000 irq 32
186#imxuart2	at axi? addr 0x7000c000 irq 33
187#options	IMXUARTCONSOLE
188
189# Clock Control
190imxccm0		at axi? addr 0x73fd4000
191options		IMX51_CKIL_FREQ=32768
192#options	IMXCCMDEBUG
193
194# Enhanced Periodic Interrupt Timer
195imxclock0	at axi? addr 0x73fac000 size 0x4000 irq 40
196imxclock1	at axi? addr 0x73fb0000 size 0x4000 irq 41
197
198# IOMUX
199imxiomux0	at axi? addr 0x73fa8000
200
201# WatchDog
202imxwdog0	at axi? addr 0x73f98000 irq 58 flags 0
203
204# GPIO
205imxgpio0	at axi? addr 0x73f84000 irqbase 128 irq 50
206imxgpio1	at axi? addr 0x73f88000 irqbase 160 irq 52
207imxgpio2	at axi? addr 0x73f8c000 irqbase 192 irq 54
208imxgpio3	at axi? addr 0x73f90000 irqbase 224 irq 56
209gpio*		at imxgpio?
210options		IMX_GPIO_INTR_SPLIT
211
212# I2C
213#imxi2c0	at axi? addr 0x83fc8000 irq 62
214#imxi2c1	at axi? addr 0x83fc4000 irq 63
215
216# IIC
217#iic*	   at imxi2c?
218
219# SPI bus
220imxspi0		at axi? addr 0x70010000 irq 36 flags 1
221#imxspi1	at axi? addr 0x83fac000 irq 37 flags 1
222#imxspi2	at axi? addr 0x83fc0000 irq 38 flags 0
223spi0		at imxspi0 # eCSPI1
224#spi1		at imxspi1 # eCSPI2
225#spi2		at imxspi2 # CSPI1
226options		IMXSPINSLAVES=3
227#options	IMXSPI_DEBUG=10
228
229# Optical Joystick
230oj6sh0		at spi0 slave 2
231#options	OJ6SH_DEBUG=4
232options		OJ6SH_UP_X_LEFT_Y
233wsmouse*	at oj6sh? mux 0
234
235mousebtn0	at gpio1 offset 22 mask 0x03 # intr 182, 183
236#options	MOUSEBTN_POLLING
237wsmouse*	at mousebtn? mux 0
238
239pwrbtn0		at gpio1 offset 21 mask 0x01 # intr 181
240lidsw0		at gpio3 offset 12 mask 0x01 # intr 236
241imxpwm0		at axi? addr 0x73FB4000 irq 61
242
243# SPI NOR-Flash
244#spiflash0	at spiflashbus?
245#m25p0		at spi0 slave 1
246
247# SD/MMC
248sdhc0    	at axi? addr 0x70004000 irq 1	     # eSDHC1
249#sdhc1   	at axi? addr 0x70008000 irq 2	     # eSDHC2
250sdmmc*		at sdhc?
251ld*		at sdmmc?			# MMC/SD card
252#options 	SDHC_DEBUG
253#options 	SDMMC_DEBUG
254
255# USB
256imxusbc0  at axi?  addr 0x73f80000
257ehci0	  at imxusbc0	unit 0	irq 18 # OTG
258ehci1	  at imxusbc0	unit 1	irq 14 # Host1
259#ehci2	  at imxusbc0	unit 2	irq 16 # Host2
260#ehci3	  at imxusbc0	unit 3	irq 17 # Host3
261
262usb*		at ehci?
263
264# USB device drivers
265include "dev/usb/usbdevices.config"
266
267midi*		at midibus?
268
269ukphy*		at mii? phy ?
270
271# IPUv3 LCD Controller
272ipu0		at axi?
273wsdisplay0	at wsemuldisplaydev? console ?
274wsdisplay*	at wsemuldisplaydev?
275#options	IPUV3_DEBUG=1
276#options	LCD_DEBUG
277options 	IMXIPUCONSOLE
278
279# various options for wscons - we try to look as much like a standard
280# sun console as possible
281options 	WSEMUL_VT100		# sun terminal emulation
282options 	WS_DEFAULT_FG=WSCOL_WHITE
283options 	WS_DEFAULT_BG=WSCOL_BLACK
284options		WS_KERNEL_FG=WSCOL_GREEN
285options		WS_KERNEL_BG=WSCOL_BLACK
286options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
287options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
288options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
289options 	WSDISPLAY_DEFAULTSCREENS=4
290
291# Pseudo-Devices
292
293pseudo-device	crypto			# /dev/crypto device
294pseudo-device	swcrypto		# software crypto implementation
295
296# disk/mass storage pseudo-devices
297#pseudo-device	md			# memory disk device (ramdisk)
298pseudo-device	vnd			# disk-like interface to files
299#pseudo-device	fss			# file system snapshot device
300pseudo-device	putter			# for puffs and pud
301
302# network pseudo-devices
303pseudo-device	bpfilter		# Berkeley packet filter
304#pseudo-device	ipfilter		# IP filter (firewall) and NAT
305pseudo-device	loop			# network loopback
306#pseudo-device	ppp			# Point-to-Point Protocol
307
308# miscellaneous pseudo-devices
309pseudo-device	pty			# pseudo-terminals
310pseudo-device	clockctl		# NTP clockctl
311pseudo-device	ksyms			# /dev/ksyms
312pseudo-device	lockstat		# lock profiling
313
314# wscons pseudo-devices
315pseudo-device	wsmux			# mouse & keyboard multiplexor
316pseudo-device	wsfont
317
318# data mover pseudo-devices
319#pseudo-device	swdmover		# software dmover(9) back-end
320#pseudo-device	dmoverio		# /dev/dmover dmover(9) interface
321
322# userland interface to drivers, including autoconf and properties retrieval
323pseudo-device 	drvctl
324
325# local configuration
326cinclude "arch/evbarm/conf/NETWALKER.local"
327