Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Added support following boards.
details: https://anonhg.NetBSD.org/src/rev/cf136be5d55c
branches: trunk
changeset: 753678:cf136be5d55c
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Apr 06 15:54:29 2010 +0000
description:
Added support following boards.
- AlphaNet MS104-SH4
- TAC T-SH7706LAN Ver.3
- TAC T-SH7706LSR Ver.1
diffstat:
distrib/evbsh3/Makefile | 11 +
distrib/evbsh3/instkernel/Makefile | 6 +
distrib/evbsh3/instkernel/instkernel/Makefile | 26 +
distrib/evbsh3/instkernel/ramdisk/Makefile | 36 +
distrib/evbsh3/instkernel/ramdisk/disktab.preinstall | 31 +
distrib/evbsh3/instkernel/ramdisk/dot.profile | 64 +
distrib/evbsh3/instkernel/ramdisk/list | 79 +
distrib/utils/sysinst/arch/evbsh3/Makefile | 6 +
distrib/utils/sysinst/arch/evbsh3/md.c | 192 ++++
distrib/utils/sysinst/arch/evbsh3/md.h | 63 +
distrib/utils/sysinst/arch/evbsh3/menus.md.en | 1 +
distrib/utils/sysinst/arch/evbsh3/menus.md.fr | 1 +
distrib/utils/sysinst/arch/evbsh3/menus.md.pl | 1 +
distrib/utils/sysinst/arch/evbsh3/msg.md.de | 48 +
distrib/utils/sysinst/arch/evbsh3/msg.md.en | 48 +
distrib/utils/sysinst/arch/evbsh3/msg.md.es | 48 +
distrib/utils/sysinst/arch/evbsh3/msg.md.fr | 48 +
distrib/utils/sysinst/arch/evbsh3/msg.md.pl | 48 +
etc/etc.evbsh3/MAKEDEV.conf | 5 +-
etc/etc.evbsh3/Makefile.inc | 17 +
sys/arch/evbsh3/ap_ms104_sh4/ap_ms104_sh4.c | 164 +++
sys/arch/evbsh3/ap_ms104_sh4/ap_ms104_sh4_intr.c | 292 ++++++
sys/arch/evbsh3/ap_ms104_sh4/ap_ms104_sh4_space.c | 795 +++++++++++++++++
sys/arch/evbsh3/ap_ms104_sh4/ap_ms104_sh4reg.h | 104 ++
sys/arch/evbsh3/ap_ms104_sh4/ap_ms104_sh4var.h | 46 +
sys/arch/evbsh3/ap_ms104_sh4/clock_machdep.c | 42 +
sys/arch/evbsh3/ap_ms104_sh4/if_sm_mainbus.c | 107 ++
sys/arch/evbsh3/ap_ms104_sh4/rs5c316_mainbus.c | 190 ++++
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c | 866 +++++++++++++++++++
sys/arch/evbsh3/computex7750/clock_machdep.c | 47 +
sys/arch/evbsh3/computex7750/computex7750.c | 39 +
sys/arch/evbsh3/computexevb/clock_machdep.c | 47 +
sys/arch/evbsh3/computexevb/computexevb.c | 39 +
sys/arch/evbsh3/conf/AP_MS104_SH4 | 130 ++
sys/arch/evbsh3/conf/AP_MS104_SH4_INSTALL | 15 +
sys/arch/evbsh3/conf/COMPUTEX7750 | 3 +-
sys/arch/evbsh3/conf/COMPUTEXEVB | 3 +-
sys/arch/evbsh3/conf/CQREEKSH3 | 3 +-
sys/arch/evbsh3/conf/KZSH401 | 3 +-
sys/arch/evbsh3/conf/Makefile.evbsh3.inc | 5 +
sys/arch/evbsh3/conf/T_SH7706LAN | 118 ++
sys/arch/evbsh3/conf/T_SH7706LAN_INSTALL | 15 +
sys/arch/evbsh3/conf/T_SH7706LSR | 119 ++
sys/arch/evbsh3/conf/T_SH7706LSR_INSTALL | 15 +
sys/arch/evbsh3/conf/files.ap_ms104_sh4 | 27 +
sys/arch/evbsh3/conf/files.computex7750 | 6 +
sys/arch/evbsh3/conf/files.computexevb | 6 +
sys/arch/evbsh3/conf/files.cqreeksh3 | 6 +
sys/arch/evbsh3/conf/files.evbsh3 | 24 +-
sys/arch/evbsh3/conf/files.kzsh401 | 6 +
sys/arch/evbsh3/conf/files.t_sh7706lan | 23 +
sys/arch/evbsh3/conf/majors.evbsh3 | 5 +-
sys/arch/evbsh3/conf/mk.ap_ms104_sh4 | 9 +
sys/arch/evbsh3/conf/mk.computex7750 | 1 +
sys/arch/evbsh3/conf/mk.computexevb | 1 +
sys/arch/evbsh3/conf/mk.cqreeksh3 | 1 +
sys/arch/evbsh3/conf/mk.kzsh401 | 1 +
sys/arch/evbsh3/conf/mk.t_sh7706lan | 9 +
sys/arch/evbsh3/conf/std.ap_ms104_sh4 | 23 +
sys/arch/evbsh3/conf/std.computex7750 | 10 +
sys/arch/evbsh3/conf/std.computexevb | 10 +
sys/arch/evbsh3/conf/std.cqreeksh3 | 10 +
sys/arch/evbsh3/conf/std.kzsh401 | 10 +
sys/arch/evbsh3/conf/std.t_sh7706lan | 31 +
sys/arch/evbsh3/conf/std.t_sh7706lsr | 23 +
sys/arch/evbsh3/cqreeksh3/clock_machdep.c | 47 +
sys/arch/evbsh3/cqreeksh3/cqreeksh3.c | 39 +
sys/arch/evbsh3/evbsh3/autoconf.c | 9 +-
sys/arch/evbsh3/evbsh3/bus_dma.c | 752 ++++++++++++++++
sys/arch/evbsh3/evbsh3/kloader_machdep.c | 166 +++
sys/arch/evbsh3/evbsh3/machdep.c | 258 +----
sys/arch/evbsh3/evbsh3/mainbus.c | 61 +-
sys/arch/evbsh3/include/bus.h | 709 +++++++++++++++-
sys/arch/evbsh3/include/intr.h | 4 +-
sys/arch/evbsh3/include/kloader.h | 38 +
sys/arch/evbsh3/kzsh401/clock_machdep.c | 47 +
sys/arch/evbsh3/kzsh401/kzsh401.c | 39 +
sys/arch/evbsh3/stand/Makefile | 5 +
sys/arch/evbsh3/stand/mesboot/binary/mesboot.exe.uue | 286 ++++++
sys/arch/evbsh3/stand/mesboot/src/mesboot.c | 109 ++
sys/arch/evbsh3/t_sh7706lan/clock_machdep.c | 44 +
sys/arch/evbsh3/t_sh7706lan/if_ne_mainbus.c | 189 ++++
sys/arch/evbsh3/t_sh7706lan/scimci.c | 658 ++++++++++++++
sys/arch/evbsh3/t_sh7706lan/ssumci.c | 555 ++++++++++++
sys/arch/evbsh3/t_sh7706lan/t_sh7706lan.c | 63 +
sys/arch/evbsh3/t_sh7706lan/t_sh7706lan_space.c | 731 ++++++++++++++++
sys/arch/evbsh3/t_sh7706lan/t_sh7706lanreg.h | 34 +
sys/arch/evbsh3/t_sh7706lan/t_sh7706lanvar.h | 37 +
88 files changed, 8850 insertions(+), 258 deletions(-)
diffs (truncated from 9680 to 300 lines):
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/Makefile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+.if ${MACHINE_ARCH} == "sh3el"
+SUBDIR= instkernel
+.endif
+TARGETS+= release
+
+.include <bsd.subdir.mk>
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/Makefile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+
+SUBDIR= ramdisk .WAIT instkernel
+TARGETS+= release
+
+.include <bsd.subdir.mk>
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/instkernel/Makefile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
+RAMDISK= ${RAMDISKDIR}/ramdisk.fs
+
+.if ${MACHINE_ARCH} == "sh3eb"
+# Big endian platforms.
+MDSETTARGETS=
+.endif
+.if ${MACHINE_ARCH} == "sh3el"
+# Little endian platforms.
+MDSETTARGETS= AP_MS104_SH4_INSTALL ${RAMDISK} - \
+ T_SH7706LAN_INSTALL ${RAMDISK} - \
+ T_SH7706LSR_INSTALL ${RAMDISK} -
+.endif
+MDSET_RELEASEDIR= installation/instkernel
+
+MDSET_SUFFIXES.-= bin create-bin
+create-bin= ${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET}
+
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/ramdisk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/ramdisk/Makefile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+IMAGE= ramdisk.fs
+IMAGESIZE= 2048k
+MAKEFS_FLAGS= -f 15
+
+WARNS= 1
+DBG= -Os
+
+CRUNCHBIN= ramdiskbin
+LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
+MTREECONF= ${DISTRIBDIR}/common/mtree.common
+IMAGEENDIAN= le
+MAKEDEVTARGETS= ramdisk
+IMAGEDEPENDS= ${CRUNCHBIN} \
+ disktab.preinstall dot.hdprofile dot.profile \
+ ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
+ ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
+ ${DISTRIBDIR}/common/services
+
+# Use stubs to eliminate some large stuff from libc
+HACKSRC= ${DISTRIBDIR}/utils/libhack
+.include "${HACKSRC}/Makefile.inc"
+${CRUNCHBIN}: libhack.o
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+release:
+
+.include <bsd.prog.mk>
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/ramdisk/disktab.preinstall
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/ramdisk/disktab.preinstall Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: disktab.preinstall,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+#
+# Disk geometry and partition layout tables.
+# Key:
+# dt controller type
+# ty type of disk (fixed, removable, simulated)
+# d[0-4] drive-type-dependent parameters
+# ns #sectors/track
+# nt #tracks/cylinder
+# nc #cylinders/disk
+# sc #sectors/cylinder, nc*nt default
+# su #sectors/unit, sc*nc default
+# se sector size, DEV_BSIZE default
+# rm rpm, 3600 default
+# sf supports bad144-style bad sector forwarding
+# sk sector skew per track, default 0
+# cs sector skew per cylinder, default 0
+# hs headswitch time, default 0
+# ts one-cylinder seek time, default 0
+# il sector interleave (n:1), 1 default
+# bs boot block size, default BBSIZE
+# sb superblock size, default SBSIZE
+# o[a-h] partition offsets in sectors
+# p[a-h] partition sizes in sectors
+# b[a-h] partition block sizes in bytes
+# f[a-h] partition fragment sizes in bytes
+# t[a-h] partition types (filesystem, swap, etc)
+#
+# All partition sizes reserve space for bad sector tables.
+# (5 cylinders needed for maintenance + replacement sectors)
+#
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/ramdisk/dot.profile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/ramdisk/dot.profile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,64 @@
+# $NetBSD: dot.profile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+#
+# Copyright (c) 1997 Perry E. Metzger
+# Copyright (c) 1994 Christopher G. Demetriou
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3. All advertising materials mentioning features or use of this software
+# must display the following acknowledgement:
+# This product includes software developed for the
+# NetBSD Project. See http://www.NetBSD.org/ for
+# information about NetBSD.
+# 4. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
+
+PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
+export PATH
+TERM=vt100
+export TERM
+HOME=/
+export HOME
+
+umask 022
+
+ROOTDEV=/dev/md0a
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+ DONEPROFILE=YES
+ export DONEPROFILE
+
+ # set up some sane defaults
+ echo 'erase ^?, werase ^W, kill ^U, intr ^C'
+ stty newcrt werase ^W intr ^C kill ^U erase ^?
+ echo ''
+
+ # mount the ramdisk read write
+ mount -u $ROOTDEV /
+
+ # mount the kern_fs so that we can examine the dmesg state
+ mount -t kernfs /kern /kern
+
+ # run the installation or upgrade script.
+ sysinst
+fi
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/evbsh3/instkernel/ramdisk/list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/instkernel/ramdisk/list Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,79 @@
+# $NetBSD: list,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+
+SRCDIRS bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin
+
+PROG bin/cat
+PROG bin/chmod
+PROG bin/cp
+PROG bin/dd
+PROG bin/df
+PROG bin/ed
+PROG bin/hostname
+PROG bin/ln
+PROG bin/ls
+PROG bin/mkdir
+PROG bin/mv
+PROG bin/pax usr/bin/tar
+PROG bin/pwd
+PROG bin/rm
+PROG bin/rmdir
+PROG bin/sh
+PROG bin/stty
+PROG bin/sync
+
+PROG sbin/dmesg
+PROG sbin/disklabel
+PROG sbin/fdisk
+PROG sbin/fsck
+PROG sbin/fsck_ffs
+PROG sbin/ifconfig
+PROG sbin/init
+PROG sbin/mknod
+PROG sbin/mount
+PROG sbin/mount_ffs
+PROG sbin/mount_kernfs
+PROG sbin/mount_msdos
+PROG sbin/mount_nfs
+PROG sbin/newfs sbin/mount_mfs
+PROG sbin/ping
+PROG sbin/reboot sbin/halt
+PROG sbin/restore sbin/rrestore
+PROG sbin/route
+PROG sbin/shutdown
+PROG sbin/slattach
+PROG sbin/swapctl
+PROG sbin/umount
+
+PROG usr/bin/ftp
+PROG usr/bin/tip usr/bin/cu
+PROG usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
+PROG usr/bin/less usr/bin/more
+PROG usr/bin/sed
+PROG usr/bin/tset
+
+PROG usr/sbin/chown usr/bin/chgrp
+PROG usr/sbin/chroot
+
+SPECIAL ed srcdir distrib/utils/x_ed
+SPECIAL ping srcdir distrib/utils/x_ping
+SPECIAL ifconfig srcdir distrib/utils/x_ifconfig
+SPECIAL route srcdir distrib/utils/x_route
+SPECIAL umount srcdir distrib/utils/x_umount
+
+LIBS libhack.o -lbz2 -ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop
+
+# init invokes the shell as -sh
+ARGVLN sh -sh
+
+# various files that we need in /etc for the install
+COPY ${NETBSDSRCDIR}/etc/group etc/group
+COPY ${NETBSDSRCDIR}/etc/master.passwd etc/master.passwd
+COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig
+COPY ${NETBSDSRCDIR}/distrib/common/protocols etc/protocols
+COPY ${NETBSDSRCDIR}/distrib/common/services etc/services
+
+# the disktab explanation file
+COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
+
+# and the installation tools
+COPY ${CURDIR}/dot.profile .profile
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/utils/sysinst/arch/evbsh3/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/utils/sysinst/arch/evbsh3/Makefile Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2010/04/06 15:54:31 nonaka Exp $
+#
+# Makefile for evbsh3
+#
+
+.include "../../Makefile.inc"
diff -r 0a7b5e5ac821 -r cf136be5d55c distrib/utils/sysinst/arch/evbsh3/md.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/utils/sysinst/arch/evbsh3/md.c Tue Apr 06 15:54:29 2010 +0000
@@ -0,0 +1,192 @@
+/* $NetBSD: md.c,v 1.1 2010/04/06 15:54:31 nonaka Exp $ */
+
+/*
+ * Copyright 1997 Piermont Information Systems Inc.
+ * All rights reserved.
Home |
Main Index |
Thread Index |
Old Index