11.19Schristos#	$NetBSD: LINKITSMART7688,v 1.19 2024/01/29 18:27:11 christos Exp $
21.1Sryo#
31.1Sryo# MediaTek MT7688
41.1Sryo#
51.1Sryo
61.6Smrginclude 	"arch/evbmips/conf/std.rasoc"
71.1Sryo
81.1Sryomakeoptions	COPY_SYMTAB=1		# size for embedded symbol table
91.1Sryo
101.1Sryooptions 	RALINK_CONSOLE_EARLY
111.1Sryooptions 	RALINK_CONADDR=RA_UART2_BASE
121.1Sryo
131.1Sryooptions 	MT7628
141.1Sryooptions 	CONSPEED=57600
151.1Sryo
161.1Sryomaxusers	8
171.1Sryo
181.1Sryo# Size reduction options
191.1Sryo#options 	VNODE_OP_NOINLINE
201.1Sryo#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
211.1Sryo#options 	SOSEND_NO_LOAN
221.1Sryo
231.1Sryo# Standard system options
241.1Sryo
251.1Sryooptions 	INSECURE	# disable kernel security levels - X needs this
261.1Sryo
271.1Sryooptions 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
281.1Sryooptions 	NTP		# NTP phase/frequency locked loop
291.1Sryo
301.1Sryooptions 	KTRACE		# system call tracing via ktrace(1)
311.1Sryo
321.1Sryo#options 	SYSVMSG		# System V-like message queues
331.1Sryo#options 	SYSVSEM		# System V-like semaphores
341.1Sryo#options 	SYSVSHM		# System V-like memory sharing
351.1Sryo#options 	SHMMAXPGS=2048	# 2048 pages is the default
361.1Sryo
371.1Sryo#options 	NMBCLUSTERS=1024
381.1Sryo#options 	MCLSHIFT=12 # 4k mbuf clusters (increases pool max's to 4k as well)
391.1Sryo
401.1Sryo#options 	USERCONF	# userconf(4) support
411.1Sryo#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
421.1Sryo
431.1Sryo# Diagnostic/debugging support options
441.1Sryooptions 	DIAGNOSTIC	# expensive kernel consistency checks
451.1Sryo#options 	LOCKDEBUG
461.1Sryo#options 	KSTACK_CHECK_MAGIC
471.1Sryo#options 	DEBUG		# expensive debugging checks/support
481.1Sryooptions 	DDB			# in-kernel debugger
491.1Sryooptions 	DDB_ONPANIC=1		# see also sysctl(7): `ddb.onpanic'
501.1Sryo#options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
511.1Sryo#options 	DDB_COMMANDONENTER="w/b 0x90000128 0 ; bt"	# disable watchdog & drop history on enter
521.1Sryo#options 	KGDB		# remote debugger
531.1Sryo#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x2f8,KGDB_DEVRATE=9600
541.1Sryo#makeoptions 	DEBUG="-g2"	# compile full symbol table
551.1Sryo#makeoptions 	COPTS="-Os"	# Optimise for space.
561.1Sryo
571.1Sryo#makeoptions PROF="-p"		# build profiling in 
581.1Sryo#options 	GPROF
591.1Sryo
601.1Sryo# Compatibility options
611.6Smrg
621.6Smrginclude         "conf/compat_netbsd50.config"
631.1Sryo#options 	COMPAT_386BSD_MBRPART # recognize old partition ID
641.1Sryo
651.6Smrg#options 	EXEC_ECOFF	# exec ECOFF binaries
661.6Smrg#options 	COMPAT_ULTRIX	# binary compatibility with Ultrix
671.1Sryo#options 	COMPAT_LINUX	# binary compatibility with Linux
681.16Snia#options 	COMPAT_OSSAUDIO	# binary compatibility with Linux
691.1Sryo
701.1Sryo# File systems
711.1Sryofile-system	FFS		# UFS
721.1Sryofile-system	EXT2FS		# second extended file system (linux)
731.1Sryo#file-system	LFS		# log-structured file system
741.1Sryofile-system	MFS		# memory file system
751.1Sryofile-system	NFS		# Network File System client
761.1Sryo#file-system	CD9660		# ISO 9660 + Rock Ridge file system
771.1Sryofile-system	MSDOSFS		# MS-DOS file system
781.1Sryo#file-system	FDESC		# /dev/fd
791.1Sryofile-system	KERNFS		# /kern
801.1Sryo#file-system	NULLFS		# loopback file system
811.1Sryo#file-system	PORTAL		# portal filesystem (still experimental)
821.1Sryofile-system	PROCFS		# /proc
831.1Sryo#file-system	UMAPFS		# NULLFS + uid and gid remapping
841.1Sryo#file-system	UNION		# union file system
851.1Sryofile-system	PTYFS		# /dev/pts/N support
861.1Sryofile-system	TMPFS		# Efficient memory file-system
871.1Sryo
881.1Sryo# File system options
891.18Ssimonb#options 	FFS_EI		# FFS Endian Independent support
901.18Ssimonboptions 	FFS_NO_SNAPSHOT	# No FFS snapshot support
911.18Ssimonb#options 	QUOTA		# legacy UFS quotas
921.18Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
931.18Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
941.2Srin#options 	DISKLABEL_EI	# disklabel Endian Independent support
951.1Sryo#options 	NFSSERVER	# Network File System server
961.1Sryo
971.10Ssevan# Alternate buffer queue strategies for better responsiveness under high
981.10Ssevan# disk I/O load.
991.10Ssevan#options 	BUFQ_READPRIO
1001.10Ssevanoptions 	BUFQ_PRIOCSCAN
1011.10Ssevan
1021.1Sryo# Networking options
1031.1Sryo#options 	GATEWAY		# packet forwarding
1041.1Sryooptions 	INET		# IP + ICMP + TCP + UDP
1051.1Sryooptions 	MROUTING	# IP multicast routing
1061.1Sryooptions 	INET6		# IPV6
1071.1Sryo#options 	IPSEC		# IP security
1081.1Sryo#options 	IPSEC_DEBUG	# debug for IP security
1091.1Sryo#options 	PIM		# Protocol Independent Multicast
1101.1Sryo#options 	NETATALK	# AppleTalk networking protocols
1111.1Sryo#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1121.1Sryo#options 	PPP_DEFLATE	# Deflate compression support for PPP
1131.1Sryo#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1141.1Sryo#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1151.1Sryo
1161.1Sryo#options 	ALTQ		# Manipulate network interfaces' output queues
1171.1Sryo#options 	ALTQ_BLUE	# Stochastic Fair Blue
1181.1Sryo#options 	ALTQ_CBQ	# Class-Based Queueing
1191.1Sryo#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1201.1Sryo#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1211.1Sryo#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1221.1Sryo#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1231.1Sryo#options 	ALTQ_LOCALQ	# Local queueing discipline
1241.1Sryo#options 	ALTQ_PRIQ	# Priority Queueing
1251.1Sryo#options 	ALTQ_RED	# Random Early Detection
1261.1Sryo#options 	ALTQ_RIO	# RED with IN/OUT
1271.1Sryo#options 	ALTQ_WFQ	# Weighted Fair Queueing
1281.1Sryo
1291.1Sryo# JIT compiler for bpfilter
1301.1Sryo#options	SLJIT
1311.1Sryo#options	BPFJIT
1321.1Sryo
1331.1Sryo# These options enable verbose messages for several subsystems.
1341.1Sryo# Warning, these may compile large string tables into the kernel!
1351.1Sryo#options 	EISAVERBOSE	# verbose EISA device autoconfig messages
1361.1Sryo#options 	PCIVERBOSE	# verbose PCI device autoconfig messages
1371.1Sryo#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1381.1Sryo#options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
1391.1Sryo#options 	SCSIVERBOSE	# human readable SCSI error messages
1401.1Sryooptions 	USBVERBOSE	# verbose USB device autoconfig messages
1411.1Sryo
1421.1Sryo# Options for necessary to use MD
1431.1Sryo#options 	MEMORY_DISK_HOOKS
1441.1Sryo#options 	MEMORY_DISK_IS_ROOT		# force root on memory disk
1451.1Sryo#options 	MEMORY_DISK_SERVER=0		# no userspace memory disk support
1461.1Sryo#options 	MEMORY_DISK_ROOT_SIZE=8192	# embed the FS into the system for now
1471.1Sryo#options 	MEMORY_RBFLAGS=0		# keep the kernel from forcing single user mode
1481.1Sryo
1491.1Sryo# Options for NFS root boot
1501.1Sryo#options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTSTATIC
1511.1Sryooptions 	NFS_BOOT_BOOTSTATIC
1521.1Sryooptions 	NFS_BOOTSTATIC_MYIP="\"192.168.0.1\""
1531.1Sryooptions 	NFS_BOOTSTATIC_GWIP="\"192.168.0.1\""
1541.1Sryooptions 	NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
1551.1Sryooptions 	NFS_BOOTSTATIC_SERVADDR="\"192.168.0.5\""
1561.1Sryooptions 	NFS_BOOTSTATIC_SERVER="\"192.168.0.5:server:/path/to/root\""
1571.1Sryo
1581.1Sryo# Need more mbufs for IPsec VPN
1591.1Sryo#options 	NMBCLUSTERS=4096
1601.1Sryo
1611.1Sryo# LinkItSmart7688 dev board root on embedded NFS mount disk
1621.1Sryo#config		netbsd root on ? type ?
1631.1Sryo#config		netbsd root on sd0a type ffs dumps none
1641.1Sryoconfig		netbsd root on reth0 type nfs dumps none
1651.1Sryo
1661.1Sryomainbus0	at root
1671.1Sryocpu0		at mainbus?
1681.1Sryo
1691.1Sryo# UARTs
1701.1Sryocom0		at mainbus? addr 0x10000c00
1711.1Sryocom1		at mainbus? addr 0x10000d00
1721.1Sryocom2		at mainbus? addr 0x10000e00
1731.1Sryo
1741.1Sryo# Watchdog
1751.1Sryorwdog0 		at mainbus?
1761.1Sryooptions 	RA_WDOG_DEFAULT_PERIOD=10
1771.1Sryo#options 	RA_WDOG_DEFAULT_MODE=WDOG_MODE_DISARMED
1781.1Sryooptions 	RA_WDOG_DEFAULT_MODE=WDOG_MODE_KTICKLE
1791.1Sryo
1801.1Sryo# Ethernet MACs
1811.1Sryoreth*		at mainbus?
1821.1Sryooptions 	RALINK_ETH_MACADDR="00:00:aa:bb:cc:dd"	# according to u-boot env
1831.1Sryo
1841.1Sryo# MII/PHY support
1851.11Srinrgephy*	at mii? phy ?			# Realtek 8169S/8110S/8211 PHYs
1861.11Srinrlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
1871.1Sryoukphy*	at mii? phy ?			# generic unknown PHYs
1881.1Sryo
1891.1Sryo# PCI/PCIe support
1901.1Sryorpci0		at mainbus?
1911.1Sryopci*		at rpci?
1921.1Sryo
1931.1Sryo# GPIO support
1941.1Sryorgpio0		at mainbus?
1951.1Sryogpio*		at rgpio?
1961.1Sryo
1971.1Sryo# I2C support
1981.1Sryori2c0		at mainbus?
1991.1Sryoiic*		at ri2c?
2001.1Sryo
2011.1Sryo# NOR Flash
2021.1Sryo#options 	NOR_VERBOSE
2031.1Sryo#cfi0 		at mainbus0
2041.1Sryo#nor0		at cfi0
2051.1Sryo#flash0		at nor0 offset 0x00000000 size 0x00030000	# u-boot
2061.1Sryo#flash1		at nor0 offset 0x00030000 size 0x00010000	# u-boot env
2071.1Sryo#flash2		at nor0 offset 0x00040000 size 0x00010000	# factory
2081.1Sryo#flash3		at nor0 offset 0x00050000 size 0x007b0000	# firmware
2091.1Sryo
2101.1Sryo# USB support on rusb0
2111.1Sryoehci*		at mainbus?
2121.1Sryousb*		at ehci?
2131.1Sryo
2141.1Sryo# USB support on rusb0
2151.1Sryoohci*		at mainbus?
2161.1Sryousb*		at ohci?
2171.1Sryo
2181.1Sryo# USB device drivers
2191.1Sryoinclude "dev/usb/usbdevices.config"
2201.1Sryo
2211.1Sryomidi*		at midibus?
2221.1Sryo
2231.1Sryo
2241.1Sryo# Pseudo-Devices
2251.1Sryo
2261.1Sryopseudo-device	crypto			# /dev/crypto device
2271.1Sryopseudo-device	swcrypto		# software crypto implementation
2281.1Sryo
2291.1Sryo# disk/mass storage pseudo-devices
2301.1Sryo#pseudo-device	md			# memory disk device (ramdisk)
2311.1Sryo#options 	MEMORY_DISK_HOOKS	# enable root ramdisk
2321.1Sryo#options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
2331.1Sryo
2341.1Sryo#pseudo-device	vnd			# disk-like interface to files
2351.1Sryo#options 	VND_COMPRESSION		# compressed vnd(4)
2361.1Sryo
2371.1Sryo# network pseudo-devices
2381.1Sryopseudo-device	bpfilter		# Berkeley packet filter
2391.1Sryo#pseudo-device	carp			# Common Address Redundancy Protocol
2401.1Sryopseudo-device	loop			# network loopback
2411.1Sryo#pseudo-device	mpls			# MPLS pseudo-interface
2421.1Sryopseudo-device	ppp			# Point-to-Point Protocol
2431.1Sryopseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
2441.1Sryo#options	PPPOE_SERVER		# Enable PPPoE server via link0
2451.1Sryopseudo-device	sl			# Serial Line IP
2461.1Sryopseudo-device	irframetty		# IrDA frame line discipline
2471.1Sryopseudo-device	tap			# virtual Ethernet
2481.1Sryopseudo-device	tun			# network tunneling over tty
2491.1Sryopseudo-device	gre			# generic L3 over IP tunnel
2501.1Sryopseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
2511.1Sryo#pseudo-device	faith			# IPv[46] TCP relay translation i/f
2521.1Sryopseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2531.1Sryopseudo-device	vlan			# IEEE 802.1q encapsulation
2541.1Sryopseudo-device	bridge			# simple inter-network bridging
2551.15Sroypseudo-device	vether			# Virtual Ethernet for bridge
2561.1Sryopseudo-device	agr			# IEEE 802.3ad link aggregation
2571.7Smaxvpseudo-device	npf			# NPF packet filter
2581.8Smaxv#pseudo-device	l2tp			# L2TPv3 interface
2591.1Sryo# srt is EXPERIMENTAL
2601.1Sryo#pseudo-device	srt			# source-address-based routing
2611.1Sryo
2621.1Sryo# miscellaneous pseudo-devices
2631.1Sryopseudo-device	pty			# pseudo-terminals
2641.1Sryopseudo-device	sequencer		# MIDI sequencer
2651.1Sryopseudo-device	clockctl		# user control of clock subsystem
2661.1Sryopseudo-device	ksyms			# /dev/ksyms
2671.1Sryopseudo-device	lockstat		# lock profiling
2681.1Sryopseudo-device	bcsp			# BlueCore Serial Protocol
2691.1Sryopseudo-device	btuart			# Bluetooth HCI UART (H4)
2701.1Sryo#pseudo-device	gpiosim		1	# GPIO simulator
271