EFIKA revision 1.1 1 1.1 rkujawa # $NetBSD: EFIKA,v 1.1 2026/07/01 00:19:39 rkujawa Exp $
2 1.1 rkujawa #
3 1.1 rkujawa # EFIKA 5200B - Genesi/bplan single-board computer based on the MPC5200B
4 1.1 rkujawa #
5 1.1 rkujawa # Standalone configuration for the EFIKA 5200B.
6 1.1 rkujawa
7 1.1 rkujawa include "arch/ofppc/conf/std.ofppc"
8 1.1 rkujawa
9 1.1 rkujawa options INCLUDE_CONFIG_FILE # embed config file in kernel binary
10 1.1 rkujawa
11 1.1 rkujawa #ident "EFIKA-$Revision: 1.1 $"
12 1.1 rkujawa
13 1.1 rkujawa maxusers 32
14 1.1 rkujawa
15 1.1 rkujawa options EFIKA_OFW_WORKAROUNDS
16 1.1 rkujawa # FIRMWORKSBUGS, and its real-mode OF-call wrapper, ofwreal.S does not work
17 1.1 rkujawa # on EFIKA. It hangs the kernel during early ofwr_init/savemmu. It does not
18 1.1 rkujawa # matter if SmartFirmware is running with real-mode? true or false, the
19 1.1 rkujawa # result is the same.
20 1.1 rkujawa #
21 1.1 rkujawa # It is worth nothing that rjs' original EFIKA port from 2008-2012 used
22 1.1 rkujawa # FIRMWORKSBUGS option and the kernel booted fine. The problem is that the
23 1.1 rkujawa # current ofwreal.S wrapper is not compatible with SmartFirmware. The
24 1.1 rkujawa # incompatibility must have been introduced in one of the later refactors.
25 1.1 rkujawa #
26 1.1 rkujawa # So we have this EFIKA_OFW_WORKAROUND kludge. OF calls use the standard
27 1.1 rkujawa # openfirmware_trampoline and the kernel boots. It's just that we need to
28 1.1 rkujawa # restore proper contents of SDR1 and BATs, which is exactly what the option
29 1.1 rkujawa # do.
30 1.1 rkujawa
31 1.1 rkujawa # Standard system options
32 1.1 rkujawa options INSECURE # disable kernel security checks
33 1.1 rkujawa #options NTP # NTP phase/frequency locked loop
34 1.1 rkujawa options KTRACE # system call tracing via ktrace(1)
35 1.1 rkujawa
36 1.1 rkujawa options SYSVMSG # System V message queues
37 1.1 rkujawa options SYSVSEM # System V semaphores
38 1.1 rkujawa options SYSVSHM # System V shared memory
39 1.1 rkujawa
40 1.1 rkujawa options USERCONF # userconf(4) support
41 1.1 rkujawa #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
42 1.1 rkujawa options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
43 1.1 rkujawa options RDB_PART # Rigid Disk Block partition support
44 1.1 rkujawa
45 1.1 rkujawa # Alternate buffer queue strategies for better responsiveness under high
46 1.1 rkujawa # disk I/O load.
47 1.1 rkujawa #options BUFQ_READPRIO
48 1.1 rkujawa options BUFQ_PRIOCSCAN
49 1.1 rkujawa
50 1.1 rkujawa # Diagnostic/debugging support options
51 1.1 rkujawa #options DIAGNOSTIC # cheap kernel consistency checks
52 1.1 rkujawa #options DEBUG # expensive debugging checks/support
53 1.1 rkujawa options DDB # in-kernel debugger
54 1.1 rkujawa options DDB_HISTORY_SIZE=512 # enable history editing in DDB
55 1.1 rkujawa options DDB_VERBOSE_HELP
56 1.1 rkujawa options TRAP_PANICWAIT
57 1.1 rkujawa options MSGBUFSIZE=32768
58 1.1 rkujawa
59 1.1 rkujawa makeoptions DEBUG="-g" # compile full symbol table
60 1.1 rkujawa
61 1.1 rkujawa # Wedge support. The disk on the onboard IDE port is RDB-partitioned and
62 1.1 rkujawa # removable media may arrive with an MBR, so enable those methods in addition to
63 1.1 rkujawa # the GPT and Apple methods.
64 1.1 rkujawa options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
65 1.1 rkujawa options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
66 1.1 rkujawa options DKWEDGE_METHOD_RDB # Support Amiga RDB partitions as wedges
67 1.1 rkujawa
68 1.1 rkujawa # File systems
69 1.1 rkujawa file-system FFS # UFS
70 1.1 rkujawa file-system EXT2FS # second extended file system (linux)
71 1.1 rkujawa file-system MFS # memory file system
72 1.1 rkujawa file-system NFS # Network file System client
73 1.1 rkujawa file-system CD9660 # ISO 9660 + Rock Ridge file system
74 1.1 rkujawa file-system MSDOSFS # MS-DOS file system
75 1.1 rkujawa file-system ADOSFS # AmigaDOS file system
76 1.1 rkujawa file-system FDESC # /dev/fd
77 1.1 rkujawa file-system KERNFS # /kern
78 1.1 rkujawa file-system NULLFS # loopback file system
79 1.1 rkujawa file-system OVERLAY # overlay file system
80 1.1 rkujawa file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
81 1.1 rkujawa file-system PROCFS # /proc
82 1.1 rkujawa file-system UMAPFS # NULLFS + uid and gid remapping
83 1.1 rkujawa file-system UNION # union file system
84 1.1 rkujawa file-system NTFS # Windows NT file system
85 1.1 rkujawa file-system PTYFS # /dev/pts/N support
86 1.1 rkujawa file-system TMPFS # Efficient memory file-system
87 1.1 rkujawa #file-system UDF # experimental - OSTA UDF CD/DVD file-system
88 1.1 rkujawa
89 1.1 rkujawa # File system options
90 1.1 rkujawa options FFS_EI # FFS Endian Independent support
91 1.1 rkujawa #options FFS_NO_SNAPSHOT # No FFS snapshot support
92 1.1 rkujawa options QUOTA # legacy UFS quotas
93 1.1 rkujawa options QUOTA2 # new, in-filesystem UFS quotas
94 1.1 rkujawa options UFS_DIRHASH # UFS Large Directory Hashing
95 1.1 rkujawa options UFS_EXTATTR # Extended attribute support for UFS1
96 1.1 rkujawa options WAPBL # File system journaling support
97 1.1 rkujawa options LFS_DIRHASH # LFS version of UFS_DIRHASH - experimental
98 1.1 rkujawa
99 1.1 rkujawa options NFS_BOOT_DHCP # Support DHCP NFS root
100 1.1 rkujawa
101 1.1 rkujawa # Networking options
102 1.1 rkujawa #options GATEWAY # packet forwarding
103 1.1 rkujawa options INET # IP + ICMP + TCP + UDP
104 1.1 rkujawa options INET6 # IPV6
105 1.1 rkujawa
106 1.1 rkujawa # These options enable verbose messages for several subsystems.
107 1.1 rkujawa # Warning, these may compile large string tables into the kernel!
108 1.1 rkujawa options MIIVERBOSE # verbose PHY autoconfig messages
109 1.1 rkujawa options PCIVERBOSE # verbose PCI device autoconfig messages
110 1.1 rkujawa #options PCI_CONFIG_DUMP # verbosely dump PCI config space
111 1.1 rkujawa options SCSIVERBOSE # human readable SCSI error messages
112 1.1 rkujawa options USBVERBOSE # verbose USB device autoconfig messages
113 1.1 rkujawa
114 1.1 rkujawa options WSEMUL_VT100
115 1.1 rkujawa options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
116 1.1 rkujawa options WS_DEFAULT_FG=WSCOL_BLACK
117 1.1 rkujawa options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
118 1.1 rkujawa options WS_KERNEL_FG=WSCOL_GREEN
119 1.1 rkujawa options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
120 1.1 rkujawa #options FONT_GALLANT12x22
121 1.1 rkujawa options FONT_BOLD8x16
122 1.1 rkujawa
123 1.1 rkujawa # Kernel root file system and dump configuration
124 1.1 rkujawa config netbsd root on ? type ?
125 1.1 rkujawa
126 1.1 rkujawa #
127 1.1 rkujawa # Device configuration
128 1.1 rkujawa #
129 1.1 rkujawa mainbus* at root
130 1.1 rkujawa
131 1.1 rkujawa # CPUs
132 1.1 rkujawa cpu* at mainbus?
133 1.1 rkujawa
134 1.1 rkujawa # Generic OpenFirmware console support
135 1.1 rkujawa rtas* at mainbus?
136 1.1 rkujawa
137 1.1 rkujawa #
138 1.1 rkujawa # Freescale MPC5200B on-chip peripherals (SoC bus).
139 1.1 rkujawa #
140 1.1 rkujawa options PIC_MPC5200 # SIU interrupt-routing glue in mainbus/ofwpci
141 1.1 rkujawa
142 1.1 rkujawa mpcobio* at mainbus?
143 1.1 rkujawa mpc5200pic* at mpcobio? # SIU interrupt controller
144 1.1 rkujawa cdm* at mpcobio? # clock distribution module
145 1.1 rkujawa sram* at mpcobio? # on-chip SRAM (BestComm scratch)
146 1.1 rkujawa bestcomm* at mpcobio? # BestComm SDMA engine
147 1.1 rkujawa fec* at mpcobio? # Fast Ethernet Controller (MAC + MII)
148 1.1 rkujawa psc* at mpcobio? # programmable serial controller
149 1.1 rkujawa # Use a PSC in UART mode (PSC1) as the OpenFirmware serial console.
150 1.1 rkujawa options PSC_CONSOLE
151 1.1 rkujawa ohci* at mpcobio? # on-chip USB OHCI host controller
152 1.1 rkujawa wdc* at mpcobio? # on-chip ATA controller (PIO mode)
153 1.1 rkujawa mpcaudio* at mpcobio? # AC97 audio (PSC2 + STAC9766, BestComm DMA)
154 1.1 rkujawa
155 1.1 rkujawa # PCI root nodes. EFIKA uses the native MPC5200 host-bridge driver (mpcpci)
156 1.1 rkujawa # instead of the generic ofwpci.
157 1.1 rkujawa mpcpci* at mainbus?
158 1.1 rkujawa pci* at mpcpci? bus ?
159 1.1 rkujawa
160 1.1 rkujawa # PCI bridges
161 1.1 rkujawa pchb* at pci? dev ? function ?
162 1.1 rkujawa ppb* at pci? dev ? function ?
163 1.1 rkujawa pcib* at pci? dev ? function ?
164 1.1 rkujawa
165 1.1 rkujawa # Console Devices
166 1.1 rkujawa #genfb* at pci? dev ? function ?
167 1.1 rkujawa #radeonfb* at pci? dev ? function ?
168 1.1 rkujawa #
169 1.1 rkujawa #wsdisplay0 at wsemuldisplaydev? console 1
170 1.1 rkujawa #wsdisplay* at wsemuldisplaydev?
171 1.1 rkujawa
172 1.1 rkujawa scsibus* at umass?
173 1.1 rkujawa
174 1.1 rkujawa # SCSI devices
175 1.1 rkujawa sd* at scsibus? target ? lun ? # SCSI disk drives
176 1.1 rkujawa st* at scsibus? target ? lun ? # SCSI tape drives
177 1.1 rkujawa cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
178 1.1 rkujawa #ch* at scsibus? target ? lun ? # SCSI autochangers
179 1.1 rkujawa #ss* at scsibus? target ? lun ? # SCSI scanners
180 1.1 rkujawa #uk* at scsibus? target ? lun ? # SCSI unknown
181 1.1 rkujawa
182 1.1 rkujawa # IDE and related devices
183 1.1 rkujawa # PCI IDE controllers
184 1.1 rkujawa satalink* at pci? dev ? function ? # Silicon Image SATALink SATA
185 1.1 rkujawa
186 1.1 rkujawa # ATA (IDE) bus support
187 1.1 rkujawa atabus* at ata?
188 1.1 rkujawa
189 1.1 rkujawa # IDE drives
190 1.1 rkujawa wd* at atabus? drive ? flags 0x0000
191 1.1 rkujawa
192 1.1 rkujawa # ATAPI bus support
193 1.1 rkujawa atapibus* at atapi?
194 1.1 rkujawa
195 1.1 rkujawa # ATAPI devices
196 1.1 rkujawa # flags have the same meaning as for IDE drives.
197 1.1 rkujawa cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
198 1.1 rkujawa sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
199 1.1 rkujawa uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
200 1.1 rkujawa
201 1.1 rkujawa # MII/PHY support
202 1.1 rkujawa rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
203 1.1 rkujawa
204 1.1 rkujawa usb* at ohci? # USB bus support
205 1.1 rkujawa uhub* at usb? # USB Hubs
206 1.1 rkujawa uhub* at uhub? port ?
207 1.1 rkujawa
208 1.1 rkujawa # USB Mass Storage
209 1.1 rkujawa umass* at uhub? port ? configuration ? interface ?
210 1.1 rkujawa
211 1.1 rkujawa uhidev* at uhub? port ? configuration ? interface ? # USB HID device
212 1.1 rkujawa
213 1.1 rkujawa ums* at uhidev? reportid ? # USB Mice
214 1.1 rkujawa wsmouse* at ums? mux 0
215 1.1 rkujawa
216 1.1 rkujawa ukbd* at uhidev? reportid ? # USB Keyboards
217 1.1 rkujawa wskbd* at ukbd? console ? mux 1
218 1.1 rkujawa
219 1.1 rkujawa ucycom* at uhidev? reportid ? # USB serial adapter
220 1.1 rkujawa uhid* at uhidev? reportid ? # USB Generic HID
221 1.1 rkujawa
222 1.1 rkujawa ulpt* at uhub? port ? configuration ? interface ? # USB Printer
223 1.1 rkujawa #uaudio* at uhub? port ? configuration ? # USB audio
224 1.1 rkujawa
225 1.1 rkujawa ugen* at uhub? port ? configuration ? interface ? # USB Generic driver
226 1.1 rkujawa
227 1.1 rkujawa # Audio support
228 1.1 rkujawa audio* at audiobus?
229 1.1 rkujawa
230 1.1 rkujawa spkr* at audio? # PC speaker (synthesized)
231 1.1 rkujawa wsbell* at spkr?
232 1.1 rkujawa
233 1.1 rkujawa #
234 1.1 rkujawa # accept filters
235 1.1 rkujawa pseudo-device accf_data # "dataready" accept filter
236 1.1 rkujawa pseudo-device accf_http # "httpready" accept filter
237 1.1 rkujawa
238 1.1 rkujawa pseudo-device vnd # disk-like interface to files
239 1.1 rkujawa #options VND_COMPRESSION # compressed vnd(4)
240 1.1 rkujawa pseudo-device fss # file system snapshot device
241 1.1 rkujawa pseudo-device md # memory disk device
242 1.1 rkujawa pseudo-device loop # network loopback
243 1.1 rkujawa pseudo-device bpfilter # packet filter
244 1.1 rkujawa pseudo-device npf # NPF packet filter
245 1.1 rkujawa # NB: pppoe (and its sppp line discipline) is intentionally omitted on this board.
246 1.1 rkujawa pseudo-device sl # Serial Line IP
247 1.1 rkujawa pseudo-device tun # network tunneling over tty
248 1.1 rkujawa pseudo-device tap # virtual Ethernet
249 1.1 rkujawa #pseudo-device gre # generic L3 over IP tunnel
250 1.1 rkujawa pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
251 1.1 rkujawa #pseudo-device faith # IPv[46] tcp relay translation i/f
252 1.1 rkujawa pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
253 1.1 rkujawa pseudo-device vlan # IEEE 802.1q encapsulation
254 1.1 rkujawa pseudo-device bridge # simple inter-network bridging
255 1.1 rkujawa pseudo-device vether # Virtual Ethernet for bridge
256 1.1 rkujawa pseudo-device agr # IEEE 802.3ad link aggregation
257 1.1 rkujawa pseudo-device pty # pseudo-terminals
258 1.1 rkujawa pseudo-device clockctl # user control of clock subsystem
259 1.1 rkujawa pseudo-device openfirm # /dev/openfirm
260 1.1 rkujawa pseudo-device ksyms # /dev/ksyms
261 1.1 rkujawa pseudo-device wsmux # mouse and keyboard multiplexor
262 1.1 rkujawa pseudo-device putter # for puffs and pud
263 1.1 rkujawa pseudo-device swwdog # software watchdog timer -- swwdog(4)
264 1.1 rkujawa
265 1.1 rkujawa # userland interface to drivers, including autoconf and properties retrieval
266 1.1 rkujawa pseudo-device drvctl
267 1.1 rkujawa
268 1.1 rkujawa include "dev/veriexec.config"
269 1.1 rkujawa
270 1.1 rkujawa # Pull in optional local configuration - always at end
271 1.1 rkujawa cinclude "arch/ofppc/conf/EFIKA.local"
272