LINKITSMART7688 revision 1.7
11.7Smaxv#	$NetBSD: LINKITSMART7688,v 1.7 2018/08/01 20:04:11 maxv 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_SVR4	# binary compatibility with SVR4
681.1Sryo#options 	COMPAT_LINUX	# 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.1Sryo#file-system	SMBFS		# experimental - CIFS; also needs nsmb (below)
861.1Sryofile-system	PTYFS		# /dev/pts/N support
871.1Sryofile-system	TMPFS		# Efficient memory file-system
881.1Sryo
891.1Sryo# File system options
901.1Sryo#options 	QUOTA		# UFS quotas
911.2Srin#options 	DISKLABEL_EI	# disklabel Endian Independent support
921.1Sryo#options 	FFS_EI		# FFS Endian Independant support
931.1Sryo#options 	NFSSERVER	# Network File System server
941.1Sryooptions 	FFS_NO_SNAPSHOT	# No FF snapshot support
951.1Sryo#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and immutable) behave as system flags.
961.1Sryo
971.1Sryo# Networking options
981.1Sryo#options 	GATEWAY		# packet forwarding
991.1Sryooptions 	INET		# IP + ICMP + TCP + UDP
1001.1Sryooptions 	MROUTING	# IP multicast routing
1011.1Sryooptions 	INET6		# IPV6
1021.1Sryo#options 	IPSEC		# IP security
1031.1Sryo#options 	IPSEC_DEBUG	# debug for IP security
1041.1Sryo#options 	PIM		# Protocol Independent Multicast
1051.1Sryo#options 	NETATALK	# AppleTalk networking protocols
1061.1Sryo#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1071.1Sryo#options 	PPP_DEFLATE	# Deflate compression support for PPP
1081.1Sryo#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1091.1Sryo#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1101.1Sryo
1111.1Sryo#options 	ALTQ		# Manipulate network interfaces' output queues
1121.1Sryo#options 	ALTQ_BLUE	# Stochastic Fair Blue
1131.1Sryo#options 	ALTQ_CBQ	# Class-Based Queueing
1141.1Sryo#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1151.1Sryo#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1161.1Sryo#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1171.1Sryo#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1181.1Sryo#options 	ALTQ_LOCALQ	# Local queueing discipline
1191.1Sryo#options 	ALTQ_PRIQ	# Priority Queueing
1201.1Sryo#options 	ALTQ_RED	# Random Early Detection
1211.1Sryo#options 	ALTQ_RIO	# RED with IN/OUT
1221.1Sryo#options 	ALTQ_WFQ	# Weighted Fair Queueing
1231.1Sryo
1241.1Sryo# JIT compiler for bpfilter
1251.1Sryo#options	SLJIT
1261.1Sryo#options	BPFJIT
1271.1Sryo
1281.1Sryo# These options enable verbose messages for several subsystems.
1291.1Sryo# Warning, these may compile large string tables into the kernel!
1301.1Sryo#options 	EISAVERBOSE	# verbose EISA device autoconfig messages
1311.1Sryo#options 	PCIVERBOSE	# verbose PCI device autoconfig messages
1321.1Sryo#options 	PCI_CONFIG_DUMP	# verbosely dump PCI config space
1331.1Sryo#options 	PCMCIAVERBOSE	# verbose PCMCIA configuration messages
1341.1Sryo#options 	SCSIVERBOSE	# human readable SCSI error messages
1351.1Sryooptions 	USBVERBOSE	# verbose USB device autoconfig messages
1361.1Sryo
1371.1Sryo# Options for necessary to use MD
1381.1Sryo#options 	MEMORY_DISK_HOOKS
1391.1Sryo#options 	MEMORY_DISK_IS_ROOT		# force root on memory disk
1401.1Sryo#options 	MEMORY_DISK_SERVER=0		# no userspace memory disk support
1411.1Sryo#options 	MEMORY_DISK_ROOT_SIZE=8192	# embed the FS into the system for now
1421.1Sryo#options 	MEMORY_RBFLAGS=0		# keep the kernel from forcing single user mode
1431.1Sryo
1441.1Sryo# Options for NFS root boot
1451.1Sryo#options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTSTATIC
1461.1Sryooptions 	NFS_BOOT_BOOTSTATIC
1471.1Sryooptions 	NFS_BOOTSTATIC_MYIP="\"192.168.0.1\""
1481.1Sryooptions 	NFS_BOOTSTATIC_GWIP="\"192.168.0.1\""
1491.1Sryooptions 	NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
1501.1Sryooptions 	NFS_BOOTSTATIC_SERVADDR="\"192.168.0.5\""
1511.1Sryooptions 	NFS_BOOTSTATIC_SERVER="\"192.168.0.5:server:/path/to/root\""
1521.1Sryo
1531.1Sryo# Need more mbufs for IPsec VPN
1541.1Sryo#options 	NMBCLUSTERS=4096
1551.1Sryo
1561.1Sryo# LinkItSmart7688 dev board root on embedded NFS mount disk
1571.1Sryo#config		netbsd root on ? type ?
1581.1Sryo#config		netbsd root on sd0a type ffs dumps none
1591.1Sryoconfig		netbsd root on reth0 type nfs dumps none
1601.1Sryo
1611.1Sryomainbus0	at root
1621.1Sryocpu0		at mainbus?
1631.1Sryo
1641.1Sryo# UARTs
1651.1Sryocom0		at mainbus? addr 0x10000c00
1661.1Sryocom1		at mainbus? addr 0x10000d00
1671.1Sryocom2		at mainbus? addr 0x10000e00
1681.1Sryo
1691.1Sryo# Watchdog
1701.1Sryorwdog0 		at mainbus?
1711.1Sryooptions 	RA_WDOG_DEFAULT_PERIOD=10
1721.1Sryo#options 	RA_WDOG_DEFAULT_MODE=WDOG_MODE_DISARMED
1731.1Sryooptions 	RA_WDOG_DEFAULT_MODE=WDOG_MODE_KTICKLE
1741.1Sryo
1751.1Sryo# Ethernet MACs
1761.1Sryoreth*		at mainbus?
1771.1Sryooptions 	RALINK_ETH_MACADDR="00:00:aa:bb:cc:dd"	# according to u-boot env
1781.1Sryo
1791.1Sryo# MII/PHY support
1801.1Sryoukphy*	at mii? phy ?			# generic unknown PHYs
1811.1Sryo
1821.1Sryo# PCI/PCIe support
1831.1Sryorpci0		at mainbus?
1841.1Sryopci*		at rpci?
1851.1Sryo
1861.1Sryo# GPIO support
1871.1Sryorgpio0		at mainbus?
1881.1Sryogpio*		at rgpio?
1891.1Sryo
1901.1Sryo# I2C support
1911.1Sryori2c0		at mainbus?
1921.1Sryoiic*		at ri2c?
1931.1Sryo
1941.1Sryo# NOR Flash
1951.1Sryo#options 	NOR_VERBOSE
1961.1Sryo#cfi0 		at mainbus0
1971.1Sryo#nor0		at cfi0
1981.1Sryo#flash0		at nor0 offset 0x00000000 size 0x00030000	# u-boot
1991.1Sryo#flash1		at nor0 offset 0x00030000 size 0x00010000	# u-boot env
2001.1Sryo#flash2		at nor0 offset 0x00040000 size 0x00010000	# factory
2011.1Sryo#flash3		at nor0 offset 0x00050000 size 0x007b0000	# firmware
2021.1Sryo
2031.1Sryo# USB support on rusb0
2041.1Sryoehci*		at mainbus?
2051.1Sryousb*		at ehci?
2061.1Sryo
2071.1Sryo# USB support on rusb0
2081.1Sryoohci*		at mainbus?
2091.1Sryousb*		at ohci?
2101.1Sryo
2111.1Sryo# USB device drivers
2121.1Sryoinclude "dev/usb/usbdevices.config"
2131.1Sryo
2141.1Sryomidi*		at midibus?
2151.1Sryo
2161.1Sryo
2171.1Sryo# Pseudo-Devices
2181.1Sryo
2191.1Sryopseudo-device	crypto			# /dev/crypto device
2201.1Sryopseudo-device	swcrypto		# software crypto implementation
2211.1Sryo
2221.1Sryo# disk/mass storage pseudo-devices
2231.1Sryo#pseudo-device	md			# memory disk device (ramdisk)
2241.1Sryo#options 	MEMORY_DISK_HOOKS	# enable root ramdisk
2251.1Sryo#options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
2261.1Sryo
2271.1Sryo#pseudo-device	vnd			# disk-like interface to files
2281.1Sryo#options 	VND_COMPRESSION		# compressed vnd(4)
2291.1Sryo
2301.1Sryo# network pseudo-devices
2311.1Sryopseudo-device	bpfilter		# Berkeley packet filter
2321.1Sryo#pseudo-device	carp			# Common Address Redundancy Protocol
2331.1Sryopseudo-device	loop			# network loopback
2341.1Sryo#pseudo-device	mpls			# MPLS pseudo-interface
2351.1Sryopseudo-device	ppp			# Point-to-Point Protocol
2361.1Sryopseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
2371.1Sryo#options	PPPOE_SERVER		# Enable PPPoE server via link0
2381.1Sryopseudo-device	sl			# Serial Line IP
2391.1Sryopseudo-device	strip			# Starmode Radio IP (Metricom)
2401.1Sryopseudo-device	irframetty		# IrDA frame line discipline
2411.1Sryopseudo-device	tap			# virtual Ethernet
2421.1Sryopseudo-device	tun			# network tunneling over tty
2431.1Sryopseudo-device	gre			# generic L3 over IP tunnel
2441.1Sryopseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
2451.1Sryo#pseudo-device	faith			# IPv[46] TCP relay translation i/f
2461.1Sryopseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2471.1Sryopseudo-device	vlan			# IEEE 802.1q encapsulation
2481.1Sryopseudo-device	bridge			# simple inter-network bridging
2491.1Sryo#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
2501.1Sryopseudo-device	agr			# IEEE 802.3ad link aggregation
2511.7Smaxvpseudo-device	npf			# NPF packet filter
2521.1Sryo#pseudo-device	etherip			# Tunnel Ethernet over IP
2531.1Sryo# srt is EXPERIMENTAL
2541.1Sryo#pseudo-device	srt			# source-address-based routing
2551.1Sryo
2561.1Sryo# miscellaneous pseudo-devices
2571.1Sryopseudo-device	pty			# pseudo-terminals
2581.1Sryopseudo-device	sequencer		# MIDI sequencer
2591.1Sryopseudo-device	clockctl		# user control of clock subsystem
2601.1Sryopseudo-device	ksyms			# /dev/ksyms
2611.1Sryopseudo-device	lockstat		# lock profiling
2621.1Sryopseudo-device	bcsp			# BlueCore Serial Protocol
2631.1Sryopseudo-device	btuart			# Bluetooth HCI UART (H4)
2641.1Sryo#pseudo-device	gpiosim		1	# GPIO simulator
265