Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc Support Plathome's OpenBlockS600.
details: https://anonhg.NetBSD.org/src/rev/93c5671e8d90
branches: trunk
changeset: 753149:93c5671e8d90
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Thu Mar 18 14:15:38 2010 +0000
description:
Support Plathome's OpenBlockS600.
diffstat:
sys/arch/evbppc/conf/Makefile.obs405.inc | 39 ++-
sys/arch/evbppc/conf/OPENBLOCKS266 | 6 +-
sys/arch/evbppc/conf/OPENBLOCKS600 | 212 ++++++++++++++
sys/arch/evbppc/conf/files.obs266 | 21 +
sys/arch/evbppc/conf/files.obs600 | 10 +
sys/arch/evbppc/conf/std.obs200 | 26 +-
sys/arch/evbppc/conf/std.obs266 | 11 +
sys/arch/evbppc/conf/std.obs405 | 5 +-
sys/arch/evbppc/conf/std.obs600 | 12 +
sys/arch/evbppc/include/obs405.h | 32 +--
sys/arch/evbppc/include/obs600.h | 44 +++
sys/arch/evbppc/obs405/consinit.c | 51 ---
sys/arch/evbppc/obs405/obs200_machdep.c | 30 +-
sys/arch/evbppc/obs405/obs266_machdep.c | 28 +-
sys/arch/evbppc/obs405/obs600_autoconf.c | 85 +++++
sys/arch/evbppc/obs405/obs600_locore.S | 134 +++++++++
sys/arch/evbppc/obs405/obs600_machdep.c | 440 +++++++++++++++++++++++++++++++
17 files changed, 1061 insertions(+), 125 deletions(-)
diffs (truncated from 1390 to 300 lines):
diff -r f8a5ae8886bb -r 93c5671e8d90 sys/arch/evbppc/conf/Makefile.obs405.inc
--- a/sys/arch/evbppc/conf/Makefile.obs405.inc Thu Mar 18 13:58:38 2010 +0000
+++ b/sys/arch/evbppc/conf/Makefile.obs405.inc Thu Mar 18 14:15:38 2010 +0000
@@ -1,9 +1,28 @@
-# $NetBSD: Makefile.obs405.inc,v 1.4 2009/05/18 05:17:28 mrg Exp $
+# $NetBSD: Makefile.obs405.inc,v 1.5 2010/03/18 14:15:38 kiyohara Exp $
+
+CFLAGS+=-mcpu=405
+AFLAGS+=-mcpu=405
+
+
+.if ${PRDCTTYPE} == "obs200"
MKIMG?= ${HOST_SH} ${THISPPC}/compile/walnut-mkimg.sh
-CFLAGS+=-mcpu=405
-AFLAGS+=-mcpu=405
+TEXTADDR?= 450000
+
+SYSTEM_FIRST_OBJ= obs200_locore.o
+SYSTEM_FIRST_SFILE= ${THISPPC}/obs405/obs200_locore.S
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${MKIMG} netbsd netbsd.img ; \
+ OBJDUMP=${OBJDUMP}; OBJCOPY=${OBJCOPY}; export OBJDUMP OBJCOPY; \
+ ${MKIMG} $@ $@.img
+
+
+.elif ${PRDCTTYPE} == "obs266"
+
+MKIMG?= ${HOST_SH} ${THISPPC}/compile/walnut-mkimg.sh
+
TEXTADDR?= 25000
SYSTEM_FIRST_OBJ= locore.o
@@ -13,3 +32,17 @@
echo ${MKIMG} netbsd netbsd.img ; \
OBJDUMP=${OBJDUMP}; OBJCOPY=${OBJCOPY}; export OBJDUMP OBJCOPY; \
${MKIMG} $@ $@.img
+
+
+.elif ${PRDCTTYPE} == "obs600"
+
+TEXTADDR?= 25000
+
+SYSTEM_FIRST_OBJ= obs600_locore.o
+SYSTEM_FIRST_SFILE= ${THISPPC}/obs405/obs600_locore.S
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${OBJCOPY} -S -O binary $@ $@.bin; \
+ ${OBJCOPY} -S -O binary $@ $@.bin;
+
+.endif
diff -r f8a5ae8886bb -r 93c5671e8d90 sys/arch/evbppc/conf/OPENBLOCKS266
--- a/sys/arch/evbppc/conf/OPENBLOCKS266 Thu Mar 18 13:58:38 2010 +0000
+++ b/sys/arch/evbppc/conf/OPENBLOCKS266 Thu Mar 18 14:15:38 2010 +0000
@@ -1,13 +1,13 @@
-# $NetBSD: OPENBLOCKS266,v 1.47 2010/03/10 17:25:21 kiyohara Exp $
+# $NetBSD: OPENBLOCKS266,v 1.48 2010/03/18 14:15:38 kiyohara Exp $
#
# GENERIC -- everything that's currently supported
#
-include "arch/evbppc/conf/std.obs405"
+include "arch/evbppc/conf/std.obs266"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "OPENBLOCKS266-$Revision: 1.47 $"
+#ident "OPENBLOCKS266-$Revision: 1.48 $"
maxusers 32
diff -r f8a5ae8886bb -r 93c5671e8d90 sys/arch/evbppc/conf/OPENBLOCKS600
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/OPENBLOCKS600 Thu Mar 18 14:15:38 2010 +0000
@@ -0,0 +1,212 @@
+# $NetBSD: OPENBLOCKS600,v 1.1 2010/03/18 14:15:38 kiyohara Exp $
+#
+# GENERIC -- everything that's currently supported
+#
+
+include "arch/evbppc/conf/std.obs600"
+
+#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
+
+#ident "OPENBLOCKS600-$Revision: 1.1 $"
+
+maxusers 32
+
+
+#
+# Standard system options
+#
+
+#options INSECURE # disable kernel security levels
+#options NTP # NTP phase/frequency locked loop
+#options KTRACE # system call tracing via ktrace(1)
+
+options SYSVMSG # System V message queues
+options SYSVSEM # System V semaphores
+options SYSVSHM # System V shared memory
+options P1003_1B_SEMAPHORE # p1003.1b semaphore support
+
+
+#options USERCONF # userconf(4) support
+#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
+
+#options UVMHIST
+#options UVMHIST_PRINT
+
+
+#
+# Diagnostic/debugging support options
+#
+
+#options DIAGNOSTIC # cheap kernel consistency checks
+options DEBUG # expensive debugging checks/support
+#options KMEMSTATS # kernel memory statistics (vmstat -m)
+options DDB # in-kernel debugger
+options DDB_HISTORY_SIZE=512 # enable history editing in DDB
+options TRAP_PANICWAIT
+options SYMTAB_SPACE=410000 # size for embedded symbol table
+
+makeoptions DEBUG="-g" # compile full symbol table
+
+
+#
+# Compatibility options
+#
+
+#options COMPAT_09 # NetBSD 0.9,
+#options COMPAT_10 # NetBSD 1.0,
+#options COMPAT_11 # NetBSD 1.1,
+#options COMPAT_12 # NetBSD 1.2,
+options COMPAT_13 # NetBSD 1.3,
+options COMPAT_14 # NetBSD 1.4,
+options COMPAT_15 # NetBSD 1.5,
+options COMPAT_16 # NetBSD 1.6,
+options COMPAT_20 # NetBSD 2.0,
+options COMPAT_30 # NetBSD 3.0,
+options COMPAT_40 # NetBSD 4.0,
+options COMPAT_50 # NetBSD 5.0 compatibility.
+options COMPAT_43 # and 4.3BSD
+#options COMPAT_386BSD_MBRPART # recognize old partition ID
+options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
+
+
+#
+# File systems
+#
+
+file-system FFS # UFS
+file-system EXT2FS # second extended file system (linux)
+file-system LFS # log-structured file system
+file-system MFS # memory file system
+file-system NFS # Network File System client
+file-system CD9660 # ISO 9660 + Rock Ridge file system
+file-system MSDOSFS # MS-DOS file system
+file-system FDESC # /dev/fd
+file-system KERNFS # /kern
+file-system NULLFS # loopback file system
+file-system OVERLAY # overlay file system
+file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
+file-system PROCFS # /proc
+file-system UMAPFS # NULLFS + uid and gid remapping
+file-system UNION # union file system
+file-system PTYFS # /dev/pts/N support
+file-system TMPFS # Efficient memory file-system
+#file-system NTFS # Windows NT file system (experimental)
+
+
+#
+# File system options
+#
+
+options QUOTA # UFS quotas
+options FFS_EI # FFS Endian Independant support
+options WAPBL # File system journaling support - Experimental
+options NFSSERVER # Network File System server
+#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+ # immutable) behave as system flags.
+options NFS_BOOT_DHCP # Support DHCP NFS root
+
+
+#
+# Networking options
+#
+
+options GATEWAY # packet forwarding
+options INET # IP + ICMP + TCP + UDP
+options INET6 # IPv6
+#options IPSEC # IP security
+#options IPSEC_ESP # IP security (encryption part; define w/IPSEC)
+#options IPSEC_NAT_T # IPsec NAT traversal (NAT-T)
+#options IPSEC_DEBUG # debug for IP security
+#options MROUTING # IP multicast routing
+#options PIM # Protocol Independent Multicast
+#options DIRECTED_BROADCAST # allow broadcasts through routers
+options ISO,TPIP # OSI
+#options EON # OSI tunneling over IP
+#options NETATALK # AppleTalk networking protocols
+options PPP_BSDCOMP # BSD-Compress compression support for PPP
+options PPP_DEFLATE # Deflate compression support for PPP
+options PPP_FILTER # Active filter support for PPP (requires bpf)
+options PFIL_HOOKS # pfil(9) packet filter hooks
+options IPFILTER_LOG # ipmon(8) log support
+options IPFILTER_LOOKUP # ippool(8) support
+#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
+#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
+
+
+#
+# Kernel root file system and dump configuration.
+#
+
+config netbsd root on ? type ?
+
+
+#
+# Device configuration
+#
+
+plb0 at root # Processor Local Bus
+cpu0 at plb? # CPU
+ecc0 at plb? irq 17 # On-chip ECC controller
+
+# On-chip Peripheral Bus support
+opb* at plb? # On-chip Peripheral Bus
+wdog* at opb? # Watchdog timer
+com* at opb? addr ? irq ? # UARTs
+emac* at opb? addr ? irq ? # Ethernet Media Access Controller
+options EMAC_EVENT_COUNTERS
+options EMAC_RGMII_PHY
+gpiic* at opb? addr ? irq ? # On-chip IIC controller
+iic* at gpiic? # I2C bus
+m41trtc0 at iic? addr 0x68 # Dallas DS1340C Real Time Clock
+opbgpio0 at opb? addr ? irq ? # On-chip GPIO controller
+gpio* at opbgpio? # GPIO framework
+
+# MII/PHY support
+brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs
+options MIIVERBOSE # verbose PHY autoconfig messages
+
+
+#
+# Pseudo devices
+#
+
+# disk/mass storage pseudo-devices
+#pseudo-device ccd 4 # concatenated/striped disk devices
+#pseudo-device cgd 4 # cryptographic disk devices
+#pseudo-device raid 4 # RAIDframe disk driver
+#options RAID_AUTOCONFIG # auto-configuration of RAID components
+#pseudo-device fss 4 # file system snapshot device
+#pseudo-device md 1 # memory disk device
+#pseudo-device vnd # disk-like interface to files
+
+# network pseudo-devices
+pseudo-device loop # network loopback
+pseudo-device bpfilter # packet filter
+pseudo-device ipfilter # IP filter (firewall) and NAT
+pseudo-device ppp # Point-to-Point Protocol
+pseudo-device pppoe # PPP over Ethernet (RFC 2516)
+#options PPPOE_SERVER # Enable PPPoE server via link0
+pseudo-device sl # Serial Line IP
+pseudo-device strip # Starmode Radio IP (Metricom)
+#pseudo-device irframetty # IrDA frame line discipline
+pseudo-device tap # virtual ethernet
+pseudo-device tun # network tunneling over tty
+pseudo-device gre # generic L3 over IP tunnel
+pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC 1933)
+#pseudo-device faith # IPv[46] TCP relay translation i/f
+pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
+pseudo-device vlan # IEEE 802.1q encapsulation
+pseudo-device bridge # simple inter-network bridging
+#options BRIDGE_IPF # bridge uses IPv[46] pfil hooks too
+pseudo-device agr # IEEE 802.3ad link aggregation
+#pseudo-device pf # PF packet filter
+#pseudo-device pflog # PF log if
+
+# miscellaneous pseudo-devices
+pseudo-device pty # pseudo-terminals
+pseudo-device rnd # /dev/random and in-kernel generator
+pseudo-device clockctl # user control of clock subsystem
+pseudo-device ksyms # /dev/ksyms
+pseudo-device putter # for puffs and pud
diff -r f8a5ae8886bb -r 93c5671e8d90 sys/arch/evbppc/conf/files.obs266
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/files.obs266 Thu Mar 18 14:15:38 2010 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: files.obs266,v 1.1 2010/03/18 14:15:38 kiyohara Exp $
+#
+# obs266-specific configuration info
+
+file arch/powerpc/ibm4xx/openbios/openbios.c
+file arch/evbppc/obs405/obs266_autoconf.c
+file arch/evbppc/obs405/obs266_machdep.c
Home |
Main Index |
Thread Index |
Old Index