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