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