For reference purposes (as it currently doesn't build): add miniroot build

directory; the ramdisk build also relies on the termcap entry here, so this
isn't totally useless.  All based on work by Scott Taylor (sgimips at
mrynet.com), with bugs most likely added by me.
This commit is contained in:
rafal 2002-05-21 20:51:34 +00:00
parent 077fee836c
commit 3d46bd9251
6 changed files with 218 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# $NetBSD: Makefile.inc.xxx,v 1.1 2002/05/21 20:51:34 rafal Exp $
DBG= -Os -Wa,-xgot # XXX -xgot workaround for objcopy-crunchide
IMAGESIZE= 7m
MAKEFS_FLAGS= -f 15
IMAGEENDIAN?= be
MAKEDEVTARGETS= all
LISTS+= ${DISTRIBDIR}/common/list.sysinst
MTREECONF+= ${.CURDIR}/mtree.usr.install
IMAGEDEPENDS+= ${ARCHDIR}/dot.profile ${ARCHDIR}/termcap.iris-ansi \
${DESTDIR}/.profile \
${DESTDIR}/etc/disktab \
${KERNOBJDIR}/GENERIC_INDY/netbsd.ecoff \
${KERNOBJDIR}/GENERIC_INDY/netbsd
# ${KERNOBJDIR}/NETBOOT_INDY/netbsd \
# Write preliminary Label so that newfs succeeds when updating label.
PRELABEL=${DESTDIR}/sbin/disklabel -w ${VND} ${DISKTYPE} ; \
${DESTDIR}/usr/mdec/sgivol -if ${VND} ;\
${DESTDIR}/usr/mdec/sgivol -wf boot /usr/mdec/boot ${VND} ; \
${DESTDIR}/usr/mdec/sgivol -wf boot.elf /usr/mdec/boot.elf ${VND}
image_md_post:

View File

@ -0,0 +1,9 @@
This fails to link with a slew of "truncated relocation" errors... I assume
the same fate befell the pman miniroot and that's why it isn't being built
either (though that's only a guess).
I assume the problems are most likely due to the -Wa,-xgot trick we use
to be able to build crunched binaries on MIPS.
--rafal, May 21, 2002 20:39 GMT.

View File

@ -0,0 +1,24 @@
# /dev/rvnd1c:
type: SCSI
disk: install diskimag
label:
flags:
bytes/sector: 512
sectors/track: 16
tracks/cylinder: 16
sectors/cylinder: 256
cylinders: 64
total sectors: 16384
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 14336 2048 4.2BSD 1024 8192 0 # (Cyl. 2 - 63)
c: 16384 0 4.2BSD 1024 8192 32 # (Cyl. 0 - 63)
d: 2048 0 boot # (Cyl. 0 - 1)

View File

@ -0,0 +1,19 @@
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
# get the terminal type
_loop=""
while [ "X${_loop}" = X"" ]; do
echo "" >& 2
echo "Setting terminal type. Options:" >& 2
echo "iris-ansi standard IRIX console" >& 2
echo " vt100 for dumb serial terminal" >& 2
echo " xterm for xterm." >& 2
echo "" >& 2
eval `tset -s -m ":?$TERM"`
if [ "X${TERM}" != X"unknown" ]; then
_loop="done"
fi
done
sysinst

View File

@ -0,0 +1,59 @@
# $NetBSD: list,v 1.1 2002/05/21 20:51:34 rafal Exp $
# extras in bin
PROG bin/csh
PROG bin/date
PROG bin/rcp
PROG bin/rcmd
# extras in sbin
PROG sbin/disklabel
PROG sbin/fsck_ext2fs
PROG sbin/mount_ext2fs
PROG sbin/mount_kernfs
# extras in /usr.bin
PROG usr/bin/netstat
PROG usr/bin/rsh
PROG usr/bin/tset usr/bin/reset
PROG usr/bin/vi
# extras in /usr/mdec
PROG usr/mdec/sgivol
# crunchgen source directory specials: progs built in nonstandard places
SPECIAL vi srcdir usr.bin/vi/build
SPECIAL sgivol srcdir sys/arch/sgimips/stand/sgivol
# Minimize use of MFS
SYMLINK /tmp var/tmp
# we need the contents of /usr/mdec
COPYDIR ${DESTDIR}/usr/mdec usr/mdec
# the zoneinfo (dont use)
#COPYDIR ${DESTDIR}/usr/share/zoneinfo usr/share/zoneinfo
# a subset termcap file
COPY ${ARCHDIR}/termcap.iris-ansi usr/share/misc/termcap
# copy the kernel(s)
COPY ${KERNOBJDIR}/GENERIC/netbsd netbsd
COPY ${KERNOBJDIR}/GENERIC/netbsd.ecoff netbsd.ecoff
###COPY ${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff nfsnetbsd.ecoff
# various files that we need in /etc for the install
#COPY ${DESTDIR}/etc/disktab etc/disktab.shadow
#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
# sysinst needs disktab template
COPY ${DESTDIR}/etc/disktab etc/disktab.preinstall
# and the installation tools
COPY ${ARCHDIR}/dot.profile .profile
# and a spare .profile
COPY ${DESTDIR}/.profile tmp/.hdprofile

View File

@ -0,0 +1,83 @@
#
# termcap customized for sgimips installation
# From:
######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
#
#
# Version 9.13.25
# termcap syntax
#
# Eric S. Raymond (current maintainer)
# John Kunze, Berkeley
# Craig Leres, Berkeley
#
# (iris-ansi: added rmam/smam based on init string -- esr)
iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100):\
:am:\
:co#80:it#8:li#40:\
:!2=\E[218q:#2=\E[143q:#4=\E[158q:%9=\E[209q:%f=\E[210q:\
:%i=\E[167q:&7=\E[217q:*4=\E[P:*7=\E[147q:@7=\E[146q:\
:@8=^M:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:F1=\EOR:F2=\EOS:\
:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:dl=\E[M:do=^J:ho=\E[H:\
:is=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8:k1=\E[001q:\
:k2=\E[002q:k3=\E[003q:k4=\E[004q:k5=\E[005q:k6=\E[006q:\
:k7=\E[007q:k8=\E[008q:k9=\EOP:k;=\EOQ:kB=\E[Z:kD=\177:\
:kI=\E[139q:k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p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;:\
:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:\
:up=\E[A:us=\E[4m:
#
xterm|vs100|xterm terminal emulator (X11R6 Window System):\
:am:bs:km:mi:ms:pt:xn:xo:\
:co#80:it#8:li#65:\
:@7=\E[[:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:F1=\E[23~:\
:F2=\E[24~:IC=\E[%d@:LE=\E[%dD:UP=\E[%dA:\
:ac=++\054\054..00II--``aaffgghhjjkkllmmnnooqqssttuuvvwwxx~~:\
:ae=\E(B:al=\E[L:as=\E(0:bl=^G:cd=\E[J:ce=\E[K:\
:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
:ct=\E[3k:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:\
:ic=\E[@:im=\E[4h:\
:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\EOB:\
:ke=\E[?1l\E>:kh=\E[@:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:\
:r2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<:\
:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:\
:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:u6=\E[%d;%dR:\
:u7=\E[6n:u8=\E[?1;2c:u9=\E[c:ue=\E[m:up=\E[A:\
:us=\E[4m:
xterm24|vs100-24|xterm terminal emulator (24 lines) (X11R6 window system):\
:co#80:li#24:\
:tc=xterm:
xterm25|vs100-25|xterm terminal emulator (25 lines) (X11R6 window system):\
:co#80:li#24:\
:tc=xterm:
xterms|vs100s|xterm terminal emulator (small) (X11R6 window system):\
:tc=xterm24: