Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# $NetBSD: GENERIC,v 1.137 2019/04/26 21:40:31 sevan Exp $
#
# GENERIC machine description file
# 
# This machine description file is used to generate the default NetBSD
# kernel.  The generic kernel does not include all options, subsystems
# and device drivers, but should be useful for most applications.
#
# The machine description file can be customised for your specific
# machine to reduce the kernel size and improve its performance.
#
# For further information on compiling NetBSD kernels, see the config(8)
# man page.
#
# For further information on hardware support for this architecture, see
# the intro(4) man page.  For further information about kernel options
# for this architecture, see the options(4) man page.  For an explanation
# of each device driver in this file see the section 4 man page for the
# device.

include 	"arch/newsmips/conf/std.newsmips"

options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary

#ident 		"GENERIC-$Revision: 1.137 $"

maxusers	16

options 	news3400		# NWS-3400/3700 support
options 	news4000		# NWS-4000 support
options 	news5000		# NWS-5000 support
options 	MIPS1			# R2000/R3000 support
options 	MIPS3			# R4000 support
options 	CPU_SINGLE		# no I/O processor

# Standard system options
options 	KTRACE			# system call tracing support
options 	SYSVMSG			# System V message queues
options 	SYSVSEM			# System V semaphores
options 	SYSVSHM			# System V shared memory
options 	NTP			# network time protocol
options 	USERCONF		# userconf(4) support
#options 	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)
options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel

# Alternate buffer queue strategies for better responsiveness under high
# disk I/O load.
#options 	BUFQ_READPRIO
options 	BUFQ_PRIOCSCAN

# Debugging options
options 	DDB			# kernel dynamic debugger
#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
#options 	DEBUG			# extra kernel debugging support
#options 	DIAGNOSTIC		# extra kernel sanity checking
options 	SCSIVERBOSE		# Verbose SCSI errors

# Compatibility options
include 	"conf/compat_netbsd10.config"
#options 	EXEC_ECOFF	# exec ecoff binaries

# Filesystem options
file-system	FFS		# Berkeley Fast Filesystem
file-system	NFS		# Sun NFS-compatible filesystem client
file-system	KERNFS		# kernel data-structure filesystem
file-system	NULLFS		# NULL layered filesystem
file-system 	OVERLAY		# overlay file system
file-system	MFS		# memory-based filesystem
file-system	FDESC		# user file descriptor filesystem
file-system	UMAPFS		# uid/gid remapping filesystem
file-system	LFS		# Log-based filesystem (still experimental)
file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
file-system	PROCFS		# /proc
file-system	CD9660		# ISO 9660 + Rock Ridge file system
file-system	UNION		# union file system
file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
file-system	PTYFS		# /dev/pts/N support
file-system	TMPFS		# Efficient memory file-system
#file-system	UDF		# experimental - OSTA UDF CD/DVD file-system

options 	NFSSERVER	# Sun NFS-compatible filesystem server
options 	QUOTA		# legacy UFS quotas
options 	QUOTA2		# new, in-filesystem UFS quotas
#options 	FFS_EI		# FFS Endian Independent support
options 	WAPBL		# File system journaling support
#options	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
options 	UFS_EXTATTR	# Extended attribute support for UFS1

# Networking options
options 	INET		# Internet protocols
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	GATEWAY		# IP packet forwarding
#options 	MROUTING	# packet forwarding of multicast packets
#options 	PIM		# Protocol Independent Multicast
options 	NETATALK	# AppleTalk (over Ethernet) protocol
options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
options 	PPP_DEFLATE	# Deflate compression support for PPP
options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG

#options 	ALTQ		# Manipulate network interfaces' output queues
#options 	ALTQ_BLUE	# Stochastic Fair Blue
#options 	ALTQ_CBQ	# Class-Based Queueing
#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
#options 	ALTQ_FIFOQ	# First-In First-Out Queue
#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
#options 	ALTQ_LOCALQ	# Local queueing discipline
#options 	ALTQ_PRIQ	# Priority Queueing
#options 	ALTQ_RED	# Random Early Detection
#options 	ALTQ_RIO	# RED with IN/OUT
#options 	ALTQ_WFQ	# Weighted Fair Queueing

#options 	NFS_BOOT_BOOTPARAM
options 	NFS_BOOT_DHCP

# JIT compiler for bpfilter
#options	SLJIT
#options	BPFJIT

# wscons options
options 	WSEMUL_VT100		# VT100 / VT220 emulation
options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
options 	FONT_GALLANT12x22

config	netbsd	root on ? type ?

mainbus0 at root

cpu0	at mainbus0
hb0	at mainbus0			# Hyper-bus on news3400
ap0	at mainbus0			# APbus on news5000

mkclock0 at hb0 addr 0xbff40000		# MK48T02 realtime clock
mkclock0 at ap?				#

le0	at hb0 addr 0xbff80000 level 1	# on-board LANCE Ethernet
le1	at hb0 addr 0xb8c30000 level 0	# NWB-235A LANCE Ethernet

sn*	at ap?				# on-board/NWB-5851 SONIC Ethernet
tlp*	at ap?				# NWB-5852A tulip Ethernet

kb0	at hb0 addr 0xbfd00000 level 2	# keyboard
kb0	at ap?				#
wskbd0	at kb? console ?

ms0	at hb0 addr 0xbfd00004 level 2	# mouse
ms0	at ap?				#
wsmouse0 at ms?

zsc0	at hb0 addr 0xbfec0000 level 1 flags 0x0	# on-board serial
zsc1	at hb0 addr 0xb8c40100 level 1 flags 0x1	# NWB-231A 4ch serial
zsc2	at hb0 addr 0xb8c40104 level 1 flags 0x1	#
zsc0	at ap?
options 	NEWS4000_ZS_AP_POLLING	# XXX: can't get interrupt on news4000

zstty0	at zsc0 channel 0		# tty00
zstty1	at zsc0 channel 1		# tty01
zstty2	at zsc1 channel 0		# tty02
zstty3	at zsc1 channel 1		# tty03
zstty4	at zsc2 channel 0		# tty04
zstty5	at zsc2 channel 1		# tty05

fb0	at hb0 addr 0x88000000		# NWB-253 frame buffer
wsdisplay0 at fb? console ?

xafb*	at ap?				# "XA" frame buffer
wsdisplay0 at xafb? console ?

sc0	at hb0 addr 0xbfe00100 level 0	# on-board CXD1185 SCSI controller
scsibus* at sc0

dmac*	at ap?				# dmac3
spifi*	at ap?				# SPIFI SCSI
scsibus* at spifi?

sd*	at scsibus? target ? lun ?	# SCSI disks
st*	at scsibus? target ? lun ?	# SCSI tapes
cd*	at scsibus? target ? lun ?	# SCSI CD-ROMs
ch*	at scsibus? target ? lun ?	# SCSI changer devices

#
# accept filters
pseudo-device   accf_data		# "dataready" accept filter
pseudo-device   accf_http		# "httpready" accept filter

pseudo-device	loop			# loopback interface; required
pseudo-device	pty			# pseudo-terminals
pseudo-device	sl			# SLIP interfaces
pseudo-device	ppp			# PPP interfaces
pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
pseudo-device	tun			# Network "tunnel" device
pseudo-device	tap			# virtual Ethernet
#pseudo-device	gre			# generic L3 over IP tunnel
pseudo-device	bpfilter		# Berkeley Packet Filter
pseudo-device	carp			# Common Address Redundancy Protocol
pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device	faith			# IPv[46] tcp relay translation i/f
pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
pseudo-device	vlan			# IEEE 802.1q encapsulation
pseudo-device	bridge			# simple inter-network bridging
#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
pseudo-device	agr			# IEEE 802.3ad link aggregation
pseudo-device	vnd			# disk-like interface to files
#options 	VND_COMPRESSION		# compressed vnd(4)
pseudo-device	ccd			# concatenated and striped disks
#pseudo-device	raid			# RAIDframe disk driver
#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
# Options to enable various other RAIDframe RAID types.
#options 	RF_INCLUDE_EVENODD=1
#options 	RF_INCLUDE_RAID5_RS=1
#options 	RF_INCLUDE_PARITYLOGGING=1
#options 	RF_INCLUDE_CHAINDECLUSTER=1
#options 	RF_INCLUDE_INTERDECLUSTER=1
#options 	RF_INCLUDE_PARITY_DECLUSTERING=1
#options 	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
pseudo-device	fss			# file system snapshot device
#pseudo-device	strip			# radio clock
#pseudo-device	npf			# NPF packet filter
pseudo-device	clockctl		# user control of clock subsystem
pseudo-device	ksyms			# /dev/ksyms
pseudo-device	putter			# for puffs and pud

include "dev/veriexec.config"