Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bouyer
committed
Mar 6, 2011
1 parent
84c5bde
commit a8df4a1
Showing
220 changed files
with
17,859 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:36 bouyer Exp $ | ||
|
||
SUBDIR= ramdisk .WAIT instkernel .WAIT cdroms | ||
TARGETS+= release | ||
|
||
iso_image: | ||
${MAKEDIRTARGET} cdroms iso_image | ||
|
||
.include <bsd.subdir.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
|
||
SUBDIR= installcd | ||
TARGETS+= release iso_image | ||
|
||
.include <bsd.subdir.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
CDBASE= emipscd # gives ${CDBASE}.iso | ||
CDRELEASE= true # include $RELEASEDIR/$MACHINE | ||
CDKERNELS= netbsd-INSTALL.gz netbsd | ||
CDINSTKERNEL= ../../instkernel | ||
|
||
#make the CD bootable | ||
image_md_post: | ||
${TOOL_INSTALLBOOT} -m${MACHINE} ${CDBASE}.iso bootxx.${MACHINE} | ||
|
||
.include "${.CURDIR}/../../../common/Makefile.bootcd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
|
||
.include <bsd.own.mk> | ||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | ||
|
||
.include <bsd.kernobj.mk> | ||
|
||
IMAGE= diskimage | ||
IMAGESIZE= 2100k | ||
LISTS= ${.CURDIR}/list | ||
MTREECONF= ${DISTRIBDIR}/common/mtree.dot | ||
IMAGEENDIAN= be | ||
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx_ffs | ||
IMAGEDEPENDS= netbsd-INSTALL.gz ${DESTDIR}/usr/mdec/boot.emips ${PRIMARYBOOT} | ||
IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} | ||
|
||
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} | ||
RAMDISK= ${RAMDISKDIR}/ramdisk.fs | ||
|
||
MDSETTARGETS= RAMDISK ${RAMDISK} netbsd-INSTALL | ||
MDSET_RELEASEDIR= binary/kernel | ||
|
||
MDSET_SUFFIXES.netbsd-INSTALL= ecoff create-ecoff | ||
create-ecoff= ${ELF2ECOFF} ${.TARGET:R} ${.TARGET} | ||
|
||
IMAGE_RELEASEDIR= installation/diskimage | ||
|
||
.include "${DISTRIBDIR}/common/Makefile.image" | ||
.include "${DISTRIBDIR}/common/Makefile.mdset" | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# $NetBSD: list,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
|
||
COPY ${DESTDIR}/usr/mdec/boot.emips boot.emips | ||
COPY ${OBJDIR}/netbsd-INSTALL.gz netbsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# $NetBSD: Makefile.inc,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
|
||
DBG= -Os | ||
|
||
IMAGESIZE= 32m | ||
MAKEFS_FLAGS= -f 15 | ||
IMAGEENDIAN= be | ||
MAKEDEVTARGETS= all | ||
LISTS+= ${DISTRIBDIR}/common/list.sysinst | ||
MTREECONF+= ${.CURDIR}/mtree.usr.install | ||
IMAGEDEPENDS+= ${ARCHDIR}/dot.profile \ | ||
${DESTDIR}/.profile ${DESTDIR}/boot.emips \ | ||
${DESTDIR}/etc/disktab \ | ||
${KERNOBJDIR}/GENERIC/netbsd \ | ||
${KERNOBJDIR}/GENERIC/netbsd.ecoff \ | ||
${KERNOBJDIR}/INSTALL/nfsnetbsd.ecoff | ||
|
||
IMAGEPOSTBUILD= ${TOOL_INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${DESTDIR}/usr/mdec/bootxx_ffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# $NetBSD: dot.profile,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
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 " ansi-nt for Windows console window" >& 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# $NetBSD: list,v 1.1.2.2 2011/03/06 15:07:37 bouyer 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/sbin | ||
PROG usr/sbin/installboot | ||
|
||
# crunchgen source directory specials: progs built in nonstandard places | ||
SPECIAL vi srcdir usr.bin/nvi/build | ||
|
||
# Minimize use of MFS | ||
SYMLINK /tmp var/tmp | ||
|
||
# we need the contents of /usr/mdec | ||
COPYDIR ${DESTDIR}/usr/mdec usr/mdec | ||
# and /boot.emips | ||
COPY ${DESTDIR}/boot.emips boot.emips | ||
|
||
# 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 | ||
#SYMLINK /tmp/fstab.shadow etc/fstab | ||
#SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf | ||
#SYMLINK /tmp/hosts etc/hosts | ||
|
||
# and the installation tools | ||
COPY ${ARCHDIR}/dot.profile .profile | ||
|
||
# and a spare .profile | ||
COPY ${DESTDIR}/.profile tmp/.hdprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
|
||
.include <bsd.own.mk> | ||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" | ||
|
||
IMAGE= ramdisk.fs | ||
IMAGETAR= diskimage.tgz | ||
IMAGESIZE= 3500k | ||
MAKEFS_FLAGS= -f 15 | ||
|
||
WARNS= 1 | ||
DBG= -Os -mmemcpy | ||
|
||
CRUNCHBIN= ramdiskbin | ||
CRUNCHGEN_FLAGS= -d "${DBG}" | ||
LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst | ||
MTREECONF= ${DISTRIBDIR}/common/mtree.common | ||
IMAGEENDIAN= be | ||
MAKEDEVTARGETS= minimal pty0 ace0 ace1 | ||
IMAGEDEPENDS= ${CRUNCHBIN} \ | ||
dot.hdprofile dot.profile \ | ||
${DESTDIR}/usr/mdec/boot.emips ${DESTDIR}/usr/mdec/bootxx_ffs \ | ||
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ | ||
${NETBSDSRCDIR}/etc/netconfig \ | ||
${DISTRIBDIR}/common/protocols \ | ||
${DISTRIBDIR}/common/services | ||
|
||
IMAGETAR_RELEASEDIR= installation/netboot | ||
|
||
# Use stubs to eliminate some large stuff from libc | ||
HACKSRC= ${DISTRIBDIR}/utils/libhack | ||
.include "${HACKSRC}/Makefile.inc" | ||
${CRUNCHBIN}: libhack.o | ||
|
||
.include "${DISTRIBDIR}/common/Makefile.crunch" | ||
.include "${DISTRIBDIR}/common/Makefile.makedev" | ||
.include "${DISTRIBDIR}/common/Makefile.image" | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# $NetBSD: disktab.preinstall,v 1.1.2.2 2011/03/06 15:07:37 bouyer Exp $ | ||
# | ||
# Disk geometry and partition layout tables. | ||
# Key: | ||
# dt controller type | ||
# ty type of disk (fixed, removable, 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) | ||
# | ||
ace400|400MB CFcard Cartridge:\ | ||
:dt=ESDI:ty=removable:se#512:nt#255:ns#63:nc#50: \ | ||
:pa#614400:oa#0:ta=4.2BSD:ba#8192:fa#1024:\ | ||
:pb#18850:ob#614400:tb=swap:2: \ | ||
:pc#633250:oc#0: | ||
ace800|800MB CFcard Cartridge:\ | ||
:dt=ESDI:ty=removable:se#512:nt#255:ns#63:nc#100: \ | ||
:pa#614400:oa#0:ta=4.2BSD:ba#8192:fa#1024:\ | ||
:pb#18850:ob#614400:tb=swap:2 \ | ||
:pc#633250:oc#0: \ | ||
:pd#633250:oa#633250:ta=4.2BSD:ba#8192:fa#1024:\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# $NetBSD: dot.hdprofile,v 1.1.2.2 2011/03/06 15:07:37 bouyer 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 ^? 9600 | ||
echo '' | ||
|
||
TERMCAP=/.termcap ; export TERMCAP | ||
|
||
[ -x /sysinst ] && /sysinst | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# $NetBSD: dot.profile,v 1.1.2.2 2011/03/06 15:07:37 bouyer 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 | ||
|
||
# get the terminal type | ||
eval `tset -s -m ":?$TERM"` | ||
|
||
# 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 | ||
|
||
# run the installation program | ||
sysinst | ||
fi |
Oops, something went wrong.