Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/evbarm Ramdisk/install kernel for evbarm. Currently...
details: https://anonhg.NetBSD.org/src/rev/78a7d563fb6b
branches: trunk
changeset: 525563:78a7d563fb6b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Apr 13 01:46:29 2002 +0000
description:
Ramdisk/install kernel for evbarm. Currently support the Npwr
storage appliance.
XXX More work needs to be done here.
diffstat:
distrib/evbarm/Makefile | 4 +-
distrib/evbarm/instkernel/Makefile | 5 +
distrib/evbarm/instkernel/instkernel/Makefile | 14 +++
distrib/evbarm/instkernel/ramdisk/Makefile | 39 ++++++++++
distrib/evbarm/instkernel/ramdisk/disktab.preinstall | 31 +++++++
distrib/evbarm/instkernel/ramdisk/dot.hdprofile | 62 +++++++++++++++
distrib/evbarm/instkernel/ramdisk/dot.profile | 64 ++++++++++++++++
distrib/evbarm/instkernel/ramdisk/list | 78 ++++++++++++++++++++
8 files changed, 295 insertions(+), 2 deletions(-)
diffs (truncated from 336 to 300 lines):
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/Makefile
--- a/distrib/evbarm/Makefile Sat Apr 13 00:53:00 2002 +0000
+++ b/distrib/evbarm/Makefile Sat Apr 13 01:46:29 2002 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2002/04/11 12:19:41 lukem Exp $
+# $NetBSD: Makefile,v 1.4 2002/04/13 01:46:29 thorpej Exp $
.include <bsd.own.mk>
.include "${_SRC_TOP_}/distrib/Makefile.inc"
-SUBDIR= gzboot
+SUBDIR= gzboot instkernel
ITARGET= ${RELEASEDIR}/binary/gzimg
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/Makefile Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2002/04/13 01:46:30 thorpej Exp $
+
+SUBDIR= ramdisk .WAIT instkernel
+
+.include <bsd.subdir.mk>
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/instkernel/Makefile Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2002/04/13 01:46:31 thorpej Exp $
+
+.include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
+
+RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
+RAMDISK= ${RAMDISKDIR}/ramdisk.fs
+MDSETTARGETS= TEAMASA_NPWR_INSTALL ${RAMDISK} -
+
+MDSETDIR= installation/instkernel
+
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/ramdisk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/Makefile Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2002/04/13 01:46:32 thorpej Exp $
+
+.include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
+
+IMAGE= ramdisk.fs
+IMAGESIZE= 3072k
+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 \
+ ${DESTDIR}/usr/share/misc/termcap \
+ ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
+ ${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
+ ${_SRC_TOP_}/etc/services
+
+# Use stubs to eliminate some large stuff from libc
+HACKSRC= ${DISTRIBDIR}/utils/libhack
+.include "${HACKSRC}/Makefile.inc"
+${CRUNCHBIN}: libhack.o
+
+
+realall: ${IMAGE}
+
+release:
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+.include <bsd.prog.mk>
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/ramdisk/disktab.preinstall
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/disktab.preinstall Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: disktab.preinstall,v 1.1 2002/04/13 01:46:33 thorpej 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 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/ramdisk/dot.hdprofile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/dot.hdprofile Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,62 @@
+# $NetBSD: dot.hdprofile,v 1.1 2002/04/13 01:46:33 thorpej 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=vt100
+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 ^?
+ echo ''
+
+ TERMCAP=/.termcap ; export TERMCAP
+
+ [ -x /sysinst ] && /sysinst
+fi
diff -r 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/ramdisk/dot.profile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/dot.profile Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,64 @@
+# $NetBSD: dot.profile,v 1.1 2002/04/13 01:46:34 thorpej 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 9258f99743ff -r 78a7d563fb6b distrib/evbarm/instkernel/ramdisk/list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/list Sat Apr 13 01:46:29 2002 +0000
@@ -0,0 +1,78 @@
+# $NetBSD: list,v 1.1 2002/04/13 01:46:35 thorpej 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_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
Home |
Main Index |
Thread Index |
Old Index