Source-Changes-HG archive

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

[src/trunk]: src playstation2 support



details:   https://anonhg.NetBSD.org/src/rev/c63319ff823b
branches:  trunk
changeset: 516088:c63319ff823b
user:      uch <uch%NetBSD.org@localhost>
date:      Mon Oct 15 16:22:50 2001 +0000

description:
playstation2 support

diffstat:

 distrib/playstation2/Makefile                       |   32 +
 distrib/playstation2/Makefile.inc                   |    4 +
 distrib/playstation2/miniroot/Makefile.inc          |    4 +
 distrib/playstation2/miniroot/dot.profile           |   74 ++
 distrib/playstation2/miniroot/list                  |  100 ++
 distrib/playstation2/miniroot/termcap.vt100         |   29 +
 distrib/sets/lists/base/md.playstation2             |    2 +
 distrib/sets/lists/comp/md.playstation2             |   51 +
 distrib/sets/lists/etc/md.playstation2              |    2 +
 distrib/utils/sysinst/arch/playstation2/Makefile    |   16 +
 distrib/utils/sysinst/arch/playstation2/mbr_buf.s   |    6 +
 distrib/utils/sysinst/arch/playstation2/md.c        |  682 ++++++++++++++++++++
 distrib/utils/sysinst/arch/playstation2/md.h        |  168 ++++
 distrib/utils/sysinst/arch/playstation2/menus.md.en |  332 +++++++++
 distrib/utils/sysinst/arch/playstation2/menus.md.fr |  331 +++++++++
 distrib/utils/sysinst/arch/playstation2/msg.md.en   |  293 ++++++++
 distrib/utils/sysinst/arch/playstation2/msg.md.fr   |  294 ++++++++
 etc/etc.playstation2/MAKEDEV                        |  381 +++++++++++
 etc/etc.playstation2/Makefile.inc                   |   11 +
 etc/etc.playstation2/disktab                        |   39 +
 etc/etc.playstation2/fstab.wd                       |    5 +
 etc/etc.playstation2/ttys                           |   75 ++
 sbin/fdisk/Makefile                                 |    4 +-
 23 files changed, 2933 insertions(+), 2 deletions(-)

diffs (truncated from 3037 to 300 lines):

diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/Makefile     Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,32 @@
+#      $NetBSD: Makefile,v 1.1 2001/10/15 16:22:50 uch Exp $
+
+.include "../Makefile.inc"
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.kernobj.mk>
+
+SUBDIR=
+
+ITARGET=       ${RELEASEDIR}/installation
+IINST=         ${INSTALL} ${RENAME} ${PRESERVE} ${COPY}        \
+               -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE}
+
+.ifndef RELEASEDIR
+release:
+       @echo setenv RELEASEDIR first
+       @false
+.else
+MINIROOTDIR = ${.CURDIR}/../miniroot
+MINIROOTOBJ != cd ${MINIROOTDIR}; ${MAKE} print-objdir
+
+release:
+       rm -f netbsd netbsd.gz
+       cp ${KERNOBJDIR}/RAMDISK/netbsd .
+       mdsetimage netbsd ${MINIROOTOBJ}/miniroot.fs
+       gzip -9 netbsd
+       ${IINST} netbsd.gz ${ITARGET}/.
+       ${.CURDIR}/../sets/makesums -t ${ITARGET} '*.gz'
+.endif
+
+.include <bsd.subdir.mk>
diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/Makefile.inc Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,4 @@
+#      $NetBSD: Makefile.inc,v 1.1 2001/10/15 16:22:50 uch Exp $
+
+REV!=sh ${.CURDIR}/../../../sys/conf/osrelease.sh -s
+VER!=sh ${.CURDIR}/../../../sys/conf/osrelease.sh
diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/miniroot/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/miniroot/Makefile.inc        Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,4 @@
+#      $NetBSD: Makefile.inc,v 1.1 2001/10/15 16:22:50 uch Exp $
+
+VND=vnd0d
+IMAGESIZE=10240
diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/miniroot/dot.profile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/miniroot/dot.profile Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,74 @@
+# $NetBSD: dot.profile,v 1.1 2001/10/15 16:22:50 uch 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
+BLOCKSIZE=1k
+export BLOCKSIZE
+EDITOR=ed
+export EDITOR
+
+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
+
+       # pull in the functions that people will use from the shell prompt.
+       # . /.commonutils
+       # . /.instutils
+       dmesg() cat /kern/msgbuf
+       grep() sed -n "/$1/p"
+
+       # run the installation or upgrade script.
+       sysinst
+fi
diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/miniroot/list
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/miniroot/list        Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,100 @@
+#      $NetBSD: list,v 1.1 2001/10/15 16:22:50 uch Exp $
+
+# playstation2 extra's: mountpoint for kernfs
+SPECIAL mkdir                  kern
+
+# extras in bin
+LINK   instbin                 bin/csh
+LINK   instbin                 bin/date
+LINK   instbin                 bin/rcp
+LINK   instbin                 bin/rcmd
+
+# extras in sbin
+LINK   instbin                 sbin/disklabel
+LINK   instbin                 sbin/fdisk
+LINK   instbin                 sbin/mount_ext2fs
+LINK   instbin                 sbin/fsck_ext2fs
+LINK   instbin                 sbin/mount_kernfs
+LINK   instbin                 sbin/mount_msdos
+
+# extras in /usr.bin
+SYMLINK        ../../instbin           usr/bin/netstat
+SYMLINK        ../../instbin           usr/bin/rsh
+SYMLINK ../../instbin          usr/bin/tset usr/bin/reset
+SYMLINK        ../../instbin           usr/bin/vi
+
+# OK, now do everything in /usr all over all again in usr.install,
+# in case we try and install directly into the miniroot (mounting over /usr).
+
+# local usr.bin
+SPECIAL        mkdir   usr.install
+SPECIAL        mkdir   usr.install/bin
+SPECIAL        mkdir   usr.install/sbin
+
+
+SPECIAL        ln -s ../../instbin     usr.install/bin/chflags
+SPECIAL        ln -s ../../instbin     usr.install/bin/chgrp
+SPECIAL        ln -s ../../instbin     usr.install/bin/ftp
+SPECIAL        ln -s ../../instbin     usr.install/bin/gunzip
+SPECIAL        ln -s ../../instbin     usr.install/bin/gzcat
+SPECIAL        ln -s ../../instbin     usr.install/bin/gzip
+SPECIAL        ln -s ../../instbin     usr.install/bin/netstat
+SPECIAL        ln -s ../../instbin     usr.install/bin/sort
+SPECIAL        ln -s ../../instbin     usr.install/bin/tar
+SPECIAL        ln -s ../../instbin     usr.install/bin/tip
+SPECIAL        ln -s ../../instbin     usr.install/bin/vi
+
+# local usr.sbin
+SPECIAL        ln -s ../../instbin     usr.install/sbin/chroot
+SPECIAL        ln -s ../../instbin     usr.install/sbin/chown
+
+
+# crunchgen source directory specials: progs built in nonstandard places
+CRUNCHSPECIAL  vi      srcdir usr.bin/vi/build
+CRUNCHSPECIAL  sysinst srcdir distrib/utils/sysinst/arch/playstation2
+
+
+# Minimize use of MFS
+SYMLINK        /tmp    var/tmp
+
+# copy the MAKEDEV script and make some devices
+COPY   ${DESTDIR}/dev/MAKEDEV          dev/MAKEDEV
+COPY   ${DESTDIR}/dev/MAKEDEV.local    dev/MAKEDEV.local
+SPECIAL        cd dev; sh MAKEDEV all
+SPECIAL        /bin/rm dev/MAKEDEV dev/MAKEDEV.local
+
+# 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
+
+# and the termcap file
+COPY   ${CURDIR}/../playstation2/miniroot/termcap.vt100 usr/share/misc/termcap
+
+# copy the kernel(s)
+#COPY  ${CURDIR}/../../sys/arch/playstation2/compile/GENERIC/netbsd  netbsd
+
+
+# various files that we need in /etc for the install
+#COPY  ${DESTDIR}/etc/disktab          etc/disktab.shadow
+COPY   ${DESTDIR}/etc/spwd.db          etc/spwd.db
+LINK   etc/spwd.db                     etc/pwd.db
+#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
+LINK   instbin                         sbin/sysinst
+
+# and a spare .profile
+COPY   ${DESTDIR}/.profile             tmp/.hdprofile
+
+#the lists of obsolete files used by sysinst  
+SPECIAL sh ${CURDIR}/../../distrib/sets/makeobsolete -b -s ${CURDIR}/../../distrib/sets -t ./dist
diff -r 0d932e2e7825 -r c63319ff823b distrib/playstation2/miniroot/termcap.vt100
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/playstation2/miniroot/termcap.vt100       Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,29 @@
+#      $NetBSD: termcap.vt100,v 1.1 2001/10/15 16:22:50 uch Exp $
+#
+#      termcap for vt100 console(wscons)
+#      From:
+######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
+#
+#      Version 9.13.25
+#      termcap syntax
+#
+#      Eric S. Raymond         (current maintainer)
+#      John Kunze, Berkeley
+#      Craig Leres, Berkeley
+#
+vt100|vt100-am|dec vt100 (w/advanced video):\
+       :am:bs:ms:xn:xo:\
+       :co#80:it#8:li#24:vt#3:\
+       :@8=\EOM:DO=\E[%dB:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:\
+       :LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
+       :ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
+       :ae=\E(B:as=\E(0:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
+       :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:do=^J:\
+       :eA=\E(B:ho=\E[H:k0=\EOy:k1=\EOP:k2=\EOQ:k3=\EOR:\
+       :k4=\EOS:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:\
+       :kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
+       :ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:\
+       :nd=\E[C:r2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:\
+       :..sa=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%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:
diff -r 0d932e2e7825 -r c63319ff823b distrib/sets/lists/base/md.playstation2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/base/md.playstation2   Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: md.playstation2,v 1.1 2001/10/15 16:22:51 uch Exp $
+./sbin/fdisk           base-sysutil-root
diff -r 0d932e2e7825 -r c63319ff823b distrib/sets/lists/comp/md.playstation2
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/comp/md.playstation2   Mon Oct 15 16:22:50 2001 +0000
@@ -0,0 +1,51 @@
+# $NetBSD: md.playstation2,v 1.1 2001/10/15 16:22:51 uch Exp $
+./usr/include/playstation2     comp-c-include
+./usr/include/playstation2/_G_config.h comp-c-include
+./usr/include/playstation2/ansi.h      comp-c-include
+./usr/include/playstation2/aout_machdep.h      comp-c-include
+./usr/include/playstation2/asm.h       comp-c-include
+./usr/include/playstation2/bswap.h     comp-c-include
+./usr/include/playstation2/cdefs.h     comp-c-include
+./usr/include/playstation2/cpu.h       comp-c-include
+./usr/include/playstation2/db_machdep.h        comp-c-include
+./usr/include/playstation2/disklabel.h comp-c-include
+./usr/include/playstation2/ecoff_machdep.h     comp-c-include
+./usr/include/playstation2/elf_machdep.h       comp-c-include
+./usr/include/playstation2/endian.h    comp-c-include
+./usr/include/playstation2/endian_machdep.h    comp-c-include
+./usr/include/playstation2/float.h     comp-c-include
+./usr/include/playstation2/ieee.h      comp-c-include
+./usr/include/playstation2/ieeefp.h    comp-c-include
+./usr/include/playstation2/int_const.h comp-c-include
+./usr/include/playstation2/int_fmtio.h comp-c-include
+./usr/include/playstation2/int_limits.h        comp-c-include
+./usr/include/playstation2/int_mwgwtypes.h     comp-c-include
+./usr/include/playstation2/int_types.h comp-c-include



Home | Main Index | Thread Index | Old Index