KOBO revision 1.3
1#	$NetBSD: KOBO,v 1.3 2014/08/03 09:18:16 martin Exp $
2#
3#	KOBO -- http://kobo.com
4#
5
6include	"arch/evbarm/conf/std.kobo"
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 	IMX50
22options 	IMX508
23options		IMX51
24options 	PMAPCOUNTERS
25
26# Architecture options
27
28options 	MEMSTART=0x70000000
29options 	MEMSIZE=256
30options 	IMX51_IPGCLK_FREQ=50000000   # XXX This value is not correct.
31
32# File systems
33
34file-system	FFS		# UFS
35#file-system	LFS		# log-structured file system
36file-system	MFS		# memory file system
37file-system	NFS		# Network file system
38#file-system 	ADOSFS		# AmigaDOS-compatible file system
39file-system 	EXT2FS		# second extended file system (linux)
40#file-system	CD9660		# ISO 9660 + Rock Ridge file system
41file-system	MSDOSFS		# MS-DOS file system
42file-system	FDESC		# /dev/fd
43file-system	KERNFS		# /kern
44file-system	NULLFS		# loopback file system
45file-system	PROCFS		# /proc
46#file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
47file-system	TMPFS		# memory file system
48#file-system	UMAPFS		# NULLFS + uid and gid remapping
49#file-system	UNION		# union file system
50file-system	PTYFS		# /dev/pts/N support
51
52# File system options
53#options 	QUOTA		# legacy UFS quotas
54#options 	QUOTA2		# new, in-filesystem UFS quotas
55#options 	FFS_EI		# FFS Endian Independent support
56#options 	NFSSERVER
57options 	WAPBL		# File system journaling support
58#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
59
60# Networking options
61
62#options 	GATEWAY		# packet forwarding
63options 	INET		# IP + ICMP + TCP + UDP
64options 	INET6		# IPV6
65#options 	IPSEC		# IP security
66#options 	IPSEC_DEBUG	# debug for IP security
67#options 	MROUTING	# IP multicast routing
68#options 	PIM		# Protocol Independent Multicast
69#options 	NETATALK	# AppleTalk networking
70#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
71#options 	PPP_DEFLATE	# Deflate compression support for PPP
72#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
73#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
74
75#options 	NFS_BOOT_BOOTP
76#options 	NFS_BOOT_DHCP
77#options 	NFS_BOOT_BOOTPARAM
78#options	DEBUG_NFS_BOOT_DHCP
79
80# Compatibility options
81
82options		COMPAT_NETBSD32	# allow running arm (e.g. non-earm) binaries
83#options 	COMPAT_43	# 4.3BSD compatibility.
84options 	COMPAT_60	# NetBSD 6.0 compatibility.
85#options 	COMPAT_50	# NetBSD 5.0 compatibility.
86#options 	COMPAT_40	# NetBSD 4.0 compatibility.
87#options 	COMPAT_30	# NetBSD 3.0 compatibility.
88#options 	COMPAT_20	# NetBSD 2.0 compatibility.
89#options 	COMPAT_16	# NetBSD 1.6 compatibility.
90#options 	COMPAT_15	# NetBSD 1.5 compatibility.
91#options 	COMPAT_14	# NetBSD 1.4 compatibility.
92#options 	COMPAT_13	# NetBSD 1.3 compatibility.
93#options 	COMPAT_12	# NetBSD 1.2 compatibility.
94#options 	COMPAT_11	# NetBSD 1.1 compatibility.
95#options 	COMPAT_10	# NetBSD 1.0 compatibility.
96#options 	COMPAT_09	# NetBSD 0.9 compatibility.
97#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
98
99options 	COMPAT_OSSAUDIO	# OSS (Voxware) audio driver compatibility
100#options 	COMPAT_LINUX	# binary compatibility with Linux
101options		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
102
103# Shared memory options
104
105options 	SYSVMSG		# System V-like message queues
106options 	SYSVSEM		# System V-like semaphores
107#options 	SEMMNI=10	# number of semaphore identifiers
108#options 	SEMMNS=60	# number of semaphores in system
109#options 	SEMUME=10	# max number of undo entries per process
110#options 	SEMMNU=30	# number of undo structures in system
111options 	SYSVSHM		# System V-like memory sharing
112
113# Device options
114
115# Console options.    also need IMXUARTCONSOLE
116options 	CONSDEVNAME="\"imxuart\"",CONADDR=0x53fc0000
117options 	CONSPEED=115200	# Console speed
118
119# kgdb
120#options	KGDB
121#options 	KGDB_DEVNAME="\"imxuart\""
122#options 	KGDB_DEVADDR=0x73fbc000
123#options 	KGDB_DEVRATE=115200
124
125# Miscellaneous kernel options
126options 	KTRACE		# system call tracing, a la ktrace(1)
127options 	IRQSTATS	# manage IRQ statistics
128#options 	KMEMSTATS	# kernel memory statistics
129options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
130options 	USBVERBOSE	# verbose USB device autoconfig messages
131#options 	SCSIVERBOSE	# Verbose SCSI errors
132options 	MIIVERBOSE	# Verbose MII autoconfuration messages
133#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
134#options 	DDB_KEYCODE=0x40
135options 	USERCONF	# userconf(4) support
136#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
137#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
138options 	NO_POWERSAVE	# uncomment this to run under ICE
139
140# Development and Debugging options
141#options 	PERFCTRS	# performance counters
142#options 	DIAGNOSTIC	# internal consistency checks
143#options 	DEBUG
144#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
145options 	DDB		# in-kernel debugger
146options 	DDB_ONPANIC=1	# see also sysctl(8): `ddb.onpanic'
147options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
148options 	DDB_VERBOSE_HELP
149#options 	LOCKDEBUG
150#ptions 	PMAP_DEBUG	# Enable pmap_debug_level code
151#options 	IPKDB		# remote kernel debugging
152options 	VERBOSE_INIT_ARM # verbose bootstraping messages
153makeoptions	DEBUG="-g"	# compile full symbol table
154#makeoptions	COPTS="-O2"
155#options 	SYSCALL_STATS	# per syscall counts
156#options 	SYSCALL_TIMES 	# per syscall times
157#options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
158#options 	SCSIPI_DEBUG
159#options	SCSIPI_DEBUG_TYPE=SCSIPI_BUSTYPE_SCSI
160#options	SCSIPI_DEBUG_TARGET=0
161#options	SCSIPI_DEBUG_LUN=0
162#options	DEBUG_STARTUP
163
164## USB Debugging options
165#options	USB_DEBUG
166#options	EHCI_DEBUG
167#options	OHCI_DEBUG
168#options	UHUB_DEBUG
169
170# Valid options for BOOT_ARGS:
171#  single		Boot to single user only
172#  kndb			Give control to kernel debugger
173#  ask			Ask for file name to reboot from
174#  pmapdebug=<n>	If PMAP_DEBUG, set pmap_debug_level to <n>
175#  memorydisk=<n>	Set memorydisk size to <n> KB
176#  quiet		Show aprint_naive output
177#  verbose		Show aprint_normal and aprint_verbose output
178options		BOOT_ARGS="\"verbose\""
179
180# Kernel root file system and dump configuration.
181config		netbsd		root on ? type ?
182config		netbsd-ld0	root on ld0 type ffs
183
184# The main bus device
185mainbus0	at root
186
187# The boot cpu
188cpu*		at mainbus?
189
190# Devices
191# On-chip
192# On-chip bus
193axi0		at mainbus?
194
195# Interrupt Cotroller
196tzic0		at axi? addr 0x0fffc000 size 0x4000 irqbase 0
197
198# Serial
199#imxuart0	at axi? addr 0x53fbc000 irq 31		# UART1
200imxuart1	at axi? addr 0x53fc0000 irq 32
201#imxuart2	at axi? addr 0x5000c000 irq 33
202options		IMXUARTCONSOLE
203
204# Clock Control
205imxccm0		at axi? addr 0x53fd4000
206options		IMX51_CKIL_FREQ=32768
207
208# Enhanced Periodic Interrupt Timer
209imxclock0	at axi? addr 0x53fac000 size 0x4000 irq 40
210
211# IOMUX
212imxiomux0	at axi? addr 0x53fa8000
213
214# WatchDog
215imxwdog0	at axi? addr 0x53f98000 irq 58 flags 0
216
217# GPIO
218imxgpio0	at axi? addr 0x53f84000 irqbase 128 irq 50
219imxgpio1	at axi? addr 0x53f88000 irqbase 160 irq 52
220imxgpio2	at axi? addr 0x53f8c000 irqbase 192 irq 54
221imxgpio3	at axi? addr 0x53f90000 irqbase 224 irq 56
222imxgpio4	at axi? addr 0x53fdc000 irqbase 256 irq 103
223imxgpio5	at axi? addr 0x53fe0000 irqbase 288 irq 105
224
225# EPDC E-Ink Controller
226#epdc0		at axi? addr 0x41010000 size 0x2000 irq 27
227#wsdisplay0	at wsemuldisplaydev? console ?
228#wsdisplay*	at wsemuldisplaydev?
229#options		EPDC_DEBUG=10
230#options		EINK_DEBUG
231#options		IMXEPDCCONSOLE
232
233# I2C
234imxi2c0		at axi? addr 0x63fc8000 irq 62
235imxi2c1		at axi? addr 0x63fc4000 irq 63
236#imxi2c2	at axi? addr 0x53fec000 irq 64
237
238# IIC
239iic*		at imxi2c?
240
241lmtemp*		at iic1 addr 0x48		# LM75 temperature sensor
242
243# SD/MMC
244sdhc0		at axi? addr 0x50004000 irq 1	# eSDHC1
245sdhc1		at axi? addr 0x50008000 irq 2	# eSDHC2
246sdhc2		at axi? addr 0x50020000 irq 3	# eSDHC3
247#sdhc3		at axi? addr 0x50024000 irq 4	# eSDHC4
248sdmmc*		at sdhc?
249ld*		at sdmmc?		# MMC/SD card
250#options 	SDHC_DEBUG
251#options 	SDMMC_DEBUG
252
253# USB
254imxusbc0	at axi? addr 0x53f80000
255ehci0		at imxusbc0	unit 0	irq 18 # OTG
256#ehci1		at imxusbc0	unit 1	irq 14 # Host1
257
258usb*		at ehci?
259
260# USB device drivers, just as soon as we have something to attach them to
261include "dev/usb/usbdevices.config"
262
263ukphy*		at mii? phy ?
264
265# Pseudo-Devices
266
267pseudo-device	crypto			# /dev/crypto device
268pseudo-device	swcrypto		# software crypto implementation
269
270# disk/mass storage pseudo-devices
271#pseudo-device	md			# memory disk device (ramdisk)
272#pseudo-device	vnd			# disk-like interface to files
273
274# network pseudo-devices
275pseudo-device	bpfilter		# Berkeley packet filter
276#pseudo-device	ipfilter		# IP filter (firewall) and NAT
277pseudo-device	loop			# network loopback
278pseudo-device	ppp			# Point-to-Point Protocol
279
280# miscellaneous pseudo-devices
281pseudo-device	pty			# pseudo-terminals
282pseudo-device	ksyms			# /dev/ksyms
283pseudo-device	clockctl		# NTP clockctl
284
285# wscons pseudo-devices
286pseudo-device	wsmux			# mouse & keyboard multiplexor
287pseudo-device	wsfont
288
289# local configuration
290cinclude "arch/evbarm/conf/KOBO.local"
291