changeset 208:ad5a3376d2a6

Enable switch drivers/framework
author ray@terran.dlink.ua
date Sat, 15 Oct 2011 02:24:52 +0300
parents 00fd990f4ff9
children b7812d60bbcd
files socs/Ralink/RT3050F/soc.mk socs/Ralink/RT3052F/soc.mk
diffstat 2 files changed, 133 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/socs/Ralink/RT3050F/soc.mk	Sat Oct 15 02:24:14 2011 +0300
+++ b/socs/Ralink/RT3050F/soc.mk	Sat Oct 15 02:24:52 2011 +0300
@@ -1,3 +1,131 @@
+
+#XXX testing
+LZMA=lzma
+KERNEL_PATH=/usr/obj/kernel
+
+TARGET=			mips
+TARGET_ARCH=		mipsel
+
+KERNCONF_MACHINE=	${TARGET} ${TARGET_ARCH}
+KERNCONF_IDENT?=	RT3050F
+KERNCONF_CPU=		CPU_MIPS4KC
+KERNCONF_OPTIONS+=	ISA_MIPS32
+KERNCONF_FILES+=	"../rt305x/files.rt305x"
+KERNCONF_HINTS=		"RT3050F.hints"
+
+
+KERNCONF_MAKEOPTIONS+=	"MIPS_LITTLE_ENDIAN=defined"
+
+
+# XXX Maybe project definitions, maybe only board
+
+#KERNCONF_MAKEOPTIONS+=	"INLINE_LIMIT=768"
+KERNCONF_MAKEOPTIONS+=	"KERNLOADADDR=0x80001000"
+KERNCONF_OPTIONS+=		MAXUSERS=3
+KERNCONF_OPTIONS+=		MAXFILES=512
+#KERNCONF_OPTIONS+=		NMBCLUSTERS=1024
+#KERNCONF_OPTIONS+=		NSFBUFS=256
+KERNCONF_OPTIONS+=		NSFBUFS=1024
+KERNCONF_OPTIONS+=		SHMALL=128
+KERNCONF_OPTIONS+=		MSGBUF_SIZE=65536
+
+# Options for making kernel smallest 
+KERNCONF_OPTIONS+=		NO_SYSCTL_DESCR
+KERNCONF_OPTIONS+=		NO_FFS_SNAPSHOT
+KERNCONF_OPTIONS+=		SCSI_NO_SENSE_STRINGS
+KERNCONF_OPTIONS+=		SCSI_NO_OP_STRINGS
+#KERNCONF_OPTIONS+=		MUTEX_NOINLINE
+#KERNCONF_OPTIONS+=		RWLOCK_NOINLINE
+#KERNCONF_OPTIONS+=		SX_NOINLINE
+#KERNCONF_OPTIONS+=		NO_SWAPPING
 
 
-.warning "Ralink/RT3050F SoC"
\ No newline at end of file
+# Don't build any modules yet.
+#KERNCONF_MAKEOPTIONS+=	MODULES_OVERRIDE="wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt random if_bridge bridgestp msdosfs md ipfw dummynet libalias geom/geom_label geom/geom_uncompress ufs usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib"
+
+# Debug definitions
+##KERNCONF_MAKEOPTIONS+=	"DEBUG=-g"
+KERNCONF_OPTIONS+=		DDB
+KERNCONF_OPTIONS+=		KDB
+KERNCONF_OPTIONS+=		PREEMPTION
+##KERNCONF_OPTIONS+=		KTRACE
+#KERNCONF_OPTIONS+=		LOCK_PROFILING
+#KERNCONF_OPTIONS+=		KTR
+
+# Board definitions
+KERNCONF_OPTIONS+=	INET
+KERNCONF_OPTIONS+= 	IPSTEALTH
+#KERNCONF_OPTIONS+= 	TMPFS
+KERNCONF_OPTIONS+= 	CD9660
+#KERNCONF_OPTIONS+= 	GEOM_LABEL
+KERNCONF_OPTIONS+= 	SCHED_ULE
+#KERNCONF_OPTIONS+= 	SCHED_4BSD
+#KERNCONF_OPTIONS+= 	NFSCLIENT
+#KERNCONF_OPTIONS+= 	NFS_ROOT
+KERNCONF_OPTIONS+= 	PSEUDOFS
+KERNCONF_OPTIONS+=	IPFIREWALL_DEFAULT_TO_ACCEPT
+KERNCONF_OPTIONS+= 	ZERO_COPY_SOCKETS
+KERNCONF_OPTIONS+=	_KPOSIX_PRIORITY_SCHEDULING
+KERNCONF_OPTIONS+=		ROOTDEVNAME=\\\"cd9660:/dev/map/rootfs.uncompress\\\"
+
+KERNCONF_NODEVICES+=	uart_ns8250
+KERNCONF_DEVICES+=	random
+KERNCONF_DEVICES+=	loop
+KERNCONF_DEVICES+=	pty
+KERNCONF_DEVICES+=	ether
+KERNCONF_DEVICES+=	bpf
+KERNCONF_DEVICES+=	vlan
+KERNCONF_DEVICES+=	uart
+KERNCONF_DEVICES+=	tun
+
+#KERNCONF_OPTIONS+=	IF_RT_DEBUG
+#KERNCONF_OPTIONS+=	IF_RT_PHY_SUPPORT
+#KERNCONF_OPTIONS+=	IF_RT_RING_DATA_COUNT=128
+KERNCONF_DEVICES+=	rt
+#KERNCONF_OPTIONS+=	RT2860_DEBUG
+KERNCONF_DEVICES+=	switch
+KERNCONF_DEVICES+=	switch_obio
+KERNCONF_DEVICES+=	switch_rt305x
+.if !defined(WITHOUT_WIRELESS)
+KERNCONF_DEVICES+=	rt2860
+.endif
+KERNCONF_DEVICES+=	wlan
+
+KERNCONF_DEVICES+=	gpio
+KERNCONF_DEVICES+=	gpioled
+
+KERNCONF_DEVICES+=	cfi
+KERNCONF_DEVICES+=	cfid
+
+KERNCONF_DEVICES+=	nvram2env
+KERNCONF_DEVICES+=	geom_map
+KERNCONF_DEVICES+=	geom_uncompress
+
+
+KERNCONF_OPTIONS+=	SCSI_DELAY=1000
+
+.if defined(WITH_IPSEC)
+KERNCONF_OPTIONS+=         IPSEC
+KERNCONF_OPTIONS+=         IPSEC_NAT_T
+
+KERNCONF_DEVICES+=		random
+KERNCONF_DEVICES+=		enc
+#KERNCONF_DEVICES+=		gif
+KERNCONF_DEVICES+=		ipsec
+KERNCONF_DEVICES+=		crypto
+#KERNCONF_DEVICES+=		cryptodev	# /dev/crypto for access to h/w
+
+##KERNCONF_DEVICES+=		rndtest		# FIPS 140-2 entropy tester
+.endif
+
+
+.if defined(WITH_USB)
+#KERNCONF_OPTIONS+=		USB_EHCI_BIG_ENDIAN_DESC # XXX
+#KERNCONF_OPTIONS+=		USB_DEBUG
+#KERNCONF_OPTIONS+=		USB_VERBOSE
+KERNCONF_DEVICES+=	usb			# USB Bus (required)
+KERNCONF_DEVICES+=	dotg			# DWC like USB OTG Controller driver
+.endif
+
+
+
--- a/socs/Ralink/RT3052F/soc.mk	Sat Oct 15 02:24:14 2011 +0300
+++ b/socs/Ralink/RT3052F/soc.mk	Sat Oct 15 02:24:52 2011 +0300
@@ -51,7 +51,7 @@
 ##KERNCONF_MAKEOPTIONS+=	"DEBUG=-g"
 KERNCONF_OPTIONS+=		DDB
 KERNCONF_OPTIONS+=		KDB
-##KERNCONF_OPTIONS+=		PREEMPTION
+KERNCONF_OPTIONS+=		PREEMPTION
 ##KERNCONF_OPTIONS+=		KTRACE
 #KERNCONF_OPTIONS+=		LOCK_PROFILING
 #KERNCONF_OPTIONS+=		KTR
@@ -87,6 +87,9 @@
 #KERNCONF_OPTIONS+=	IF_RT_RING_DATA_COUNT=128
 KERNCONF_DEVICES+=	rt
 #KERNCONF_OPTIONS+=	RT2860_DEBUG
+KERNCONF_DEVICES+=	switch
+KERNCONF_DEVICES+=	switch_obio
+KERNCONF_DEVICES+=	switch_rt305x
 .if !defined(WITHOUT_WIRELESS)
 KERNCONF_DEVICES+=	rt2860
 .endif