CI20 revision 1.35
1# $NetBSD: CI20,v 1.35 2026/01/15 06:22:51 skrll Exp $ 2# 3# MIPS Creator CI20 4# 5 6include "arch/evbmips/conf/std.ingenic" 7 8#options INCLUDE_CONFIG_FILE # embed config file in kernel binary 9 10#ident "CI20-$Revision: 1.35 $" 11 12maxusers 32 13 14#makeoptions COPTS="-Os" # Optimise for space. Implies -O2 15 16options FDT 17 18options MIPS32R2 19makeoptions CPUFLAGS+="-mips32r2" 20makeoptions NEED_BINARY="yes" 21makeoptions NEED_UBOOTIMAGE="gz" 22options COM_TOLERANCE=50 # +/- 5% 23options CONSPEED=115200 # u-boot default 24 25# Options for necessary to use MD 26#makeoptions NEED_MDSETIMAGE="yes" 27#options MEMORY_DISK_HOOKS 28#options MEMORY_DISK_IS_ROOT # force root on memory disk 29#options MEMORY_DISK_SERVER=0 # no userspace memory disk support 30#options MEMORY_DISK_ROOT_SIZE=6144 # size of memory disk, in blocks 31#options MEMORY_DISK_ROOT_SIZE=16384 # size of memory disk, in blocks 32#options MEMORY_DISK_ROOT_SIZE=7300 33 34# Size reduction options 35#options VNODE_OP_NOINLINE 36#options PIPE_SOCKETPAIR 37options SOSEND_NO_LOAN 38 39# Standard system options 40options KTRACE # system call tracing support 41#options SYSVMSG # System V message queues 42#options SYSVSEM # System V semaphores 43#options SYSVSHM # System V shared memory 44options NTP # network time protocol 45 46# Debugging options 47options DIAGNOSTIC # extra kernel sanity checking 48#options DEBUG # extra kernel debugging support 49#options USERCONF # userconf(4) support 50#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 51options DDB # kernel dynamic debugger 52options DDB_HISTORY_SIZE=100 # enable history editing in DDB 53makeoptions DEBUG="-g" # compile full symbol table 54makeoptions COPY_SYMTAB=1 # size for embedded symbol table 55 56#options INGENIC_DEBUG 57#options INGENIC_CLOCK_DEBUG 58#options INGENIC_INTR_DEBUG # *very* spammy 59 60# Compatibility options 61include "conf/compat_netbsd16.config" 62 63#options EXEC_ECOFF # exec ECOFF binaries 64#options COMPAT_ULTRIX # binary compatibility with Ultrix 65 66# File systems 67file-system FFS # Berkeley Fast Filesystem 68#file-system MFS # memory-based filesystem 69#file-system EXT2FS # second extended file system (linux) 70file-system NFS # Sun NFS-compatible filesystem client 71file-system KERNFS # kernel data-structure filesystem 72#file-system NULLFS # NULL layered filesystem 73#file-system OVERLAY # overlay file system 74#file-system FDESC # user file descriptor filesystem 75#file-system UMAPFS # uid/gid remapping filesystem 76#file-system LFS # Log-based filesystem (still experimental) 77file-system PROCFS # /proc 78#file-system CD9660 # ISO 9660 + Rock Ridge file system 79#file-system UNION # union file system 80file-system MSDOSFS # MS-DOS FAT filesystem(s). 81#file-system CODA # Coda File System; also needs vcoda (below) 82file-system PTYFS # /dev/pts/N support 83file-system TMPFS # Efficient memory file-system 84 85# File system options 86#options FFS_EI # FFS Endian Independent support 87options FFS_NO_SNAPSHOT # No FFS snapshot support 88#options QUOTA # legacy UFS quotas 89#options QUOTA2 # new, in-filesystem UFS quotas 90#options UFS_DIRHASH # UFS Large Directory Hashing 91#options UFS_EXTATTR # Extended attribute support for UFS1 92options WAPBL # File system journaling support 93#options DISKLABEL_EI # disklabel Endian Independent support 94#options NFSSERVER # Network File System server 95 96# Alternate buffer queue strategies for better responsiveness under high 97# disk I/O load. 98#options BUFQ_READPRIO 99options BUFQ_PRIOCSCAN 100 101# Networking options 102#options GATEWAY # IP packet forwarding 103options INET # Internet protocols 104options INET6 # IPV6 105#options IPSEC # IP security 106#options IPSEC_DEBUG # debug for IP security 107#options MROUTING # packet forwarding of multicast packets 108#options PIM # Protocol Independent Multicast 109#options NETATALK # AppleTalk (over Ethernet) protocol 110#options PPP_BSDCOMP # BSD-Compress compression support for PPP 111#options PPP_DEFLATE # Deflate compression support for PPP 112#options PPP_FILTER # Active filter support for PPP (requires bpf) 113 114# JIT compiler for bpfilter 115#options SLJIT 116#options BPFJIT 117 118# These options enable verbose messages for several subsystems. 119# Warning, these may compile large string tables into the kernel! 120options MIIVERBOSE # verbose PHY autoconfig messages 121 122options NFS_BOOT_BOOTP 123options NFS_BOOT_DHCP 124#options NFS_V2_ONLY 125 126config netbsd root on sd0a type ffs 127#config netbsd root on axe0 type nfs 128#config netbsd root on dme0 type nfs 129 130mainbus0 at root 131#options MULTIPROCESSOR 132 133cpu* at mainbus? 134#wdog0 at mainbus? 135apbus0 at mainbus? 136 137# On-chip UARTs 138com* at apbus? 139com* at fdt? 140 141# EFUSE 142efuse* at apbus? 143 144# On-chip USB 145dwctwo* at apbus? 146#options DWC2_DEBUG 147usb* at dwctwo? 148 149ohci* at apbus? 150usb* at ohci? 151 152# this one doesn't work right just yet 153ehci* at apbus? 154#options INGENIC_EHCI_DEBUG 155#options EHCI_DEBUG 156#options USBVERBOSE 157#options USBHIST 158usb* at ehci? 159 160# onboard ethernet 161dme* at apbus? 162 163# I2C/SMBus 164jziic* at apbus? 165#options JZIIC_DEBUG # spammy 166iic* at jziic? 167 168# voltage control and the like, no driver yet 169#act8600pm0 at iic0 addr 0x5a 170 171# XXX 172# the manual says there's a Pericom RTC at SMB4 addr 0x68 173# on my preproduction CI20 that's not the case, instead there's something that 174# looks like a PCF8563 at addr 0x51 175 176# the Pericom PT7C4337 seems to be a DS1339 clone 177#dsrtc0 at iic4 addr 0x68 flags 1339 178 179# at least some CI20 have this instead 180pcf8563rtc0 at iic4 addr 0x51 181 182#jzgpio* at apbus? addr ? 183#gpio* at jzgpio? 184 185# MSC / SDMMC - unfinished 186#jzmmc* at apbus? 187#options JZMMC_DEBUG 188#sdmmc* at jzmmc? 189#ld* at sdmmc? 190 191# USB stuff 192uhub* at usb? 193uhub* at uhub? port ? 194 195# USB HID device 196uhidev* at uhub? port ? configuration ? interface ? 197 198# USB Mice 199ums* at uhidev? reportid ? 200wsmouse* at ums? mux 0 201 202# USB Keyboards 203ukbd* at uhidev? reportid ? 204wskbd* at ukbd? console ? mux 1 205 206# USB Generic HID devices 207uhid* at uhidev? reportid ? 208 209# USB Mass Storage 210umass* at uhub? port ? configuration ? interface ? 211scsibus* at umass? channel ? 212sd* at scsibus? target ? lun ? # SCSI disk drives 213cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 214 215# Ethernet 216#axe* at uhub? port ? 217#urtwn* at uhub? port ? 218 219# Random number generator 220jzrng0 at apbus0 221 222# MII/PHY support 223#acphy* at mii? phy ? # DAltima AC101 and AMD Am79c874 PHYs 224#amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs 225dmphy* at mii? phy ? # Davicom DM9101 PHYs 226#glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 227#gphyter* at mii? phy ? # NS83861 Gig-E PHY 228#icsphy* at mii? phy ? # Integrated Circuit Systems ICS1890 229#lxtphy* at mii? phy ? # Level One LXT-970 PHYs 230#makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 231#nsphy* at mii? phy ? # NS83840 PHYs 232#nsphyter* at mii? phy ? # NS83843 PHYs 233#pnaphy* at mii? phy ? # generic HomePNA PHYs 234#qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 235#sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 236#tlphy* at mii? phy ? # ThunderLAN PHYs 237#tqphy* at mii? phy ? # TDK Semiconductor PHYs 238#rlphy* at mii? phy ? # RealTek PHYs 239ukphy* at mii? phy ? # generic unknown PHYs 240 241 242# Pseudo-devices 243 244# Disk/mass storage pseudo-devices 245#pseudo-device ccd # concatenated disk devices 246#pseudo-device raid # RAIDframe disk driver 247#pseudo-device fss # file system snapshot device 248#pseudo-device md # memory disk device (ramdisk) 249#pseudo-device vnd # disk-like interface to files 250 251# Network pseudo-devices 252pseudo-device bpfilter # Berkeley packet filter 253pseudo-device carp # Common Address Redundancy Protocol 254#pseudo-device npf # NPF packet filter 255pseudo-device loop # network loopback 256#pseudo-device ppp # Point-to-Point Protocol 257#pseudo-device sl # Serial Line IP 258#pseudo-device tun # network tunneling over tty 259#pseudo-device tap # virtual Ethernet 260#pseudo-device gre # generic L3 over IP tunnel 261#pseudo-device ipip # RFC 2003 IP Encapsulation 262#pseudo-device gif # RFC1933 tunnel 263#pseudo-device faith # IPv[46] tcp relay translation 264#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 265#pseudo-device vlan # IEEE 802.1q encapsulation 266#pseudo-device bridge # simple inter-network bridging 267#pseudo-device vether # Virtual Ethernet for bridge 268 269# Miscellaneous pseudo-devices 270pseudo-device pty # pseudo-terminals 271pseudo-device clockctl # user control of clock subsystem 272pseudo-device ksyms # /dev/ksyms 273 274# A pseudo device needed for Coda # also needs CODA (above) 275#pseudo-device vcoda # coda minicache <-> venus comm. 276 277include "dev/veriexec.config" 278 279# Pull in optional local configuration - always at end 280cinclude "arch/evbmips/conf/CI20.local" 281