Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: RB153,v 1.27 2024/01/29 18:27:11 christos Exp $
      2 #
      3 # Example kernel config for the RouterBOARD 153.
      4 
      5 include 	"arch/evbmips/conf/std.adm5120"
      6 
      7 #ident 		"RB153-$Revision: 1.27 $"
      8 
      9 maxusers	32
     10 
     11 options 	MIPS32
     12 options 	NOFPU		# No FPU
     13 options 	FPEMUL		# emulate FPU insn
     14 options 	CONSPEED=115200	# YAMON default
     15 #options 	HZ=512		# for profiling
     16 #options	ADM5120_YAMON	# if our bootloader is YAMON
     17 #options 	MEMSIZE="(32*1024*1024)"
     18 
     19 #options 	LOCKDEBUG
     20 options 	SOSEND_COUNTERS
     21 options 	INET_CSUM_COUNTERS
     22 options 	TCP_CSUM_COUNTERS
     23 options 	UDP_CSUM_COUNTERS
     24 options 	TCP_OUTPUT_COUNTERS
     25 
     26 #options 	NTP		# network time protocol
     27 
     28 # Debugging options
     29 options 	DIAGNOSTIC	# extra kernel sanity checking
     30 #options 	DEBUG		# extra kernel debugging support
     31 options 	DDB		# kernel dynamic debugger
     32 options 	DDB_HISTORY_SIZE=100 # enable history editing in DDB
     33 makeoptions 	DEBUG="-g"	# compile full symbol table
     34 makeoptions 	CPUFLAGS="-march=4kc"
     35 makeoptions	COPY_SYMTAB=1	# size for embedded symbol table
     36 
     37 #options 	MEMORY_DISK_HOOKS
     38 #options 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
     39 #options 	MEMORY_DISK_ROOT_SIZE=16384	# size of memory disk, in blocks
     40 
     41 # File systems
     42 file-system	FFS		# Berkeley Fast Filesystem
     43 file-system	TMPFS
     44 #file-system 	EXT2FS		# second extended file system (linux)
     45 file-system	NFS		# Sun NFS-compatible filesystem client
     46 #file-system	KERNFS		# kernel data-structure filesystem
     47 file-system	NULLFS		# NULL layered filesystem
     48 #file-system 	OVERLAY		# overlay file system
     49 #file-system	FDESC		# user file descriptor filesystem
     50 #file-system	UMAPFS		# uid/gid remapping filesystem
     51 #file-system	LFS		# Log-based filesystem (still experimental)
     52 #file-system	PROCFS		# /proc
     53 #file-system	CD9660		# ISO 9660 + Rock Ridge file system
     54 #file-system	UNION		# union file system
     55 #file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
     56 #file-system 	CODA		# Coda File System; also needs vcoda (below)
     57 
     58 # File system options
     59 #options 	FFS_EI		# FFS Endian Independent support
     60 #options 	QUOTA		# legacy UFS quotas
     61 #options 	QUOTA2		# new, in-filesystem UFS quotas
     62 #options 	UFS_DIRHASH	# UFS Large Directory Hashing
     63 #options 	UFS_EXTATTR	# Extended attribute support for UFS1
     64 #options 	DISKLABEL_EI	# disklabel Endian Independent support
     65 #options 	NFSSERVER	# Network File System server
     66 
     67 # Alternate buffer queue strategies for better responsiveness under high
     68 # disk I/O load.
     69 #options 	BUFQ_READPRIO
     70 options 	BUFQ_PRIOCSCAN
     71 
     72 # Networking options
     73 options 	GATEWAY		# IP packet forwarding
     74 options 	INET		# Internet protocols
     75 options 	INET6		# IPV6
     76 #options 	IPSEC		# IP security
     77 #options 	IPSEC_DEBUG	# debug for IP security
     78 #options 	MROUTING	# packet forwarding of multicast packets
     79 #options 	NETATALK	# AppleTalk (over Ethernet) protocol
     80 #options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
     81 #options 	PPP_DEFLATE	# Deflate compression support for PPP
     82 #options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
     83 
     84 # JIT compiler for bpfilter
     85 #options	SLJIT
     86 #options	BPFJIT
     87 
     88 # These options enable verbose messages for several subsystems.
     89 # Warning, these may compile large string tables into the kernel!
     90 #options 	MIIVERBOSE	# verbose PHY autoconfig messages
     91 #options 	PCIVERBOSE	# verbose PCI device autoconfig messages
     92 #options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
     93 #options 	SCSIVERBOSE	# human readable SCSI error messages
     94 #options 	USBVERBOSE	# verbose USB device autoconfig messages
     95 
     96 options 	NFS_BOOT_DHCP
     97 #options	NFS_BOOT_RWSIZE=1024
     98 
     99 # Pretty much only one device to use for the root file system.
    100 config		netbsd		root on admsw0 type nfs
    101 
    102 mainbus0 	at root
    103 
    104 cpu0 		at mainbus?
    105 
    106 # Network pseudo-devices
    107 pseudo-device	bpfilter		# Berkeley packet filter
    108 pseudo-device 	carp			# Common Address Redundancy Protocol
    109 pseudo-device	loop			# network loopback
    110 #pseudo-device	ppp			# Point-to-Point Protocol
    111 #pseudo-device	sl			# Serial Line IP
    112 #pseudo-device	tun			# network tunneling over tty
    113 pseudo-device	gre			# generic L3 over IP tunnel
    114 #pseudo-device	ipip			# RFC 2003 IP Encapsulation
    115 pseudo-device	gif			# RFC1933 tunnel
    116 #pseudo-device	faith			# IPv[46] tcp relay translation
    117 # Miscellaneous pseudo-devices
    118 pseudo-device	pty			# pseudo-terminals
    119 #pseudo-device	sequencer		# MIDI sequencer
    120 pseudo-device	npf			# NPF packet filter
    121 
    122 # A pseudo device needed for Coda	# also needs CODA (above)
    123 #pseudo-device	vcoda			# coda minicache <-> venus comm.
    124 pseudo-device	ksyms
    125 
    126 obio*		at mainbus?
    127 gpio*		at mainbus?
    128 extio*		at mainbus?
    129 
    130 uart*		at obio? addr ?
    131 admsw*		at obio? addr ?
    132 #admflash*	at obio? addr ?
    133 
    134 wdc*		at extio? addr ? gpio_mask ? flags 0x1000
    135 atabus*		at wdc? channel ?
    136 wd*		at atabus? drive ?
    137 
    138 #USB
    139 options		USB_DEBUG
    140 options		UHUB_DEBUG
    141 ahci*		at obio? addr ?
    142 usb*		at ahci?
    143 uhub*		at usb?
    144 uhub*		at uhub? port ? configuration ? interface ?
    145 ugen*		at uhub? port ?
    146 umass*		at uhub? port ?
    147 
    148 options	PCI_NETBSD_CONFIGURE
    149 admpci*		at mainbus?
    150 pci*		at admpci?
    151 ath*		at pci? dev ? function ?
    152 
    153 options	MSGBUFSIZE=65536
    154 
    155 scsibus*	at scsi?
    156 sd*		at scsibus? target ? lun ?	# SCSI disk drives
    157 
    158 options	IPSELSRC
    159 #options	WDC_EXTIO_DEBUG
    160 #options	EXTIO_DEBUG
    161 #options	ATADEBUG
    162 
    163 include "dev/veriexec.config"
    164