Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/acorn26/instkernel Initial ramdisk kernel glue for a...
details: https://anonhg.NetBSD.org/src/rev/f3a9c1e50f28
branches: trunk
changeset: 525864:f3a9c1e50f28
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Thu Apr 18 23:55:50 2002 +0000
description:
Initial ramdisk kernel glue for acorn26. Still needs sysinst adding.
diffstat:
distrib/acorn26/instkernel/Makefile | 32 ++++++++++
distrib/acorn26/instkernel/disktab.preinstall | 31 +++++++++
distrib/acorn26/instkernel/dot.hdprofile | 62 +++++++++++++++++++
distrib/acorn26/instkernel/dot.profile | 64 ++++++++++++++++++++
distrib/acorn26/instkernel/list | 84 +++++++++++++++++++++++++++
distrib/acorn26/instkernel/termcap.vt100 | 52 ++++++++++++++++
6 files changed, 325 insertions(+), 0 deletions(-)
diffs (truncated from 349 to 300 lines):
diff -r 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/Makefile Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2002/04/18 23:55:50 bjh21 Exp $
+
+.include "${.CURDIR}/../../Makefile.inc"
+.include <bsd.own.mk>
+
+IMAGE= ramdisk.fs
+IMAGESIZE= 1924k
+MAKEFS_FLAGS= -f 15
+
+WARNS= 1
+
+CRUNCHBIN= ramdiskbin
+LISTS= ${.CURDIR}/list #${DISTRIBDIR}/common/list.sysinst
+MTREECONF= ${DISTRIBDIR}/common/mtree.common
+IMAGEENDIAN= le
+MAKEDEVTARGETS= ramdisk
+PARSELISTENV= PWD_MKDB=${PWD_MKDB:Q}
+IMAGEDEPENDS= ${CRUNCHBIN} \
+ disktab.preinstall dot.hdprofile dot.profile termcap.vt100 \
+ ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
+ ${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
+ ${_SRC_TOP_}/etc/services
+
+MDSETTARGETS= INSTALL ramdisk.fs -
+MDSETDIR= ${RELEASEDIR}/installation
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>
diff -r 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/disktab.preinstall
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/disktab.preinstall Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: disktab.preinstall,v 1.1 2002/04/18 23:55:50 bjh21 Exp $
+#
+# Disk geometry and partition layout tables.
+# Key:
+# dt controller type
+# ty type of disk (fixed, removeable, 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 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/dot.hdprofile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/dot.hdprofile Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,62 @@
+# $NetBSD: dot.hdprofile,v 1.1 2002/04/18 23:55:50 bjh21 Exp $
+#
+# 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=pc3
+export TERM
+HOME=/
+export HOME
+
+umask 022
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+ DONEPROFILE=YES
+ export DONEPROFILE
+
+ echo "Checking filesystems..."
+ fsck -y
+
+ echo "Mounting root..."
+ mount -u /
+
+ # set up some sane defaults
+ echo 'erase ^?, werase ^W, kill ^U, intr ^C'
+ stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
+ echo ''
+
+ TERMCAP=/.termcap ; export TERMCAP
+
+ [ -x /sysinst ] && /sysinst
+fi
diff -r 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/dot.profile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/dot.profile Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,64 @@
+# $NetBSD: dot.profile,v 1.1 2002/04/18 23:55:51 bjh21 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 ^? 9600
+ 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 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/list Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,84 @@
+# $NetBSD: list,v 1.1 2002/04/18 23:55:51 bjh21 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/ln
+PROG bin/ls
+PROG bin/mkdir
+PROG bin/mv
+PROG bin/pax usr/bin/tar
+PROG bin/pwd
+PROG bin/rm
+PROG bin/sh
+PROG bin/stty
+PROG bin/sync
+
+PROG sbin/disklabel
+PROG sbin/fsck
+PROG sbin/fsck_ffs
+PROG sbin/ifconfig
+PROG sbin/init
+PROG sbin/mknod
+PROG sbin/mount
+PROG sbin/mount_cd9660
+PROG sbin/mount_ffs
+PROG sbin/mount_filecore
+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/gzip usr/bin/gunzip usr/bin/gzcat
+PROG usr/bin/less usr/bin/more
+PROG usr/bin/sed
+PROG usr/bin/tip
+
+PROG usr/sbin/chown usr/bin/chgrp
+PROG usr/sbin/chroot
+
+SPECIAL ping srcdir distrib/utils/x_ping
+
+LIBS -lbz2 -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm
+
+# init invokes the shell as -sh
+ARGVLN sh -sh
+
+# we need the boot blocks /usr/mdec
+#COPYDIR ${DESTDIR}/usr/mdec usr/mdec
+
+# various files that we need in /etc for the install
+COPY ${_SRC_TOP_}/etc/group etc/group
+COPY ${_SRC_TOP_}/etc/master.passwd etc/master.passwd
+COPY ${_SRC_TOP_}/etc/netconfig etc/netconfig
+COPY ${_SRC_TOP_}/etc/protocols etc/protocols
+COPY ${_SRC_TOP_}/etc/services etc/services
+
+CMD ${PWD_MKDB} -L -d ./ etc/master.passwd
+
+MTREE ./etc/pwd.db type=file uname=root gname=wheel mode=0644
+MTREE ./etc/spwd.db type=file uname=root gname=wheel mode=0600
+
+# and the common installation tools
+COPY ${CURDIR}/termcap.vt100 usr/share/misc/termcap
+
+# the disktab explanation file
+COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
+
+# and the installation tools
+COPY ${CURDIR}/dot.profile .profile
+COPY ${CURDIR}/dot.hdprofile tmp/.hdprofile
diff -r 3fad38bdf0a1 -r f3a9c1e50f28 distrib/acorn26/instkernel/termcap.vt100
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/acorn26/instkernel/termcap.vt100 Thu Apr 18 23:55:50 2002 +0000
@@ -0,0 +1,52 @@
+# $NetBSD: termcap.vt100,v 1.1 2002/04/18 23:55:51 bjh21 Exp $
+#
+# Copyright (c) 1980, 1985, 1989 The Regents of the University of California.
Home |
Main Index |
Thread Index |
Old Index