#
# Custom kernel for Sheevaplug devices.
# based on http://cooltrainer.org 20110620
#
# $FreeBSD: src/sys/arm/conf/DOCKSTAR,v 1.1.2.3.2.1 2010/06/14 02:09:06 kensmith Exp $
#
ident DOCKSTAR-COOLTRAINER
###include "../mv/kirkwood/std.sheevaplug"
include "../mv/std.mv"
include "../mv/kirkwood/std.kirkwood"
files "../mv/kirkwood/files.sheevaplug"
options MII_ADDR_BASE=0
###
options SOC_MV_KIRKWOOD
makeoptions MODULES_OVERRIDE=""
#DockStar has 128MiB of memory, not 512 like the reference design
#(512 is defined in std.sheevaplug and should be commented out)
#options PHYSMEM_SIZE=0x8000000
options PHYSMEM_SIZE=0x20000000
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
makeoptions WERROR="-Werror"
options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking
options INET6 #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options NFSSERVER #Network Filesystem Server
options NFSCLIENT #Network Filesystem Client
options NFSLOCKD #Network Lock Manager
options NFS_ROOT #NFS usable as /, requires NFSCLIENT
#options BOOTP
#options BOOTP_NFSROOT
#options BOOTP_NFSV3
#options BOOTP_WIRED_TO=mge0
options GEOM_PART_BSD
options GEOM_PART_GPT
options GEOM_PART_MBR
options GEOM_LABEL # Provides labelization
options GEOM_ELI
options UFS_GJOURNAL
options GEOM_JOURNAL
options SOFTUPDATES # Enable FFS soft updates support
options MSDOSFS # MSDOS Filesystem
options PROCFS # Process filesystem (/proc)
options PSEUDOFS # Pseudo-filesystem framework
# GELI STUFF
options GELI_PROVIDER=\"da0s2\" ### this has to be the geli provider partition
options GELI_KEY_SIZE=256 ### this has to be the size of the used key file
options ROOTDEVNAME=\"ufs:/dev/da0s2.eli\" ### the name of the encrypted partition, once it is mounted, TODO: try bsdlabel on it
# Root fs on MD ramfs
#options MD_ROOT # MD is a potential root device
#options MD_ROOT_SIZE=4096 # 8MB ram disk
#makeoptions MFS_IMAGE=/root/ramfs/ramfs
#options ROOTDEVNAME=\"ufs:/dev/ufs/mdroot\"
#env SHEEVAPLUG_MOD.env
# Root fs on USB device
# options ROOTDEVNAME=\"ufs:/dev/ufs/kirkwoodroot\"
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options MUTEX_NOINLINE
options RWLOCK_NOINLINE
options NO_FFS_SNAPSHOT
options NO_SWAPPING
# Debugging
#options ALT_BREAK_TO_DEBUGGER
#options DDB
#options KDB
# Pseudo devices
device random
device pty
device loop
device firmware # firmware assist module (for wlan)
device crypto
# Serial ports
device uart
# Networking
device ether
device mge # Marvell Gigabit Ethernet controller
device mii
device e1000phy
device bpf
options HZ=1000
options DEVICE_POLLING
device vlan
device if_bridge
device cdce
device ipheth
device gif # Generic tunnel interface
device stf # six to four
# USB
options USB_DEBUG # enable debug msgs
device usb
device uhci
device ohci
device ehci
device umass
device scbus
device pass
device da
#USB modem/tether
device umodem
device ucom
device u3g
#USB Ethernet
device miibus
device aue # ADMtek USB Ethernet
device axe # ASIX Electronics USB Ethernet
device cdce # Generic USB over Ethernet
device cue # CATC USB Ethernet
device kue # Kawasaki LSI USB Ethernet
device rue # RealTek RTL8150 USB Ethernet
device udav # Davicom DM9601E USB
#OpenBSD Packet Filter
device pf
device pflog
device pfsync
#ALTQ (QoS)
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_PRIQ # Priority Queuing (PRIQ)
#options ALTQ_NOPCC # Required for SMP build
#Swap space (Yes, just in case)
device md # Memory "disks"
#USB audio
device sound
device snd_uaudio
#USB Wireless
# Wireless NIC cards
device wlan # 802.11 support
options IEEE80211_DEBUG # enable debug msgs
options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options IEEE80211_SUPPORT_MESH # enable 802.11s draft support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support
device wlan_tkip # 802.11 TKIP support
device wlan_xauth # 802.11 WPA support
#device wlan_acl_load # 802.11 support
device wlan_amrr # AMRR transmit rate control algorithm
#device wlan_scan_ap # 802.11 AP mode scanning
#device wlan_scan_sta # 802.11 STA mode scanning
device run # Ralink Technology RT2700U/RT2870/RT3070
device runfw # Firmware for run devices
device rum # Ralink Technology RT2501USB wireless NICs
device uath # Atheros AR5523 wireless NICs
device ural # Ralink Technology RT2500USB wireless NICs
device zyd # ZyDAS zb1211/zb1211b wireless NICs
device urtw # Realtek RTL8187B/L USB
device upgt # Conexant/Intersil PrismGT SoftMAC USB