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: LOONGSON,v 1.46 2022/08/07 02:52:25 simonb Exp $
#
# LOONGSON 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/evbmips/conf/std.loongson"

options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary

#ident 		"LOONGSON-$Revision: 1.46 $"

maxusers	16

# Standard system options
options 	DDB			# in-kernel debugger
#options 	DDB_ONPANIC=0		# don't enter debugger on panic
options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
#options 	KGDB			# remote debugger
options 	DIAGNOSTIC		# extra kernel debugging checks
#options 	DEBUG			# extra kernel debugging support
#options 	PMAP_FAULTINFO
#options 	LOCKDEBUG
makeoptions	DEBUG="-g"
makeoptions	COPY_SYMTAB=1		# size for embedded symbol table
options 	KTRACE			# system call tracing support
options 	MSGBUFSIZE=8192		# dmesg buffer size

## UVM options.
#options 	UVM_PAGE_TRKOWN
#options 	UVMHIST
#options 	UVMHIST_PRINT	# Loud!

#options 	SCSIVERBOSE		# human readable SCSI error messages
#options 	PCMCIAVERBOSE		# verbose PCMCIA configuration messages
#options 	PCMCIADEBUG
#options 	PCMCIACISDEBUG

#options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
#options 	RTC_OFFSET=-540		# JST-9
#options 	RTC_OFFSET=480		# PST8
					# In NO RTC_OFFSET , inherit RTC_OFFSET
					# from Windows CE.
options 	NTP			# network time protocol

#options 	WINCE_DEFAULT_SETTING	# Debugging use

# Note: SysV IPC parameters can be changed dynamically; see sysctl(8).
options 	SYSVMSG		# System V-like message queues
options 	SYSVSEM		# System V-like semaphores
options 	SYSVSHM		# System V-like memory sharing

#options 	SYSCALL_DEBUG		# for debug
#options 	HPCMIPS_L1CACHE_DISABLE	# disable L1 cache for debug
options 	USERCONF		# userconf(4) support
#options	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)
options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel

options 	INSECURE	# disable kernel security levels

# Filesystem options
file-system 	FFS		# fast filesystem with user and group quotas
file-system 	MFS		# memory-based filesystem
file-system 	NFS		# Sun NFS-compatible filesystem (client)
file-system	EXT2FS		# second extended file system (linux)
#file-system	LFS		# Log-based filesystem (still experimental)
file-system 	CD9660		# ISO 9660 + Rock Ridge file system
file-system 	MSDOSFS		# MS-DOS file system
#file-system 	FDESC		# /dev/fd
file-system 	KERNFS		# /kern (kernel informational filesystem)
file-system 	NULLFS		# loopback file system
#file-system 	OVERLAY		# overlay file system
file-system 	PROCFS		# /proc
#file-system 	UMAPFS		# NULLFS + uid and gid remapping
file-system 	UNION
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 	FFS_EI		# FFS Endian Independent support
#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
#options 	QUOTA		# legacy UFS quotas
#options 	QUOTA2		# new, in-filesystem UFS quotas
#options 	UFS_DIRHASH	# UFS Large Directory Hashing
#options 	UFS_EXTATTR	# Extended attribute support for UFS1
options 	WAPBL		# File system journaling support
#options 	DISKLABEL_EI	# disklabel Endian Independent support
options 	NFSSERVER	# Network File System server

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

# Networking options
#options 	GATEWAY		# IP packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
#options 	IPSEC		# IP security
#options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# Multicast routing support
#options 	PIM		# Protocol Independent Multicast

#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

# JIT compiler for bpfilter
#options	SLJIT
#options	BPFJIT

# NetBSD backwards compatibility
include 	"conf/compat_netbsd16.config"

#options 	NFS_BOOT_DHCP
options 	NFS_BOOT_BOOTP
#options 	NFS_BOOT_BOOTPARAM

# compile options
#makeoptions	DEFGP="-G 10"

config		netbsd		root on ? type ?

# WS console uses SUN or VT100 terminal emulation
options 	WSEMUL_VT100
options		WSDISPLAY_COMPAT_PCVT
options 	WSDISPLAY_COMPAT_SYSCONS
options		WSDISPLAY_COMPAT_USL
options		WSDISPLAY_SCROLLSUPPORT
options		WS_KERNEL_FG=WSCOL_GREEN
#options 	WSDISPLAY_DEFAULTSCREENS=4
options 	FONT_GALLANT12x22
options 	FONT_BOLD8x16
# compatibility to other console drivers
options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes

mainbus0	at root
cpu0		at mainbus0
bonito0		at mainbus0
pci0		at bonito0
sisfb0		at pci0 dev ? function ?
voyager0	at pci0 dev ? function ?	# SM502 on GDIUM
voyagerfb0	at voyager0			# framebuffer portion
pwmclock0	at voyager0			# clock and CPU freq scaling
iic*		at voyager0
strtc*		at iic? addr 0x68		# GDIUM's real time clock (M41T80/81 ?)
lmtemp*		at iic? addr 0x48		# GDIUM's temperature sensor
stvii*		at iic? addr 0x40		# GDIUM's onboard microcontroller
lynxfb0		at pci0 dev ? function ?	# SM712 on Yeeloong Notebook
#genfb0		at pci0 dev ? function ?
wsdisplay*	at wsemuldisplaydev?

ehci*		at pci0 dev ? function ?
#options 	EHCI_DEBUG
ohci*		at pci0 dev ? function ?
#options 	OHCI_DEBUG, USB_DEBUG, UHUB_DEBUG

# USB
usb*	at ehci?
usb*	at ohci?

include "dev/usb/usbdevices.config"
midi*		at midibus?

options		GDIUM_KEYBOARD_HACK	# support Fn key on Gdium

gcscpcib*	at pci? dev ? function ?	# AMD CS5535/CS5536 PCI-ISA w/
gpio*		at gcscpcib?			# timecounter, watchdog and GPIO
isa0		at gcscpcib?

pcib*		at pci?
isa0		at pcib?

pckbc0		at isa?				# PC keyboard controller
pckbd*		at pckbc?			# PC keyboard
pms*		at pckbc?			# PS/2 mouse for wsmouse
#options 	PMS_DISABLE_POWERHOOK	# Disable PS/2 reset on resume
options 	PMS_SYNAPTICS_TOUCHPAD	# Enable support for Synaptics Touchpads
options 	PMS_ELANTECH_TOUCHPAD	# Enable support for Elantech Touchpads
options 	PMS_ALPS_TOUCHPAD	# Enable support for Alps Touchpads
wskbd*		at pckbd? console ?
wsmouse*	at pms? mux 0

mcclock*	at isa? port 0x70		# mc146818-compatible
com0		at isa? port 0x2f8 irq 3	# Fuloong 2F only
com1		at isa? port 0x3f8 irq 4	# Fuloong 2F only (IR port)

gcscaudio*	at pci?
audio*		at audiobus?

spkr*		at audio?		# PC speaker (synthesized)

pciide* 	at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
viaide* 	at pci? dev ? function ?	# VIA/AMD/Nvidia IDE controllers
options  	WDC_NO_IDS #workaround CS5536+JMH330 interrupt disable bug

# ATA (IDE) bus support
atabus* at ata?
#options 	ATADEBUG

# IDE drives
# Flags are used only with controllers that support DMA operations
# and mode settings (e.g. some pciide controllers)
# The lowest order four bits (rightmost digit) of the flags define the PIO
# mode to use, the next set of four bits the DMA mode and the third set the
# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
# to use, and the last bit must be 1 for this setting to be used.
# For DMA and UDMA, 0xf (1111) means 'disable'.
# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
# (0xc=1100, 0xa=1010, 0xf=1111)
# 0x0000 means "use whatever the drive claims to support".
wd*	at atabus? drive ? flags 0x0000

# ATAPI bus support
#atapibus* at atapi?

# ATAPI devices
# flags have the same meaning as for IDE drives.
#cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
#sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
#st*	at atapibus? drive ? flags 0x0000	# ATAPI tape drives
#uk*	at atapibus? drive ? flags 0x0000	# ATAPI unknown

ral*	at pci? dev ? function ?	# RL2561S 802.11b/g
rtk*	at pci? dev ? function ?	# RTL8139 100/10 Ethernet
re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
# MII/PHY support
rgephy*	at mii? phy ?			# Realtek 8169S/8110S internal PHYs
rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
ukphy*	at mii? phy ?			# generic unknown PHYs

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

pseudo-device	loop			# network loopback
pseudo-device	ppp			# serial-line IP ports
pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
pseudo-device	pty			# pseudo-terminals
pseudo-device	bpfilter		# packet filter ports
pseudo-device	carp			# Common Address Redundancy Protocol
pseudo-device	npf			# NPF packet filter

pseudo-device	vnd			# virtual disk ick
#options 	VND_COMPRESSION		# compressed vnd(4)
#pseudo-device	ccd			# concatenated disks
pseudo-device	fss			# file system snapshot device
#pseudo-device	cgd			# cryptographic disks
pseudo-device	clockctl		# user control of clock subsystem

pseudo-device	wsmux			# mouse & keyboard multiplexor
pseudo-device	wsfont
#pseudo-device	md			# memory disk device (ramdisk)

#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

# for IPv6
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

## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4).
pseudo-device	vlan

## Simple inter-network traffic bridging
pseudo-device	bridge
#pseudo-device	vether			# Virtual Ethernet for bridge
pseudo-device	agr			# IEEE 802.3ad link aggregation
pseudo-device	ksyms			# /dev/ksyms
pseudo-device	drvctl			# driver control

include "dev/veriexec.config"