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