Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib Added sun2 distrib files.



details:   https://anonhg.NetBSD.org/src/rev/d9083eee9df3
branches:  trunk
changeset: 510054:d9083eee9df3
user:      fredette <fredette%NetBSD.org@localhost>
date:      Fri May 18 00:16:36 2001 +0000

description:
Added sun2 distrib files.

diffstat:

 distrib/sets/lists/base/md.sun2    |    8 +
 distrib/sets/lists/comp/md.sun2    |   58 ++++++++
 distrib/sets/lists/etc/md.sun2     |    5 +
 distrib/sets/lists/xserver/md.sun2 |   10 +
 distrib/sun2/MakeBootTape          |   33 ++++
 distrib/sun2/MakeInstTape          |   26 +++
 distrib/sun2/Makefile              |   16 ++
 distrib/sun2/Makefile.inc          |   11 +
 distrib/sun2/common/Make.crunch    |   23 +++
 distrib/sun2/common/Make.fsimage   |   42 +++++
 distrib/sun2/common/Make.static    |   11 +
 distrib/sun2/common/RunList.awk    |   44 ++++++
 distrib/sun2/common/RunList.sh     |   14 +
 distrib/sun2/common/install.md     |  229 ++++++++++++++++++++++++++++++++
 distrib/sun2/common/mini_bin.list  |   38 +++++
 distrib/sun2/common/mini_sbin.list |   38 +++++
 distrib/sun2/common/mini_usr.list  |   45 ++++++
 distrib/sun2/common/miniroot.list  |   52 +++++++
 distrib/sun2/common/miniroot.tree  |  106 +++++++++++++++
 distrib/sun2/common/mr.disktab     |    5 +
 distrib/sun2/common/mr.etc.rc      |    9 +
 distrib/sun2/common/mr.fstab       |    5 +
 distrib/sun2/common/mr.profile     |   54 +++++++
 distrib/sun2/common/mr.termcap     |   91 ++++++++++++
 distrib/sun2/common/ramdisk.list   |   26 +++
 distrib/sun2/common/ramdisk.tree   |   39 +++++
 distrib/sun2/common/rd.MAKEDEV     |  261 +++++++++++++++++++++++++++++++++++++
 distrib/sun2/common/rd.disktab     |    2 +
 distrib/sun2/common/rd.fstab       |    2 +
 distrib/sun2/common/rd.passwd      |    1 +
 distrib/sun2/common/rd.protocols   |    6 +
 distrib/sun2/common/rd.services    |   56 +++++++
 distrib/sun2/common/rd.sshrc       |    4 +
 distrib/sun2/common/rd.welcome     |   23 +++
 distrib/sun2/common/rd_bin.conf    |   85 ++++++++++++
 distrib/sun2/common/rd_bin.list    |   46 ++++++
 distrib/sun2/common/rdsetroot.c    |  226 ++++++++++++++++++++++++++++++++
 distrib/sun2/miniroot/Makefile     |   86 ++++++++++++
 distrib/sun2/miniroot/disktab      |    4 +
 distrib/sun2/ramdisk/Findrefs      |   12 +
 distrib/sun2/ramdisk/Makefile      |   92 +++++++++++++
 distrib/sun2/ramdisk/Showsyms      |   16 ++
 42 files changed, 1960 insertions(+), 0 deletions(-)

diffs (truncated from 2128 to 300 lines):

diff -r 8415b2e377fd -r d9083eee9df3 distrib/sets/lists/base/md.sun2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/base/md.sun2   Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: md.sun2,v 1.1 2001/05/18 00:16:36 fredette Exp $
+./sbin/edlabel                 base-sysutil-bin
+./usr/mdec/bootxx              base-sysutil-bin
+./usr/mdec/bootyy              base-sysutil-bin
+./usr/mdec/installboot         base-sysutil-bin
+./usr/mdec/netboot             base-sysutil-bin
+./usr/mdec/tapeboot            base-sysutil-bin
+./usr/mdec/ufsboot             base-sysutil-bin
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sets/lists/comp/md.sun2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/comp/md.sun2   Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,58 @@
+# $NetBSD: md.sun2,v 1.1 2001/05/18 00:16:37 fredette Exp $
+./usr/include/sun2     comp-c-include
+./usr/include/sun2/_G_config.h comp-c-include
+./usr/include/sun2/ansi.h      comp-c-include
+./usr/include/sun2/aout_machdep.h      comp-c-include
+./usr/include/sun2/asm.h       comp-c-include
+./usr/include/sun2/autoconf.h  comp-c-include
+./usr/include/sun2/bswap.h     comp-c-include
+./usr/include/sun2/cdefs.h     comp-c-include
+./usr/include/sun2/cg2reg.h    comp-c-include
+./usr/include/sun2/cpu.h       comp-c-include
+./usr/include/sun2/db_machdep.h        comp-c-include
+./usr/include/sun2/disklabel.h comp-c-include
+./usr/include/sun2/dvma.h      comp-c-include
+./usr/include/sun2/eeprom.h    comp-c-include
+./usr/include/sun2/elf_machdep.h       comp-c-include
+./usr/include/sun2/endian.h    comp-c-include
+./usr/include/sun2/endian_machdep.h    comp-c-include
+./usr/include/sun2/fbio.h      comp-c-include
+./usr/include/sun2/float.h     comp-c-include
+./usr/include/sun2/frame.h     comp-c-include
+./usr/include/sun2/idprom.h    comp-c-include
+./usr/include/sun2/ieee.h      comp-c-include
+./usr/include/sun2/ieeefp.h    comp-c-include
+./usr/include/sun2/int_const.h comp-c-include
+./usr/include/sun2/int_fmtio.h comp-c-include
+./usr/include/sun2/int_limits.h        comp-c-include
+./usr/include/sun2/int_mwgwtypes.h     comp-c-include
+./usr/include/sun2/int_types.h comp-c-include
+./usr/include/sun2/kbd.h       comp-c-include
+./usr/include/sun2/kbio.h      comp-c-include
+./usr/include/sun2/kcore.h     comp-c-include
+./usr/include/sun2/leds.h      comp-c-include
+./usr/include/sun2/limits.h    comp-c-include
+./usr/include/sun2/lock.h      comp-c-include
+./usr/include/sun2/math.h      comp-c-include
+./usr/include/sun2/mon.h       comp-c-include
+./usr/include/sun2/param.h     comp-c-include
+./usr/include/sun2/pcb.h       comp-c-include
+./usr/include/sun2/pmap.h      comp-c-include
+./usr/include/sun2/proc.h      comp-c-include
+./usr/include/sun2/profile.h   comp-c-include
+./usr/include/sun2/psl.h       comp-c-include
+./usr/include/sun2/pte.h       comp-c-include
+./usr/include/sun2/ptrace.h    comp-c-include
+./usr/include/sun2/reg.h       comp-c-include
+./usr/include/sun2/setjmp.h    comp-c-include
+./usr/include/sun2/signal.h    comp-c-include
+./usr/include/sun2/stdarg.h    comp-c-include
+./usr/include/sun2/svr4_machdep.h      comp-c-include
+./usr/include/sun2/trap.h      comp-c-include
+./usr/include/sun2/types.h     comp-c-include
+./usr/include/sun2/varargs.h   comp-c-include
+./usr/include/sun2/vmparam.h   comp-c-include
+./usr/include/sun2/vuid_event.h        comp-c-include
+./usr/include/sun2/z8530var.h  comp-c-include
+./usr/sbin/dbsym       comp-sysutil-bin
+./usr/include/ieeefp.h         comp-c-include
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sets/lists/etc/md.sun2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/etc/md.sun2    Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: md.sun2,v 1.1 2001/05/18 00:16:37 fredette Exp $
+./etc/fstab.nfs                etc-sys-etc
+./etc/fstab.sd0                etc-sys-etc
+#./etc/ld.so.conf      etc-sys-etc
+./etc/ttyaction                etc-sys-etc
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sets/lists/xserver/md.sun2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/xserver/md.sun2        Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: md.sun2,v 1.1 2001/05/18 00:16:37 fredette Exp $
+#./usr/X11R6/bin/X
+#./usr/X11R6/bin/Xsun
+#./usr/X11R6/bin/XsunMono
+#./usr/X11R6/bin/constype
+#./usr/X11R6/bin/kbd_mode
+#./usr/X11R6/man/cat1/Xsun.0
+#./usr/X11R6/man/cat1/XsunMono.0
+#./usr/X11R6/man/cat1/constype.0
+#./usr/X11R6/man/cat1/kbd_mode.0
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/MakeBootTape
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/MakeBootTape Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Here is a generic script that makes a Sun2 boot tape using
+# the files in this directory.  The tape layout is:
+#
+#   segment 0:  tapeboot
+#   segment 1:  netbsd (RAMDISK)
+#   segment 3:  miniroot image
+#
+# $NetBSD: MakeBootTape,v 1.1 2001/05/18 00:16:38 fredette Exp $
+
+T=${1:-/dev/nrst0}
+
+# Entertain...
+set -x
+
+# Make sure we start at the beginning.
+mt -f $T rewind
+
+# Segment 1 is the tapeboot program.
+dd if=tapeboot of=$T obs=8k conv=sync
+
+# Segment 2 is the Sun2 ramdisk kernel.
+gzip -d -c ../../binary/kernel/netbsd.RAMDISK.gz |
+  dd of=$T obs=8k conv=sync
+
+# Segment 4 is the miniroot image, unzipped!
+gzip -d -c ../miniroot/miniroot.gz |
+  dd of=$T obs=8k
+
+# Done!
+mt -f $T rewind
+
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/MakeInstTape
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/MakeInstTape Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Here is a generic script that makes a Sun2 boot tape using
+# the files in ../binary
+#
+# $NetBSD: MakeInstTape,v 1.1 2001/05/18 00:16:38 fredette Exp $
+
+T=${1:-/dev/nrst0}
+
+# Remember, skip "etc" for an upgrade.
+sets="etc base comp games man misc text"
+
+# Entertain...
+set -x
+
+# Make sure we start at the beginning.
+mt -f $T rewind
+
+# Write each *.tgz file into a tape segment.
+for f in $sets
+do
+  dd if=../../binary/sets/${f}.tgz of=$T obs=8k conv=sync
+done
+
+# Done!
+mt -f $T rewind
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/Makefile     Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,16 @@
+#      $NetBSD: Makefile,v 1.1 2001/05/18 00:16:38 fredette Exp $
+
+SUBDIR= ramdisk miniroot
+TARGETS= all release
+
+release:
+       -mkdir -p ${RELEASEDIR}/installation/netboot
+       cp -p ${DESTDIR}/usr/mdec/netboot \
+         ${RELEASEDIR}/installation/netboot/
+       -mkdir -p ${RELEASEDIR}/installation/tapeimage
+       cp -p ${DESTDIR}/usr/mdec/tapeboot \
+         ${RELEASEDIR}/installation/tapeimage/
+       cp -p MakeBootTape MakeInstTape \
+         ${RELEASEDIR}/installation/tapeimage/
+
+.include <bsd.subdir.mk>
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/Makefile.inc Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,11 @@
+#      $NetBSD: Makefile.inc,v 1.1 2001/05/18 00:16:38 fredette Exp $
+
+.include "../../Makefile.inc"
+
+REV!=sh ${BSDSRCDIR}/sys/conf/osrelease.sh -s
+
+LDSTATIC=      -static         # only static compilation makes sense here
+
+# Where to find kernel images...
+.include <bsd.kernobj.mk>
+SRCSYSDIR?=    ${BSDSRCDIR}/sys
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/common/Make.crunch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/common/Make.crunch   Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,23 @@
+#      $NetBSD: Make.crunch,v 1.1 2001/05/18 00:16:38 fredette Exp $
+#
+# This is included by subdirectories building a crunched binary.
+# Assume the following are already defined:  TOP, CBIN
+
+CBIN?=         xxx-crunched
+CRUNCHCONF=    ${TOP}/common/${CBIN}.conf
+CRUNCHGEN?=    crunchgen
+STRIP?=                strip
+
+CLEANFILES+= ${CBIN} ${CBIN}.c ${CBIN}.cache ${CBIN}.mk ${CBIN}.syms
+CLEANFILES+= *.lo *_stub.o *_stub.c
+
+# Keep a copy that is not stripped so I can debug...
+${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
+       -rm -f ${CBIN}
+       ${MAKE} -f ${CBIN}.mk all STRIP=true
+       cp -p ${CBIN} ${CBIN}.syms
+       ${STRIP} ${CBIN}
+
+${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+       ${CRUNCHGEN} -D ${BSDSRCDIR} -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
+
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/common/Make.fsimage
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/common/Make.fsimage  Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,42 @@
+#
+#      $NetBSD: Make.fsimage,v 1.1 2001/05/18 00:16:38 fredette Exp $
+#
+
+# TOP is assumed to be defined by Makefile including this one.
+# These will be defined by it too:
+
+IMAGE?=                xxx-${REV}
+CBIN?=         xxx-crunched
+
+TREE?=         ${.CURDIR}/${CBIN}.tree
+LISTS?=                ${.CURDIR}/${CBIN}.list
+
+MOUNT_POINT?=  /mnt
+DISKTYPE?=     xxx-disktype
+BDEV?=         /dev/md0a
+CDEV?=         /dev/md0a
+
+IMAGE_DEPS?=   ${CBIN}
+CLEANFILES+=   ${IMAGE}.fs
+
+# These are all the parameters for the root fs:
+NBLKS?=                512
+# args: old fmt, minfree, opt, ...
+NEWFSARGS?= -O -m 0 -o space
+
+do_mount:
+       -newfs -B be ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
+       mount ${BDEV} ${MOUNT_POINT}
+
+do_files:
+       mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
+       TOPDIR=${TOP} CURDIR=${.CURDIR} \
+         OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
+         sh ${TOP}/common/RunList.sh ${LISTS}
+
+do_umount:
+       @echo ""
+       @df -i ${MOUNT_POINT}
+       @echo ""
+       -umount ${MOUNT_POINT}
+
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/common/Make.static
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/common/Make.static   Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,11 @@
+#
+# $NetBSD: Make.static,v 1.1 2001/05/18 00:16:38 fredette Exp $
+#
+# This is logically appended to some other makefile, i.e.
+# using:  make -f Makefile -f $(OUTDIR)/Make.static ...
+STRIP_CMD=strip
+
+${OUTDIR}/${PROG} : ${OBJS} ${LIBC} ${DPADD}
+       ${CC} -static ${LDFLAGS} -o ${OUTDIR}/${PROG} ${OBJS} ${LDADD}
+       ${STRIP_CMD} ${OUTDIR}/${PROG}
+
diff -r 8415b2e377fd -r d9083eee9df3 distrib/sun2/common/RunList.awk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sun2/common/RunList.awk   Fri May 18 00:16:36 2001 +0000
@@ -0,0 +1,44 @@
+#      $NetBSD: RunList.awk,v 1.1 2001/05/18 00:16:38 fredette Exp $
+
+BEGIN {
+       printf("cd ${CURDIR}\n");
+       printf("\n");
+}
+/^$/ || /^#/ {
+       print $0;
+       next;



Home | Main Index | Thread Index | Old Index