LINKITSMART7688 revision 1.2
11.2Srin# $NetBSD: LINKITSMART7688,v 1.2 2017/02/19 07:47:00 rin Exp $ 21.1Sryo# 31.1Sryo# MediaTek MT7688 41.1Sryo# 51.1Sryo 61.1Sryoinclude "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.1Sryo#options COMPAT_NOMID # NetBSD 0.8, 386BSD, and BSDI 621.1Sryo#options COMPAT_09 # NetBSD 0.9, 631.1Sryo#options COMPAT_10 # NetBSD 1.0, 641.1Sryo#options COMPAT_11 # NetBSD 1.1, 651.1Sryo#options COMPAT_12 # NetBSD 1.2 (and 386BSD and BSDI), 661.1Sryo#options COMPAT_13 # NetBSD 1.3 (and 386BSD and BSDI), 671.1Sryo#options COMPAT_14 # NetBSD 1.4, 681.1Sryo#options COMPAT_15 # NetBSD 1.5, 691.1Sryo#options COMPAT_16 # NetBSD 1.6, 701.1Sryo#options COMPAT_20 # NetBSD 2.0, 711.1Sryo#options COMPAT_30 # NetBSD 3.0, 721.1Sryo#options COMPAT_40 # NetBSD 4.0, 731.1Sryooptions COMPAT_50 # NetBSD 5.0, 741.1Sryooptions COMPAT_60 # NetBSD 6.0, and 751.1Sryooptions COMPAT_70 # NetBSD 7.0 binary compatibility. 761.1Sryo#options COMPAT_43 # 4.3BSD, 386BSD, and BSDI 771.1Sryo#options COMPAT_386BSD_MBRPART # recognize old partition ID 781.1Sryo#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 791.1Sryo 801.1Sryo#options COMPAT_SVR4 # binary compatibility with SVR4 811.1Sryo#options COMPAT_IBCS2 # binary compatibility with SCO and ISC 821.1Sryo#options COMPAT_LINUX # binary compatibility with Linux 831.1Sryo#options COMPAT_FREEBSD # binary compatibility with FreeBSD 841.1Sryo#options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 851.1Sryo 861.1Sryo# File systems 871.1Sryofile-system FFS # UFS 881.1Sryofile-system EXT2FS # second extended file system (linux) 891.1Sryo#file-system LFS # log-structured file system 901.1Sryofile-system MFS # memory file system 911.1Sryofile-system NFS # Network File System client 921.1Sryo#file-system CD9660 # ISO 9660 + Rock Ridge file system 931.1Sryofile-system MSDOSFS # MS-DOS file system 941.1Sryo#file-system FDESC # /dev/fd 951.1Sryofile-system KERNFS # /kern 961.1Sryo#file-system NULLFS # loopback file system 971.1Sryo#file-system PORTAL # portal filesystem (still experimental) 981.1Sryofile-system PROCFS # /proc 991.1Sryo#file-system UMAPFS # NULLFS + uid and gid remapping 1001.1Sryo#file-system UNION # union file system 1011.1Sryo#file-system SMBFS # experimental - CIFS; also needs nsmb (below) 1021.1Sryofile-system PTYFS # /dev/pts/N support 1031.1Sryofile-system TMPFS # Efficient memory file-system 1041.1Sryo 1051.1Sryo# File system options 1061.1Sryo#options QUOTA # UFS quotas 1071.2Srin#options DISKLABEL_EI # disklabel Endian Independent support 1081.1Sryo#options FFS_EI # FFS Endian Independant support 1091.1Sryo#options NFSSERVER # Network File System server 1101.1Sryooptions FFS_NO_SNAPSHOT # No FF snapshot support 1111.1Sryo#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and immutable) behave as system flags. 1121.1Sryo 1131.1Sryo# Networking options 1141.1Sryo#options GATEWAY # packet forwarding 1151.1Sryooptions INET # IP + ICMP + TCP + UDP 1161.1Sryooptions MROUTING # IP multicast routing 1171.1Sryooptions INET6 # IPV6 1181.1Sryo#options IPSEC # IP security 1191.1Sryo#options IPSEC_DEBUG # debug for IP security 1201.1Sryo#options PIM # Protocol Independent Multicast 1211.1Sryo#options NETATALK # AppleTalk networking protocols 1221.1Sryo#options PPP_BSDCOMP # BSD-Compress compression support for PPP 1231.1Sryo#options PPP_DEFLATE # Deflate compression support for PPP 1241.1Sryo#options PPP_FILTER # Active filter support for PPP (requires bpf) 1251.1Sryo#options IPFILTER_LOG # ipmon(8) log support 1261.1Sryo#options IPFILTER_LOOKUP # ippool(8) support 1271.1Sryo#options IPFILTER_DEFAULT_BLOCK # block all packets by default 1281.1Sryo#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 1291.1Sryo 1301.1Sryo#options ALTQ # Manipulate network interfaces' output queues 1311.1Sryo#options ALTQ_BLUE # Stochastic Fair Blue 1321.1Sryo#options ALTQ_CBQ # Class-Based Queueing 1331.1Sryo#options ALTQ_CDNR # Diffserv Traffic Conditioner 1341.1Sryo#options ALTQ_FIFOQ # First-In First-Out Queue 1351.1Sryo#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 1361.1Sryo#options ALTQ_HFSC # Hierarchical Fair Service Curve 1371.1Sryo#options ALTQ_LOCALQ # Local queueing discipline 1381.1Sryo#options ALTQ_PRIQ # Priority Queueing 1391.1Sryo#options ALTQ_RED # Random Early Detection 1401.1Sryo#options ALTQ_RIO # RED with IN/OUT 1411.1Sryo#options ALTQ_WFQ # Weighted Fair Queueing 1421.1Sryo 1431.1Sryo# JIT compiler for bpfilter 1441.1Sryo#options SLJIT 1451.1Sryo#options BPFJIT 1461.1Sryo 1471.1Sryo# These options enable verbose messages for several subsystems. 1481.1Sryo# Warning, these may compile large string tables into the kernel! 1491.1Sryo#options EISAVERBOSE # verbose EISA device autoconfig messages 1501.1Sryo#options PCIVERBOSE # verbose PCI device autoconfig messages 1511.1Sryo#options PCI_CONFIG_DUMP # verbosely dump PCI config space 1521.1Sryo#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 1531.1Sryo#options SCSIVERBOSE # human readable SCSI error messages 1541.1Sryooptions USBVERBOSE # verbose USB device autoconfig messages 1551.1Sryo 1561.1Sryo# Options for necessary to use MD 1571.1Sryo#options MEMORY_DISK_HOOKS 1581.1Sryo#options MEMORY_DISK_IS_ROOT # force root on memory disk 1591.1Sryo#options MEMORY_DISK_SERVER=0 # no userspace memory disk support 1601.1Sryo#options MEMORY_DISK_ROOT_SIZE=8192 # embed the FS into the system for now 1611.1Sryo#options MEMORY_RBFLAGS=0 # keep the kernel from forcing single user mode 1621.1Sryo 1631.1Sryo# Options for NFS root boot 1641.1Sryo#options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTSTATIC 1651.1Sryooptions NFS_BOOT_BOOTSTATIC 1661.1Sryooptions NFS_BOOTSTATIC_MYIP="\"192.168.0.1\"" 1671.1Sryooptions NFS_BOOTSTATIC_GWIP="\"192.168.0.1\"" 1681.1Sryooptions NFS_BOOTSTATIC_MASK="\"255.255.255.0\"" 1691.1Sryooptions NFS_BOOTSTATIC_SERVADDR="\"192.168.0.5\"" 1701.1Sryooptions NFS_BOOTSTATIC_SERVER="\"192.168.0.5:server:/path/to/root\"" 1711.1Sryo 1721.1Sryo# Need more mbufs for IPsec VPN 1731.1Sryo#options NMBCLUSTERS=4096 1741.1Sryo 1751.1Sryo# LinkItSmart7688 dev board root on embedded NFS mount disk 1761.1Sryo#config netbsd root on ? type ? 1771.1Sryo#config netbsd root on sd0a type ffs dumps none 1781.1Sryoconfig netbsd root on reth0 type nfs dumps none 1791.1Sryo 1801.1Sryomainbus0 at root 1811.1Sryocpu0 at mainbus? 1821.1Sryo 1831.1Sryo# UARTs 1841.1Sryocom0 at mainbus? addr 0x10000c00 1851.1Sryocom1 at mainbus? addr 0x10000d00 1861.1Sryocom2 at mainbus? addr 0x10000e00 1871.1Sryo 1881.1Sryo# Watchdog 1891.1Sryorwdog0 at mainbus? 1901.1Sryooptions RA_WDOG_DEFAULT_PERIOD=10 1911.1Sryo#options RA_WDOG_DEFAULT_MODE=WDOG_MODE_DISARMED 1921.1Sryooptions RA_WDOG_DEFAULT_MODE=WDOG_MODE_KTICKLE 1931.1Sryo 1941.1Sryo# Ethernet MACs 1951.1Sryoreth* at mainbus? 1961.1Sryooptions RALINK_ETH_MACADDR="00:00:aa:bb:cc:dd" # according to u-boot env 1971.1Sryo 1981.1Sryo# MII/PHY support 1991.1Sryoukphy* at mii? phy ? # generic unknown PHYs 2001.1Sryo 2011.1Sryo# PCI/PCIe support 2021.1Sryorpci0 at mainbus? 2031.1Sryopci* at rpci? 2041.1Sryo 2051.1Sryo# GPIO support 2061.1Sryorgpio0 at mainbus? 2071.1Sryogpio* at rgpio? 2081.1Sryo 2091.1Sryo# I2C support 2101.1Sryori2c0 at mainbus? 2111.1Sryoiic* at ri2c? 2121.1Sryo 2131.1Sryo# NOR Flash 2141.1Sryo#options NOR_VERBOSE 2151.1Sryo#cfi0 at mainbus0 2161.1Sryo#nor0 at cfi0 2171.1Sryo#flash0 at nor0 offset 0x00000000 size 0x00030000 # u-boot 2181.1Sryo#flash1 at nor0 offset 0x00030000 size 0x00010000 # u-boot env 2191.1Sryo#flash2 at nor0 offset 0x00040000 size 0x00010000 # factory 2201.1Sryo#flash3 at nor0 offset 0x00050000 size 0x007b0000 # firmware 2211.1Sryo 2221.1Sryo# USB support on rusb0 2231.1Sryoehci* at mainbus? 2241.1Sryousb* at ehci? 2251.1Sryo 2261.1Sryo# USB support on rusb0 2271.1Sryoohci* at mainbus? 2281.1Sryousb* at ohci? 2291.1Sryo 2301.1Sryo# USB device drivers 2311.1Sryoinclude "dev/usb/usbdevices.config" 2321.1Sryo 2331.1Sryomidi* at midibus? 2341.1Sryo 2351.1Sryo 2361.1Sryo# Pseudo-Devices 2371.1Sryo 2381.1Sryopseudo-device crypto # /dev/crypto device 2391.1Sryopseudo-device swcrypto # software crypto implementation 2401.1Sryo 2411.1Sryo# disk/mass storage pseudo-devices 2421.1Sryo#pseudo-device md # memory disk device (ramdisk) 2431.1Sryo#options MEMORY_DISK_HOOKS # enable root ramdisk 2441.1Sryo#options MEMORY_DISK_DYNAMIC # loaded via kernel module(7) 2451.1Sryo 2461.1Sryo#pseudo-device vnd # disk-like interface to files 2471.1Sryo#options VND_COMPRESSION # compressed vnd(4) 2481.1Sryo 2491.1Sryo# network pseudo-devices 2501.1Sryopseudo-device bpfilter # Berkeley packet filter 2511.1Sryo#pseudo-device carp # Common Address Redundancy Protocol 2521.1Sryopseudo-device ipfilter # IP filter (firewall) and NAT 2531.1Sryopseudo-device loop # network loopback 2541.1Sryo#pseudo-device mpls # MPLS pseudo-interface 2551.1Sryopseudo-device ppp # Point-to-Point Protocol 2561.1Sryopseudo-device pppoe # PPP over Ethernet (RFC 2516) 2571.1Sryo#options PPPOE_SERVER # Enable PPPoE server via link0 2581.1Sryopseudo-device sl # Serial Line IP 2591.1Sryopseudo-device strip # Starmode Radio IP (Metricom) 2601.1Sryopseudo-device irframetty # IrDA frame line discipline 2611.1Sryopseudo-device tap # virtual Ethernet 2621.1Sryopseudo-device tun # network tunneling over tty 2631.1Sryopseudo-device gre # generic L3 over IP tunnel 2641.1Sryopseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933) 2651.1Sryo#pseudo-device faith # IPv[46] TCP relay translation i/f 2661.1Sryopseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 2671.1Sryopseudo-device vlan # IEEE 802.1q encapsulation 2681.1Sryopseudo-device bridge # simple inter-network bridging 2691.1Sryo#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 2701.1Sryopseudo-device agr # IEEE 802.3ad link aggregation 2711.1Sryo#pseudo-device pf # PF packet filter 2721.1Sryo#pseudo-device pflog # PF log if 2731.1Sryo#pseudo-device pfsync # PF sync if 2741.1Sryo#pseudo-device npf # NPF packet filter 2751.1Sryo#pseudo-device etherip # Tunnel Ethernet over IP 2761.1Sryo# srt is EXPERIMENTAL 2771.1Sryo#pseudo-device srt # source-address-based routing 2781.1Sryo 2791.1Sryo# miscellaneous pseudo-devices 2801.1Sryopseudo-device pty # pseudo-terminals 2811.1Sryopseudo-device sequencer # MIDI sequencer 2821.1Sryopseudo-device clockctl # user control of clock subsystem 2831.1Sryopseudo-device ksyms # /dev/ksyms 2841.1Sryopseudo-device lockstat # lock profiling 2851.1Sryopseudo-device bcsp # BlueCore Serial Protocol 2861.1Sryopseudo-device btuart # Bluetooth HCI UART (H4) 2871.1Sryo#pseudo-device gpiosim 1 # GPIO simulator 288