summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-20 01:19:33 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-20 01:19:33 +0000
commit39e804edc0f9f78d3f659a28156548c58f606932 (patch)
treef7c6a4223b33d1b6b2e8e4a252589c7ef141926f /distrib
parent3fe6c768c5d40a154fecaf9a524eb404f4a9615c (diff)
Get this closer to working (mostly borrowed from macppc).
Still dies with: warning: /dev/console error 20 panic: init died (signal 6, exit 0)
Diffstat (limited to 'distrib')
-rw-r--r--distrib/sparc64/ramdisk/Makefile5
-rw-r--r--distrib/sparc64/ramdisk/install.md1
-rw-r--r--distrib/sparc64/ramdisk/install.sub1
-rw-r--r--distrib/sparc64/ramdisk/list115
-rw-r--r--distrib/sparc64/termcap.vt23
5 files changed, 117 insertions, 28 deletions
diff --git a/distrib/sparc64/ramdisk/Makefile b/distrib/sparc64/ramdisk/Makefile
index bfbae0aeb4d..d560b4d9033 100644
--- a/distrib/sparc64/ramdisk/Makefile
+++ b/distrib/sparc64/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2001/09/19 16:05:42 jason Exp $
+# $OpenBSD: Makefile,v 1.4 2001/09/20 01:19:32 jason Exp $
TOP= ${.CURDIR}/..
@@ -81,7 +81,8 @@ ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
do_files:
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- REV=${REV} TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh -d ${LISTS}
+ REV=${REV} ARCHDIR=${.CURDIR}/.. TARGDIR=${MOUNT_POINT} \
+ sh ${TOP}/runlist.sh ${LISTS}
clean cleandir:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
diff --git a/distrib/sparc64/ramdisk/install.md b/distrib/sparc64/ramdisk/install.md
new file mode 100644
index 00000000000..2cb6771b2f5
--- /dev/null
+++ b/distrib/sparc64/ramdisk/install.md
@@ -0,0 +1 @@
+SPECIAL sed -e /^[ ]*#[ ].*$/d -e /^[ ]*#$/d -e s/^ARCH=ARCH$/ARCH=sparc64/
diff --git a/distrib/sparc64/ramdisk/install.sub b/distrib/sparc64/ramdisk/install.sub
new file mode 100644
index 00000000000..991ad6038be
--- /dev/null
+++ b/distrib/sparc64/ramdisk/install.sub
@@ -0,0 +1 @@
+SPECIAL sed /^VERSION=/s/=.*/=30/
diff --git a/distrib/sparc64/ramdisk/list b/distrib/sparc64/ramdisk/list
index fbc0ce4044d..b81e1264ec1 100644
--- a/distrib/sparc64/ramdisk/list
+++ b/distrib/sparc64/ramdisk/list
@@ -1,39 +1,102 @@
-# $OpenBSD: list,v 1.1 2001/09/18 14:27:32 jason Exp $
-# $NetBSD: list,v 1.2.4.2 1996/06/26 19:25:00 pk Exp $
+# $OpenBSD: list,v 1.2 2001/09/20 01:19:32 jason Exp $
-# Sparc extra's
-LINK instbin sbin/disklabel
-
-SYMLINK ../../instbin usr/bin/basename
-SYMLINK ../../instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
-SYMLINK ../../instbin usr/bin/rsh
-SYMLINK ../../instbin usr/bin/tset usr/bin/reset
-SYMLINK ../../instbin usr/bin/less usr/bin/more
-SYMLINK ../../instbin usr/sbin/installboot
+SRCDIRS distrib/special
+SRCDIRS usr.bin bin sbin usr.sbin gnu/usr.bin
+#SRCDIRS usr.bin/vi
-SRCDIRS sys/arch/sparc/stand
-
-# Minimize use of MFS
-SYMLINK /tmp var/tmp
+# copy the crunched binary, link to it, and kill it
+COPY ${OBJDIR}/instbin instbin
+LINK instbin bin/cat
+LINK instbin bin/chmod bin/chgrp sbin/chown
+LINK instbin bin/cp
+LINK instbin bin/dd
+LINK instbin bin/df
+LINK instbin bin/ed
+LINK instbin bin/expr
+LINK instbin bin/hostname
+LINK instbin bin/ln
+LINK instbin bin/ls
+LINK instbin bin/mkdir
+LINK instbin bin/mt bin/eject
+LINK instbin bin/mv
+LINK instbin bin/pax bin/tar bin/cpio
+LINK instbin bin/rm
+LINK instbin bin/ksh bin/sh
+ARGVLINK ksh -sh
+LINK instbin bin/sleep
+LINK instbin bin/stty
+LINK instbin bin/sync
+LINK instbin bin/test bin/[
+LINK instbin sbin/disklabel
+LINK instbin sbin/ancontrol
+LINK instbin sbin/pdisk
+LINK instbin sbin/fdisk
+LINK instbin sbin/fsck
+LINK instbin sbin/fsck_ffs
+LINK instbin sbin/reboot sbin/halt
+LINK instbin sbin/ifconfig
+LINK instbin sbin/init
+LINK instbin sbin/dhclient
+LINK instbin sbin/dmesg
+LINK instbin sbin/mknod
+LINK instbin sbin/mount
+LINK instbin sbin/mount_cd9660
+LINK instbin sbin/mount_ffs
+LINK instbin sbin/mount_msdos
+LINK instbin sbin/mount_nfs
+LINK instbin sbin/newfs
+LINK instbin sbin/newfs_msdos
+LINK instbin sbin/ping
+LINK instbin sbin/restore
+LINK instbin sbin/route
+#LINK instbin sbin/slattach
+LINK instbin sbin/scsi
+LINK instbin sbin/umount
+LINK instbin sbin/wicontrol
+LINK instbin usr/bin/grep usr/bin/fgrep usr/bin/egrep
+LINK instbin usr/bin/mg
+LINK instbin usr/bin/ftp
+LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
+LINK instbin usr/bin/less usr/bin/more
+LINK instbin usr/bin/rsh
+LINK instbin usr/bin/sed
+LINK instbin usr/bin/sort
+LINK instbin usr/bin/tip
+LINK instbin usr/sbin/chat
+#SYMLINK ../../instbin usr/bin/build usr/bin/vi
# copy the MAKEDEV script and make some devices
-COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
+COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
-# we need the contents of /usr/mdec (but not boot or binstall)
-COPYDIR ${DESTDIR}/usr/mdec usr/mdec
-SPECIAL rm -f usr/mdec/binstall usr/mdec/installboot
-
-# and a few useful bits of the termcap file (512K and still growing 8-)
-SPECIAL tic -C ${CURDIR}/../../../share/termtypes/termtypes.master | sed -n -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' -e 's,/usr/lib/tabset,/usr/share/tabset,g' -e '/^dumb|/,/:[ ]*$/p' -e '/^unknown|/,/:[ ]*$/p' -e '/^sun.*|/,/:[ ]*$/p' -e '/^vt.*|/,/:[ ]*$/p' -e '/^pc3|/,/:[ ]*$/p' -e '/^pcvt.*|/,/:[ ]*$/p' > usr/share/misc/termcap
+# we need the contents of /usr/mdec
+COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot
+COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
+COPY ${DESTDIR}/usr/mdec/msdos1mb.gz usr/mdec/msdos1mb.gz
# various files that we need in /etc for the install
-COPY ${DESTDIR}/etc/disktab etc/disktab.shadow
-SYMLINK /tmp/disktab.shadow etc/disktab
+COPY ${DESTDIR}/etc/group etc/group
+COPY ${DESTDIR}/etc/protocols etc/protocols
+COPY ${DESTDIR}/etc/services etc/services
+COPY ${DESTDIR}/etc/spwd.db etc/spwd.db
+COPY ${DESTDIR}/etc/disktab etc/disktab
+SYMLINK /tmp/disktab.shadow etc/disktab
SYMLINK /tmp/fstab.shadow etc/fstab
SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
SYMLINK /tmp/hosts etc/hosts
+# dhcp things
+COPY ${DESTDIR}/sbin/dhclient-script sbin/dhclient-script
+
+# and the common installation tools
+COPY ${TOPDIR}/termcap.vt usr/share/misc/termcap
+#COPY ${DESTDIR}/usr/share/misc/scsi_modes usr/share/misc/scsi_modes
+
# and the installation tools
-COPY ${ARCHDIR}/../ramdisk/dot.profile .profile
-SPECIAL sed -e '/^#[ ].*$/d' -e "s/^ARCH=ARCH$/ARCH=`arch -s`/" < ${ARCHDIR}/../install.md > install.md
+COPY dot.profile .profile
+SPECIAL sed -e '/^[ ]*#[ ].*$/d' -e '/^[ ]*#$/d' -e "s/^ARCH=ARCH$/ARCH=`arch -s`/" < ${CURDIR}/install.md > install.md
+COPY ${CURDIR}/../../miniroot/install.sh install
+COPY ${CURDIR}/../../miniroot/upgrade.sh upgrade
+#SPECIAL sed "/^VERSION=/s/=.*/=${REV}/" < ${CURDIR}/install.sub > install.sub
+SPECIAL sed "/^VERSION=/s/=.*/=${REV}/" < ${CURDIR}/../../miniroot/install.sub > install.sub
+SPECIAL chmod 755 install upgrade
diff --git a/distrib/sparc64/termcap.vt b/distrib/sparc64/termcap.vt
new file mode 100644
index 00000000000..6ab68007c79
--- /dev/null
+++ b/distrib/sparc64/termcap.vt
@@ -0,0 +1,23 @@
+vt200|vt220|dec-vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\
+ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\
+ :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:ct=\E[3g:dc=\E[P:dl=\E[M:\
+ :ei=\E[4l:im=\E[4h:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:\
+ :k5=\E[21~:k6=\E[23~:k7=\E[24~:k8=\E[25~:kD=\E[3~:kH=\E[4~:\
+ :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kh=\E[1~:km:mi:ms:\
+ :if=/usr/share/tabset/vt100:se=\E[27m:st=\EH:ue=\E[24m:\
+ :tc=vt100:
+vt100|dec-vt100|vt100-am|vt100am|dec vt100:\
+ :bl=^G:cr=^M:it#8:\
+ :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=2*\ED:\
+ :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:cb=3\E[1K:\
+ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
+ :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
+ :if=/usr/share/tabset/vt100:\
+ :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
+ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
+ :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\
+ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
+dumb|80-column dumb tty:\
+ :am:\
+ :co#80:\
+ :bl=^G:cr=^M:do=^J:sf=^J: