SENTRY5 revision 178171
1# 2# $FreeBSD: head/sys/mips/conf/SENTRY5 178171 2008-04-13 07:07:57Z imp $ 3# $P4: //depot/projects/mips2-jnpr/src/sys/mips/conf/SENTRY5#2 $ 4# 5# The Broadcom Sentry5 series of processors and boards is very commonly 6# used in COTS hardware including the Netgear WGT634U. 7# 8# Some tweaks are needed for use with this platform: 9# 10# * CFE firmware's ELF loader expects an ELF kernel which is linked so as 11# not to contain offsets in PT_LOAD which point behind the actual offset 12# of that PT header. FreeBSD normally links the first PT_LOAD header to 13# begin at offset 0. 14# 15# * Broadcom's support package for the internal bus, the Sonics 16# SiliconBackplane, needs to be integrated to detect and probe hardware 17# correctly. 18# 19# * The clock needs to be calibrated correctly, so that DELAY() may work. 20# One problem with this is that the low-level printf() routine calls DELAY(), 21# which currently causes divide-by-zero trap 22# 23# * The Broadcom CPUs have no FPU. Attempting to detect one by reading CP1's 24# status register causes an unhandled boot-time exception. An FPU emulator 25# will be necessary to support multi-user boot. 26# 27 28machine mips 29ident SENTRY5 30cpu CPU_MIPS4KC 31options CPU_NOFPU 32options ISA_MIPS32 33options CPU_SENTRY5 # XXX should this be a 34 # sub-cpu option? 35 36# XXX only siba should be hardwired for now; we will use 37# bus enumeration there 38files "../mips32/sentry5/files.sentry5" 39hints "SENTRY5.hints" 40 41# sentry5 normally ships with cfe firmware; use the console for now 42options CFE 43options CFE_CONSOLE 44options ALT_BREAK_TO_DEBUGGER 45 46# cfe loader expects kernel at 0x80001000 for mips32 w/o backwards 47# offsets in the linked elf image (see ldscript hack) 48# XXX can we conditionalize the linker stuff on options CFE? 49options KERNVIRTADDR=0x80001000 50 51#makeoptions ARCH_FLAGS=-march=mips32 52makeoptions MIPS_LITTLE_ENDIAN=defined 53makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 54makeoptions MODULES_OVERRIDE="" 55 56options DDB 57options KDB 58 59options SCHED_4BSD #4BSD scheduler 60options INET #InterNETworking 61options NFSCLIENT #Network Filesystem Client 62options NFS_ROOT #NFS usable as /, requires NFSCLIENT 63options PSEUDOFS #Pseudo-filesystem framework 64options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 65 66# Debugging for use in -current 67options INVARIANTS 68options INVARIANT_SUPPORT 69 70#options BUS_DEBUG 71#makeoptions BUS_DEBUG 72 73device siba # Sonics SiliconBackplane 74device pci # siba_pcib 75 76device bfe # XXX will build both pci and siba 77device miibus # attachments 78 79# pci devices 80# notyet: 81#device ath # in pci slot 82#device ath_hal # in pci slot 83 84device usb # USB Bus (required) 85device uhci # UHCI PCI->USB interface 86device ehci # EHCI PCI->USB interface (USB 2.0) 87 88# need to teach the code to ignore the bridge.... 89 90 91# XXX notyet; need to be auto probed children of siba_cc. 92#device uart 93#device uart_ns8250 94 95device genclock 96device loop 97device ether 98device md 99device mem 100