LINKITSMART7688 revision 1.6
11.6Smrg# $NetBSD: LINKITSMART7688,v 1.6 2017/09/14 07:58:40 mrg 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 IPFILTER_LOG # ipmon(8) log support 1101.1Sryo#options IPFILTER_LOOKUP # ippool(8) support 1111.1Sryo#options IPFILTER_DEFAULT_BLOCK # block all packets by default 1121.1Sryo#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 1131.1Sryo 1141.1Sryo#options ALTQ # Manipulate network interfaces' output queues 1151.1Sryo#options ALTQ_BLUE # Stochastic Fair Blue 1161.1Sryo#options ALTQ_CBQ # Class-Based Queueing 1171.1Sryo#options ALTQ_CDNR # Diffserv Traffic Conditioner 1181.1Sryo#options ALTQ_FIFOQ # First-In First-Out Queue 1191.1Sryo#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 1201.1Sryo#options ALTQ_HFSC # Hierarchical Fair Service Curve 1211.1Sryo#options ALTQ_LOCALQ # Local queueing discipline 1221.1Sryo#options ALTQ_PRIQ # Priority Queueing 1231.1Sryo#options ALTQ_RED # Random Early Detection 1241.1Sryo#options ALTQ_RIO # RED with IN/OUT 1251.1Sryo#options ALTQ_WFQ # Weighted Fair Queueing 1261.1Sryo 1271.1Sryo# JIT compiler for bpfilter 1281.1Sryo#options SLJIT 1291.1Sryo#options BPFJIT 1301.1Sryo 1311.1Sryo# These options enable verbose messages for several subsystems. 1321.1Sryo# Warning, these may compile large string tables into the kernel! 1331.1Sryo#options EISAVERBOSE # verbose EISA device autoconfig messages 1341.1Sryo#options PCIVERBOSE # verbose PCI device autoconfig messages 1351.1Sryo#options PCI_CONFIG_DUMP # verbosely dump PCI config space 1361.1Sryo#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 1371.1Sryo#options SCSIVERBOSE # human readable SCSI error messages 1381.1Sryooptions USBVERBOSE # verbose USB device autoconfig messages 1391.1Sryo 1401.1Sryo# Options for necessary to use MD 1411.1Sryo#options MEMORY_DISK_HOOKS 1421.1Sryo#options MEMORY_DISK_IS_ROOT # force root on memory disk 1431.1Sryo#options MEMORY_DISK_SERVER=0 # no userspace memory disk support 1441.1Sryo#options MEMORY_DISK_ROOT_SIZE=8192 # embed the FS into the system for now 1451.1Sryo#options MEMORY_RBFLAGS=0 # keep the kernel from forcing single user mode 1461.1Sryo 1471.1Sryo# Options for NFS root boot 1481.1Sryo#options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM,NFS_BOOT_BOOTSTATIC 1491.1Sryooptions NFS_BOOT_BOOTSTATIC 1501.1Sryooptions NFS_BOOTSTATIC_MYIP="\"192.168.0.1\"" 1511.1Sryooptions NFS_BOOTSTATIC_GWIP="\"192.168.0.1\"" 1521.1Sryooptions NFS_BOOTSTATIC_MASK="\"255.255.255.0\"" 1531.1Sryooptions NFS_BOOTSTATIC_SERVADDR="\"192.168.0.5\"" 1541.1Sryooptions NFS_BOOTSTATIC_SERVER="\"192.168.0.5:server:/path/to/root\"" 1551.1Sryo 1561.1Sryo# Need more mbufs for IPsec VPN 1571.1Sryo#options NMBCLUSTERS=4096 1581.1Sryo 1591.1Sryo# LinkItSmart7688 dev board root on embedded NFS mount disk 1601.1Sryo#config netbsd root on ? type ? 1611.1Sryo#config netbsd root on sd0a type ffs dumps none 1621.1Sryoconfig netbsd root on reth0 type nfs dumps none 1631.1Sryo 1641.1Sryomainbus0 at root 1651.1Sryocpu0 at mainbus? 1661.1Sryo 1671.1Sryo# UARTs 1681.1Sryocom0 at mainbus? addr 0x10000c00 1691.1Sryocom1 at mainbus? addr 0x10000d00 1701.1Sryocom2 at mainbus? addr 0x10000e00 1711.1Sryo 1721.1Sryo# Watchdog 1731.1Sryorwdog0 at mainbus? 1741.1Sryooptions RA_WDOG_DEFAULT_PERIOD=10 1751.1Sryo#options RA_WDOG_DEFAULT_MODE=WDOG_MODE_DISARMED 1761.1Sryooptions RA_WDOG_DEFAULT_MODE=WDOG_MODE_KTICKLE 1771.1Sryo 1781.1Sryo# Ethernet MACs 1791.1Sryoreth* at mainbus? 1801.1Sryooptions RALINK_ETH_MACADDR="00:00:aa:bb:cc:dd" # according to u-boot env 1811.1Sryo 1821.1Sryo# MII/PHY support 1831.1Sryoukphy* at mii? phy ? # generic unknown PHYs 1841.1Sryo 1851.1Sryo# PCI/PCIe support 1861.1Sryorpci0 at mainbus? 1871.1Sryopci* at rpci? 1881.1Sryo 1891.1Sryo# GPIO support 1901.1Sryorgpio0 at mainbus? 1911.1Sryogpio* at rgpio? 1921.1Sryo 1931.1Sryo# I2C support 1941.1Sryori2c0 at mainbus? 1951.1Sryoiic* at ri2c? 1961.1Sryo 1971.1Sryo# NOR Flash 1981.1Sryo#options NOR_VERBOSE 1991.1Sryo#cfi0 at mainbus0 2001.1Sryo#nor0 at cfi0 2011.1Sryo#flash0 at nor0 offset 0x00000000 size 0x00030000 # u-boot 2021.1Sryo#flash1 at nor0 offset 0x00030000 size 0x00010000 # u-boot env 2031.1Sryo#flash2 at nor0 offset 0x00040000 size 0x00010000 # factory 2041.1Sryo#flash3 at nor0 offset 0x00050000 size 0x007b0000 # firmware 2051.1Sryo 2061.1Sryo# USB support on rusb0 2071.1Sryoehci* at mainbus? 2081.1Sryousb* at ehci? 2091.1Sryo 2101.1Sryo# USB support on rusb0 2111.1Sryoohci* at mainbus? 2121.1Sryousb* at ohci? 2131.1Sryo 2141.1Sryo# USB device drivers 2151.1Sryoinclude "dev/usb/usbdevices.config" 2161.1Sryo 2171.1Sryomidi* at midibus? 2181.1Sryo 2191.1Sryo 2201.1Sryo# Pseudo-Devices 2211.1Sryo 2221.1Sryopseudo-device crypto # /dev/crypto device 2231.1Sryopseudo-device swcrypto # software crypto implementation 2241.1Sryo 2251.1Sryo# disk/mass storage pseudo-devices 2261.1Sryo#pseudo-device md # memory disk device (ramdisk) 2271.1Sryo#options MEMORY_DISK_HOOKS # enable root ramdisk 2281.1Sryo#options MEMORY_DISK_DYNAMIC # loaded via kernel module(7) 2291.1Sryo 2301.1Sryo#pseudo-device vnd # disk-like interface to files 2311.1Sryo#options VND_COMPRESSION # compressed vnd(4) 2321.1Sryo 2331.1Sryo# network pseudo-devices 2341.1Sryopseudo-device bpfilter # Berkeley packet filter 2351.1Sryo#pseudo-device carp # Common Address Redundancy Protocol 2361.1Sryopseudo-device ipfilter # IP filter (firewall) and NAT 2371.1Sryopseudo-device loop # network loopback 2381.1Sryo#pseudo-device mpls # MPLS pseudo-interface 2391.1Sryopseudo-device ppp # Point-to-Point Protocol 2401.1Sryopseudo-device pppoe # PPP over Ethernet (RFC 2516) 2411.1Sryo#options PPPOE_SERVER # Enable PPPoE server via link0 2421.1Sryopseudo-device sl # Serial Line IP 2431.1Sryopseudo-device strip # Starmode Radio IP (Metricom) 2441.1Sryopseudo-device irframetty # IrDA frame line discipline 2451.1Sryopseudo-device tap # virtual Ethernet 2461.1Sryopseudo-device tun # network tunneling over tty 2471.1Sryopseudo-device gre # generic L3 over IP tunnel 2481.1Sryopseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933) 2491.1Sryo#pseudo-device faith # IPv[46] TCP relay translation i/f 2501.1Sryopseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 2511.1Sryopseudo-device vlan # IEEE 802.1q encapsulation 2521.1Sryopseudo-device bridge # simple inter-network bridging 2531.1Sryo#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 2541.1Sryopseudo-device agr # IEEE 802.3ad link aggregation 2551.1Sryo#pseudo-device pf # PF packet filter 2561.1Sryo#pseudo-device pflog # PF log if 2571.1Sryo#pseudo-device pfsync # PF sync if 2581.1Sryo#pseudo-device npf # NPF packet filter 2591.1Sryo#pseudo-device etherip # Tunnel Ethernet over IP 2601.1Sryo# srt is EXPERIMENTAL 2611.1Sryo#pseudo-device srt # source-address-based routing 2621.1Sryo 2631.1Sryo# miscellaneous pseudo-devices 2641.1Sryopseudo-device pty # pseudo-terminals 2651.1Sryopseudo-device sequencer # MIDI sequencer 2661.1Sryopseudo-device clockctl # user control of clock subsystem 2671.1Sryopseudo-device ksyms # /dev/ksyms 2681.1Sryopseudo-device lockstat # lock profiling 2691.1Sryopseudo-device bcsp # BlueCore Serial Protocol 2701.1Sryopseudo-device btuart # Bluetooth HCI UART (H4) 2711.1Sryo#pseudo-device gpiosim 1 # GPIO simulator 272