sync code with last fixes and improvements from OpenBSD

This commit is contained in:
purplerain 2023-06-07 21:20:56 +00:00
parent 4b78db449c
commit bf0676207f
Signed by: purplerain
GPG Key ID: F42C07F07E2E35B7
2406 changed files with 6353 additions and 434004 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: eval.c,v 1.66 2020/09/13 15:39:09 tb Exp $ */
/* $OpenBSD: eval.c,v 1.67 2023/05/24 14:20:33 millert Exp $ */
/*
* Expansion - quoting, separation, substitution, globbing
@ -8,6 +8,7 @@
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
@ -909,7 +910,7 @@ comsub(Expand *xp, char *cp)
SHF_MAPHI|SHF_CLEXEC);
if (shf == NULL)
warningf(!Flag(FTALKING),
"%s: cannot open $(<) input", name);
"%s: %s", name, strerror(errno));
xp->split = 0; /* no waitlast() */
} else {
int ofd1, pv[2];

View File

@ -1,12 +0,0 @@
# $OpenBSD: Makefile,v 1.14 2019/04/30 17:46:00 deraadt Exp $
SUBDIR= miniroot
.if make(obj) || make(cleandir) || make(clean)
SUBDIR+= iso
.endif
unconfig:
cd miniroot; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,63 +0,0 @@
# $OpenBSD: Makefile,v 1.20 2019/05/01 20:53:34 deraadt Exp $
CDROM= install${OSrev}.iso
MOUNT_POINT= /mnt
RELXDIR?= /home/relx-${MACHINE}
RELDIR?= /home/rel-${MACHINE}
BASE= ${RELDIR}/base${OSrev}.tgz ${RELDIR}/comp${OSrev}.tgz \
${RELDIR}/game${OSrev}.tgz ${RELDIR}/man${OSrev}.tgz \
${RELDIR}/bsd ${RELDIR}/bsd.rd ${RELDIR}/bsd.mp \
${RELDIR}/INSTALL.${MACHINE}
XBASE= ${RELXDIR}/xbase${OSrev}.tgz ${RELXDIR}/xfont${OSrev}.tgz \
${RELXDIR}/xshare${OSrev}.tgz ${RELXDIR}/xserv${OSrev}.tgz
all: ${CDROM}
${CDROM}: ${BASE} ${XBASE}
rm -rf ${.OBJDIR}/cd-dir
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${BASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${XBASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cat ${RELDIR}/SHA256 ${RELXDIR}/SHA256 > \
${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/SHA256
# XXX no SHA256.sig
# make sure right kernel is in /
ln ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/bsd.rd ${.OBJDIR}/cd-dir/bsd.rd
ln ${.OBJDIR}/cd-dir/bsd.rd ${.OBJDIR}/cd-dir/bsd
cp -p ${RELDIR}/boot ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${RELDIR}/bootxx ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
(mkhybrid -a -R -T -L -d -D -N -o ${.OBJDIR}/${CDROM} -v -v -v \
-A "SecBSD ${OSREV} ${MACHINE} Install CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} Install CD" \
${.OBJDIR}/cd-dir 2>&1) | tee log
vnconfig -v ${CDROM} > vnd
mount -t cd9660 /dev/`cat vnd`a ${MOUNT_POINT}
/usr/mdec/installboot -v \
-s `cat log | grep -v 'Name' | egrep "/cd-dir/${OSREV}/${MACHINE}/boot$$" | cut -d' ' -f1` \
-e `cat log | grep -v 'Name' | egrep "/cd-dir/${OSREV}/${MACHINE}/boot$$" | cut -d' ' -f2` \
${MOUNT_POINT}/${OSREV}/${MACHINE}/boot /usr/mdec/bootxx `cat vnd`
umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
unconfig:
-umount -f ${MOUNT_POINT}
-[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
install:
cp ${CDROM} ${RELDIR}/
clean cleandir:
rm -f ${CDROM}
rm -rf cd-dir log
.include <bsd.obj.mk>

View File

@ -1,119 +0,0 @@
# $OpenBSD: Makefile,v 1.27 2023/04/30 22:44:18 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 6080
FSDISKTYPE= fakeramdisk
CDROM= cd${OSrev}.iso
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISKBIG
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
MRDISKTYPE= rdroot
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=8192
all: ${FS} ${CDROM}
${FS}: bsd.gz
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
echo '/ *' | disklabel -wAT- `cat vnd`
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 8192 -f 4096 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
install -c -m 555 -o root -g wheel \
${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
/usr/mdec/installboot -v \
${MOUNT_POINT}/boot ${DESTDIR}/usr/mdec/bootxx `cat vnd`
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
df -i ${MOUNT_POINT}
umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
${CDROM}: bsd.gz
rm -rf ${.OBJDIR}/cd-dir
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp bsd.gz ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
# make sure right kernel is in /
ln ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/bsd.gz ${.OBJDIR}/cd-dir/bsd.rd
ln ${.OBJDIR}/cd-dir/bsd.rd ${.OBJDIR}/cd-dir/bsd
cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp ${DESTDIR}/usr/mdec/bootxx ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
(mkhybrid -a -R -T -L -d -D -N -o ${.OBJDIR}/${CDROM} -v -v -v \
-A "SecBSD ${OSREV} ${MACHINE} bootonly CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} boot-only CD" \
${.OBJDIR}/cd-dir 2>&1) | tee log
vnconfig -v ${CDROM} > vnd
mount -t cd9660 /dev/`cat vnd`a ${MOUNT_POINT}
/usr/mdec/installboot -v \
-s `cat log | grep -v 'Name' | egrep "/cd-dir/${OSREV}/${MACHINE}/boot$$" | cut -d' ' -f1` \
-e `cat log | grep -v 'Name' | egrep "/cd-dir/${OSREV}/${MACHINE}/boot$$" | cut -d' ' -f2` \
${MOUNT_POINT}/${OSREV}/${MACHINE}/boot /usr/mdec/bootxx `cat vnd`
umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
bsd.gz: bsd.rd
objcopy -S -R .comment -R .SUNW_ctf \
-K rd_root_size -K rd_root_image \
-R .eh_frame -R .shstrtab \
bsd.rd bsd.strip
gzip -9cn bsd.strip > bsd.gz
bsd.rd: mr.fs
cp bsd bsd.rd
rdsetroot bsd.rd mr.fs
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
strip -R .eh_frame -R .shstrtab instbin
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
unconfig:
-umount -f ${MOUNT_POINT}
-[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
.ifdef RELEASEDIR
install:
cp bsd.gz ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${FS} ${RELEASEDIR}
cp ${CDROM} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.mk instbin.cache \
*.o *.lo *.c \
lib*.a lib*.olist instbin.map ${CLEANFILES}
rm -rf mr.fs.d
.include <bsd.obj.mk>

View File

@ -1,76 +0,0 @@
# $OpenBSD: install.md,v 1.1 2019/04/30 18:40:43 deraadt Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jason R. Thorpe.
#
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``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 REGENTS OR CONTRIBUTORS 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.
#
#
# machine dependent section of installation/upgrade script.
#
MDXAPERTURE=1
NCPU=$(sysctl -n hw.ncpufound)
md_installboot() {
# Use cat to avoid holes created by cp(1)
cat /mnt/usr/mdec/boot > /mnt/boot
/mnt/usr/mdec/installboot /mnt/boot /mnt/usr/mdec/bootxx /dev/r${1}c
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
}
md_consoleinfo() {
local _d _u
integer i=0
# Set up TTYS array to parallel serial device names _d can assume.
TTYS[0]=tty0
TTYS[1]=ttyB
for _d in com zstty; do
for _u in $(scan_dmesg "/^${_d}\([0-9]\) .*/s//\1/p"); do
if [[ $_d$_u == $CONSOLE || -z $CONSOLE ]]; then
CDEV=$_d$_u
CTTY=${TTYS[i]}$_u
return
fi
done
i=i+1
done
}

View File

@ -1,94 +0,0 @@
# $OpenBSD: list,v 1.5 2021/07/18 15:18:47 deraadt Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/bioctl
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ffs
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
LINK instbin sbin/mknod
LINK instbin sbin/mount
LINK instbin sbin/mount_cd9660
LINK instbin sbin/mount_ffs
LINK instbin sbin/newfs
LINK instbin sbin/ping sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/ftp
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
# firmware we might need
#COPY ${DESTDIR}/etc/firmware/tigon1 etc/firmware/tigon1
#COPY ${DESTDIR}/etc/firmware/tigon2 etc/firmware/tigon2
COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
COPY ${DESTDIR}/etc/firmware/3c990 etc/firmware/3c990
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,4 +1,4 @@
# $OpenBSD: install.md,v 1.60 2023/04/26 22:45:32 kn Exp $
# $OpenBSD: install.md,v 1.61 2023/05/26 11:41:50 kn Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
@ -77,8 +77,7 @@ md_prep_fdisk() {
return ;;
[gG]*)
if [[ $MDEFI != y ]]; then
ask_yn "An EFI/GPT disk may not boot. Proceed?"
[[ $resp == n ]] && continue
ask_yn "An EFI/GPT disk may not boot. Proceed?" || continue
fi
echo -n "Setting SecBSD GPT partition to whole $_disk..."

View File

@ -1,12 +0,0 @@
# $OpenBSD: Makefile,v 1.4 2009/04/17 03:58:54 deraadt Exp $
SUBDIR=ramdisk
.if make(obj) || make(cleandir) || make(clean)
SUBDIR+= iso
.endif
unconfig:
cd ramdisk; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,34 +0,0 @@
# $OpenBSD: install.md,v 1.33 2017/07/28 18:15:44 rpe Exp $
#
# machine dependent section of installation/upgrade script.
#
MDTERM=vt100
NCPU=$(sysctl -n hw.ncpufound)
md_installboot() {
if ! installboot -r /mnt ${1}; then
echo "\nFailed to install bootblocks."
echo "You will not be able to boot OpenBSD from ${1}."
exit
fi
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
installboot $_disk
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
}
md_consoleinfo() {
}

View File

@ -1,46 +0,0 @@
# $OpenBSD: Makefile,v 1.19 2019/04/30 21:14:59 deraadt Exp $
CDROM= install${OSrev}.iso
RELXDIR?= /home/relx-${MACHINE}
RELDIR?= /home/rel-${MACHINE}
BASE= ${RELDIR}/base${OSrev}.tgz ${RELDIR}/comp${OSrev}.tgz \
${RELDIR}/game${OSrev}.tgz ${RELDIR}/man${OSrev}.tgz \
${RELDIR}/bsd ${RELDIR}/bsd.mp ${RELDIR}/bsd.rd \
${RELDIR}/INSTALL.${MACHINE}
XBASE= ${RELXDIR}/xbase${OSrev}.tgz ${RELXDIR}/xfont${OSrev}.tgz \
${RELXDIR}/xshare${OSrev}.tgz ${RELXDIR}/xserv${OSrev}.tgz
all: ${CDROM}
${CDROM}: ${BASE} ${XBASE}
rm -rf ${.OBJDIR}/cd-dir
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${BASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${XBASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cat ${RELDIR}/SHA256 ${RELXDIR}/SHA256 > \
${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/SHA256
# XXX no SHA256.sig
ln -f ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/bsd.rd \
${.OBJDIR}/cd-dir/bsd.rd
mkhybrid -R -T -L -d -D -N \
-A "SecBSD ${OSREV} ${MACHINE} Install CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} Install CD" \
-o ${.OBJDIR}/${CDROM} ${.OBJDIR}/cd-dir
dd if=${DESTDIR}/usr/mdec/cdboot of=${.OBJDIR}/${CDROM} \
bs=32k count=1 conv=notrunc
dd if=/dev/zero bs=64k count=1 >> ${.OBJDIR}/${CDROM}
install:
cp ${CDROM} ${RELDIR}/
clean cleandir:
rm -rf cd-dir ${CDROM}
.include <bsd.obj.mk>

View File

@ -1,79 +0,0 @@
# $OpenBSD: Makefile,v 1.49 2023/04/28 08:45:25 krw Exp $
LIF= lif${OSrev}.img
CDROM= cd${OSrev}.iso
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
MRDISKTYPE= rdroot
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
all: ${LIF} ${CDROM}
${LIF}: bsd.lif
/usr/mdec/mkboot -v ${DESTDIR}/usr/mdec/boot bsd.lif ${LIF}
${CDROM}: bsd.rd
rm -rf ${.OBJDIR}/cd-dir/
mkdir -p ${.OBJDIR}/cd-dir/
cp bsd.rd ${.OBJDIR}/cd-dir/bsd.rd
mkhybrid -A "SecBSD ${OSREV} ${MACHINE} bootonly CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} boot-only CD" \
-o ${.OBJDIR}/${CDROM} ${.OBJDIR}/cd-dir
dd if=${DESTDIR}/usr/mdec/cdboot of=${.OBJDIR}/${CDROM} \
bs=32k count=1 conv=notrunc
dd if=/dev/zero bs=64k count=1 >> ${.OBJDIR}/${CDROM}
bsd.lif: bsd.rd
(cat bsd.rd ; dd if=/dev/zero count=1) | gzip -9n > bsd.lif
bsd.rd: mr.fs
cp bsd bsd.rd
rdsetroot bsd.rd mr.fs
strip -R .SUNW_ctf bsd.rd
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
.ifdef RELEASEDIR
install:
cp bsd.rd ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${LIF} ${RELEASEDIR}
cp ${CDROM} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.mk instbin.cache \
lib*.a lib*.olist instbin.map \
instbin.conf *.o *.lo *.c bsd bsd.* ${LIF} ${CDROM}
rm -rf mr.fs.d
.include <bsd.obj.mk>

View File

@ -1,97 +0,0 @@
# $OpenBSD: list,v 1.18 2021/07/18 15:18:48 deraadt Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/bioctl
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ffs
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
LINK instbin sbin/mknod
LINK instbin sbin/mount
LINK instbin sbin/mount_cd9660
LINK instbin sbin/mount_ffs
LINK instbin sbin/mount_nfs
LINK instbin sbin/newfs
LINK instbin sbin/ping sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/installboot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
SPECIAL awk -f ${UTILS}/trimcerts.awk ${DESTDIR}/etc/ssl/cert.pem etc/ssl/cert.pem
LINK instbin usr/bin/ftp-ssl usr/bin/ftp
SPECIAL rm usr/bin/ftp-ssl
# for disklabel(8) -B
COPY ${DESTDIR}/usr/mdec/sdboot usr/mdec/sdboot
LINK usr/mdec/sdboot usr/mdec/boot.lif
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb,hp2392,hpansi,hpsub,hpex,hp700-wy,hp70092 usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/../install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,8 +0,0 @@
# $OpenBSD: Makefile,v 1.3 2019/04/30 17:46:04 deraadt Exp $
SUBDIR= ramdisk
unconfig:
cd ramdisk; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,84 +0,0 @@
# $OpenBSD: Makefile,v 1.37 2023/04/28 12:26:43 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 5120
FSDISKTYPE= miniroot2.5M
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
MRDISKTYPE= rdroot2.5M
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
all: ${FS}
${FS}: bsd.gz
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
fdisk -i -y `cat vnd`
fdisk -u -y -f ${DESTDIR}/usr/mdec/mbr `cat vnd`
echo '/ *' | disklabel -wAT- `cat vnd`
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 4096 -f 512 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
installboot -vr ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/usr/mdec/boot
install -c -m 555 -o root -g wheel bsd.gz ${MOUNT_POINT}/bsd
ln ${MOUNT_POINT}/bsd ${MOUNT_POINT}/bsd.rd
df -i ${MOUNT_POINT}
umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
bsd.gz: bsd.rd
gzip -9cn bsd.rd > bsd.gz
bsd.rd: mr.fs
cp bsd bsd.rd
rdsetroot bsd.rd mr.fs
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
unconfig:
-umount -f ${MOUNT_POINT}
-[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
.ifdef RELEASEDIR
install:
cp bsd.gz ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${FS} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.mk instbin.cache \
lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd
rm -f instbin.conf
rm -rf cd-dir mr.fs.d
.include <bsd.obj.mk>

View File

@ -1,101 +0,0 @@
# $OpenBSD: install.md,v 1.46 2022/09/02 10:16:51 miod Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jason R. Thorpe.
#
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``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 REGENTS OR CONTRIBUTORS 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.
#
#
# machine dependent section of installation/upgrade script.
#
md_installboot() {
if ! installboot -r /mnt ${1}; then
echo "\nFailed to install bootblocks."
echo "You will not be able to boot OpenBSD from ${1}."
exit
fi
}
md_prep_fdisk() {
local _disk=$1 _q _d
while :; do
_d=whole
if disk_has $_disk mbr; then
fdisk $_disk
if disk_has $_disk mbr openbsd; then
_q=", use the (O)penBSD area"
_d=OpenBSD
fi
else
echo "MBR has invalid signature; not showing it."
fi
ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
case $resp in
[wW]*)
echo -n "Setting OpenBSD MBR partition to whole $_disk..."
fdisk -iy $_disk >/dev/null
echo "done."
return ;;
[eE]*)
# Manually configure the MBR.
cat <<__EOT
You will now create a single MBR partition to contain your OpenBSD data. This
partition must have an id of 'A6'; must *NOT* overlap other partitions; and
must be marked as the only active partition. Inside the fdisk command, the
'manual' command describes all the fdisk commands in detail.
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
disk_has $_disk mbr openbsd && return
echo No OpenBSD partition in MBR, try again. ;;
[oO]*)
[[ $_d == OpenBSD ]] || continue
return ;;
esac
done
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
md_prep_fdisk $_disk
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
}
md_consoleinfo() {
}

View File

@ -1,120 +0,0 @@
# $OpenBSD: list,v 1.52 2021/07/18 15:18:48 deraadt Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fdisk
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ext2fs
LINK instbin sbin/fsck_ffs
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
LINK instbin sbin/mknod
LINK instbin sbin/mount
LINK instbin sbin/mount_cd9660
LINK instbin sbin/mount_ext2fs
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 sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/ftp
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/installboot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
# firmware we might need
COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
COPY ${DESTDIR}/etc/firmware/zd1211 etc/firmware/zd1211
COPY ${DESTDIR}/etc/firmware/zd1211b etc/firmware/zd1211b
COPY ${DESTDIR}/etc/firmware/rum-rt2573 etc/firmware/rum-rt2573
COPY ${DESTDIR}/etc/firmware/run-rt2870 etc/firmware/run-rt2870
COPY ${DESTDIR}/etc/firmware/run-rt3071 etc/firmware/run-rt3071
COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-ext etc/firmware/atu-at76c503-i3863-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-int etc/firmware/atu-at76c503-i3863-int
COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-ext etc/firmware/atu-at76c503-rfmd-acc-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-int etc/firmware/atu-at76c503-rfmd-acc-int
COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-ext etc/firmware/atu-at76c505-rfmd-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-int etc/firmware/atu-at76c505-rfmd-int
COPY ${DESTDIR}/etc/firmware/atu-intersil-ext etc/firmware/atu-intersil-ext
COPY ${DESTDIR}/etc/firmware/atu-intersil-int etc/firmware/atu-intersil-int
COPY ${DESTDIR}/etc/firmware/atu-license etc/firmware/atu-license
COPY ${DESTDIR}/etc/firmware/atu-rfmd-ext etc/firmware/atu-rfmd-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd-int etc/firmware/atu-rfmd-int
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-ext etc/firmware/atu-rfmd2958-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-int etc/firmware/atu-rfmd2958-int
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-ext etc/firmware/atu-rfmd2958smc-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
# for fdisk(8)
COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,8 +0,0 @@
# $OpenBSD: Makefile,v 1.5 2019/04/30 17:46:04 deraadt Exp $
SUBDIR= ramdisk
unconfig:
cd ramdisk; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,100 +0,0 @@
# $OpenBSD: Makefile,v 1.34 2023/04/28 08:45:25 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 18432
FSDISKTYPE= miniroot
CDROM= cd${OSrev}.iso
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
MRDISKTYPE= rdroot
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
MSDOSSTART= 63
MSDOSSIZE!= expr ${FSSIZE} - ${MSDOSSTART}
all: ${FS} ${CDROM}
# PMON cannot load a gzipped kernel
${FS}: bsd.strip
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
fdisk -iy -b "${MSDOSSIZE}@${MSDOSSTART}:83" `cat vnd` > /dev/null
disklabel -wd `cat vnd` > /dev/null
newfs_ext2fs /dev/r`cat vnd`i
mount /dev/`cat vnd`i ${MOUNT_POINT}
install -c -m 555 -o root -g wheel bsd.strip ${MOUNT_POINT}/bsd
ln ${MOUNT_POINT}/bsd ${MOUNT_POINT}/bsd.rd
df -i ${MOUNT_POINT}
-umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
${CDROM}: bsd.rd
rm -rf ${.OBJDIR}/cd-dir
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
mkdir -p ${.OBJDIR}/cd-dir/etc
echo "set image /${OSREV}/${MACHINE}/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf
cp ${.OBJDIR}/bsd.rd ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
mkhybrid -a -R -T -L -l -d -D -N -o ${.OBJDIR}/${CDROM} \
-A "SecBSD ${OSREV} ${MACHINE} bootonly CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} boot CD" \
${.OBJDIR}/cd-dir
bsd.strip: bsd.rd
objcopy -S -R .comment -R .SUNW_ctf bsd.rd bsd.strip
bsd.rd: mr.fs
cp bsd bsd.rd
rdsetroot bsd.rd mr.fs
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -M -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
unconfig:
-umount -f ${MOUNT_POINT}
-[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
.ifdef RELEASEDIR
install:
cp bsd.rd ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${FS} ${RELEASEDIR}
cp ${CDROM} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.mk instbin.cache \
lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd cd${OSrev}.iso
rm -rf cd-dir mr.fs.d
rm -f ${CDROM}
.include <bsd.obj.mk>

View File

@ -1,147 +0,0 @@
# $OpenBSD: install.md,v 1.32 2023/03/07 17:37:26 kn Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jason R. Thorpe.
#
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``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 REGENTS OR CONTRIBUTORS 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.
#
#
# machine dependent section of installation/upgrade script.
#
md_installboot() {
local _disk=$1
case $(sysctl -n hw.product) in
Gdium)
mount -t ext2fs /dev/${_disk}i /mnt2
mkdir -p /mnt2/boot
cp /mnt/usr/mdec/boot /mnt2/boot/boot
cp /mnt/bsd /mnt2/boot/bsd
umount /mnt2
;;
*)
if ! installboot -r /mnt ${_disk}; then
echo "\nFailed to install bootblocks."
echo "You will not be able to boot OpenBSD from ${_disk}."
exit
fi
;;
esac
}
md_prep_fdisk() {
local _disk=$1 _q _d _o
while :; do
_d=whole
if disk_has $_disk mbr; then
fdisk $_disk
if disk_has $_disk mbr openbsd; then
_q=", use the (O)penBSD area"
_d=OpenBSD
fi
else
echo "MBR has invalid signature; not showing it."
fi
ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
case $resp in
[wW]*)
case $(sysctl -n hw.product) in
Gdium)
echo -n "Creating a 32MB ext2 partition and an OpenBSD partition for rest of $_disk..."
fdisk -iy -b "65536@1:83" $_disk >/dev/null
_o="-O 1 -b 4096"
;;
EBT700)
echo -n "Creating a 1MB ext2 partition and an OpenBSD partition for rest of $_disk..."
fdisk -iy -b "2048@1:83" $_disk >/dev/null
_o="-O 1"
;;
*)
echo -n "Creating a 1MB ext2 partition and an OpenBSD partition for rest of $_disk..."
fdisk -iy -b "2048@1:83" $_disk >/dev/null
_o=""
;;
esac
echo "done."
installboot -p $_disk
break ;;
[eE]*)
# Manually configure the MBR.
cat <<__EOT
You will now create one MBR partition to contain your OpenBSD data
and one MBR partition to contain the program that PMON uses
to boot OpenBSD. Neither partition will overlap any other partition.
The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
partition will have an id of '83' (Linux files). The boot partition will be
at least 1MB and be the first 'Linux files' partition on the disk.
The installer assumes there is already an ext2 or ext3 filesystem on the
first 'Linux files' partition.
$(fdisk ${_disk})
__EOT
fdisk -e $_disk
disk_has $_disk mbr linux ||
{ echo "\nNo Linux files (id 83) partition!\n"; continue; }
disk_has $_disk mbr openbsd ||
{ echo "\nNo OpenBSD (id A6) partition!\n"; continue; }
disklabel $_disk 2>/dev/null | grep -q "^ i:" || disklabel -w -d $_disk
break ;;
[oO]*)
[[ $_d == OpenBSD ]] || continue
break ;;
esac
done
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
md_prep_fdisk $_disk
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
cat <<__EOT
Once the machine has rebooted use PMON to boot into OpenBSD, as
described in the INSTALL.$ARCH document.
To load the OpenBSD bootloader, use 'boot /dev/fs/ext2@wd0/boot/boot',
where wd0 is the PMON name of the boot disk.
__EOT
}
md_consoleinfo() {
}

View File

@ -1,118 +0,0 @@
# $OpenBSD: list,v 1.38 2022/05/23 16:58:10 krw Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fdisk
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ffs
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
LINK instbin sbin/kbd
LINK instbin sbin/mknod
LINK instbin sbin/mount
LINK instbin sbin/mount_cd9660
LINK instbin sbin/mount_ext2fs
LINK instbin sbin/mount_ffs
LINK instbin sbin/mount_msdos
LINK instbin sbin/mount_nfs
LINK instbin sbin/mount_udf
LINK instbin sbin/newfs
LINK instbin sbin/newfs_ext2fs
LINK instbin sbin/newfs_msdos
LINK instbin sbin/ping sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/ftp
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/installboot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
# firmware we might need
COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
COPY ${DESTDIR}/etc/firmware/rum-rt2573 etc/firmware/rum-rt2573
COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-ext etc/firmware/atu-at76c503-i3863-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-int etc/firmware/atu-at76c503-i3863-int
COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-ext etc/firmware/atu-at76c503-rfmd-acc-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-int etc/firmware/atu-at76c503-rfmd-acc-int
COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-ext etc/firmware/atu-at76c505-rfmd-ext
COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-int etc/firmware/atu-at76c505-rfmd-int
COPY ${DESTDIR}/etc/firmware/atu-intersil-ext etc/firmware/atu-intersil-ext
COPY ${DESTDIR}/etc/firmware/atu-intersil-int etc/firmware/atu-intersil-int
COPY ${DESTDIR}/etc/firmware/atu-license etc/firmware/atu-license
COPY ${DESTDIR}/etc/firmware/atu-rfmd-ext etc/firmware/atu-rfmd-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd-int etc/firmware/atu-rfmd-int
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-ext etc/firmware/atu-rfmd2958-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-int etc/firmware/atu-rfmd2958-int
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-ext etc/firmware/atu-rfmd2958smc-ext
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
COPY ${DESTDIR}/etc/firmware/ral-rt2561 etc/firmware/ral-rt2561
COPY ${DESTDIR}/etc/firmware/ral-rt2561s etc/firmware/ral-rt2561s
COPY ${DESTDIR}/etc/firmware/ral-rt2661 etc/firmware/ral-rt2661
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,8 +0,0 @@
# $OpenBSD: Makefile,v 1.3 2019/04/30 17:46:04 deraadt Exp $
SUBDIR=ramdisk
unconfig:
cd ramdisk; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,80 +0,0 @@
# $OpenBSD: Makefile,v 1.34 2023/04/28 12:26:43 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 8192
FSDISKTYPE= miniroot
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
MRDISKTYPE= rdroot
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
LDSTATIC=-static
all: ${FS}
${FS}: bsd.rd
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
echo '/ *' | disklabel -wAT- `cat vnd`
newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
install -c -m 555 -o root -g wheel \
${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
ln ${MOUNT_POINT}/boot ${MOUNT_POINT}/vmunix
install -c -m 555 -o root -g wheel bsd.rd ${MOUNT_POINT}/bsd
df -i ${MOUNT_POINT}
umount ${MOUNT_POINT}
vnconfig -u `cat vnd`
rm -f vnd
bsd.rd: mr.fs
cp bsd bsd.rd
rdsetroot bsd.rd mr.fs
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
unconfig:
-umount -f ${MOUNT_POINT}
-[ -f vnd ] && vnconfig -u `cat vnd` && rm -f vnd
.ifdef RELEASEDIR
install:
cp bsd.rd ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${FS} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.conf instbin.mk instbin.cache \
lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd
rm -rf mr.fs.d
.include <bsd.obj.mk>

View File

@ -1,58 +0,0 @@
# $OpenBSD: install.md,v 1.27 2020/05/25 06:18:53 otto Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jason R. Thorpe.
#
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``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 REGENTS OR CONTRIBUTORS 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.
#
#
# machine dependent section of installation/upgrade script.
#
MDTERM=vt100
# FFS2 not supported for booting, use FFS1
MDROOTFSOPT="-f 1024 -b 8192 -O1"
NCPU=$(sysctl -n hw.ncpufound)
md_installboot() {
cat /mnt/usr/mdec/boot > /mnt/boot
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
}
md_consoleinfo() {
}

View File

@ -1,88 +0,0 @@
# $OpenBSD: list,v 1.45 2021/07/18 15:18:49 deraadt Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ffs
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
LINK instbin sbin/mknod
LINK instbin sbin/mount
LINK instbin sbin/mount_cd9660
LINK instbin sbin/mount_ffs
LINK instbin sbin/mount_nfs
LINK instbin sbin/newfs
LINK instbin sbin/ping sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/ftp
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,12 +0,0 @@
# $OpenBSD: Makefile,v 1.4 2014/07/20 05:06:42 deraadt Exp $
SUBDIR= ramdisk
.if make(obj) || make(cleandir) || make(clean)
SUBDIR+= iso
.endif
unconfig:
cd ramdisk; ${MAKE} unconfig
.include <bsd.subdir.mk>

View File

@ -1,48 +0,0 @@
# $OpenBSD: Makefile,v 1.18 2019/05/01 20:53:55 deraadt Exp $
CDROM= install${OSrev}.iso
RELXDIR?= /home/relx-${MACHINE}
RELDIR?= /home/rel-${MACHINE}
BASE= ${RELDIR}/base${OSrev}.tgz ${RELDIR}/comp${OSrev}.tgz \
${RELDIR}/game${OSrev}.tgz ${RELDIR}/man${OSrev}.tgz \
${RELDIR}/bsd ${RELDIR}/bsd.rd ${RELDIR}/bsd.mp \
${RELDIR}/INSTALL.${MACHINE}
XBASE= ${RELXDIR}/xbase${OSrev}.tgz ${RELXDIR}/xfont${OSrev}.tgz \
${RELXDIR}/xshare${OSrev}.tgz ${RELXDIR}/xserv${OSrev}.tgz
all: ${CDROM}
${CDROM}: ${BASE} ${XBASE}
rm -rf ${.OBJDIR}/cd-dir/
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/
cp -p ${BASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${XBASE} ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cat ${RELDIR}/SHA256 ${RELXDIR}/SHA256 > \
${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/SHA256
# XXX no SHA256.sig
cp ${.CURDIR}/../../../sys/arch/${MACHINE}/stand/tbxidata/bsd.tbxi \
${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp -p ${RELDIR}/ofwboot ${.OBJDIR}/cd-dir/
mkhybrid -r -part -hfs \
-hfs-bless ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE} \
-map ${.CURDIR}/../../../gnu/usr.sbin/mkhybrid/src/more.mapping \
-A "SecBSD ${OSREV} ${MACHINE} Install CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} Install CD" \
-o ${.OBJDIR}/${CDROM} ${.OBJDIR}/cd-dir
install:
cp ${CDROM} ${RELDIR}/
clean cleandir:
rm -f ${CDROM}
rm -rf cd-dir
.include <bsd.obj.mk>

View File

@ -1,80 +0,0 @@
# $OpenBSD: Makefile,v 1.53 2023/04/28 08:45:25 krw Exp $
CDROM= cd${OSrev}.iso
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
all: ${CDROM}
${CDROM}: bsd.gz
rm -rf ${.OBJDIR}/cd-dir/
mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/
cp bsd.gz ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/bsd.rd
# On HFS, doing the following means COPIES of the files.. therefore
# we skip doing so.
# ln ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}/bsd.rd ${.OBJDIR}/cd-dir/bsd.rd
# ln ${.OBJDIR}/cd-dir/bsd.rd ${.OBJDIR}/cd-dir/bsd
cp ${DESTDIR}/usr/mdec/bsd.tbxi ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE}
cp ${DESTDIR}/usr/mdec/ofwboot ${.OBJDIR}/cd-dir/
mkhybrid -r -part -hfs \
-hfs-bless ${.OBJDIR}/cd-dir/${OSREV}/${MACHINE} \
-map ${.CURDIR}/../../../gnu/usr.sbin/mkhybrid/src/more.mapping \
-A "SecBSD ${OSREV} ${MACHINE} bootonly CD" \
-P "Copyright (c) `date +%Y` Purple Rain, The SecBSD project" \
-p "Purple Rain <purplerain@secbsd.org>" \
-V "SecBSD/${MACHINE} ${OSREV} boot-only CD" \
-o ${CDROM} ${.OBJDIR}/cd-dir
MRDISKTYPE= rdroot
MRMAKEFSARGS= -o disklabel=${MRDISKTYPE},minfree=0,density=4096
bsd.gz: bsd.rd
gzip -9cn bsd.rd > bsd.gz
bsd.rd: mr.fs
objcopy -g -x -R .comment -R .SUNW_ctf \
-K rd_root_size -K rd_root_image \
bsd bsd.rd
rdsetroot bsd.rd mr.fs
bsd:
cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \
su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}'
cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd
mr.fs: instbin bsd
rm -rf $@.d
install -d -o root -g wheel $@.d
mtree -def ${MTREE} -p $@.d -u
CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} OSrev=${OSrev} \
TARGDIR=$@.d UTILS=${UTILS} RELEASEDIR=${RELEASEDIR} \
sh ${UTILS}/runlist.sh ${LISTS}
rm $@.d/instbin
makefs ${MRMAKEFSARGS} $@ $@.d
instbin.mk instbin.cache instbin.c: instbin.conf
crunchgen -E -M -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib \
-c instbin.c -e instbin -m instbin.mk instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
.ifdef RELEASEDIR
install:
cp bsd.gz ${RELEASEDIR}/bsd.rd
chmod a+r ${RELEASEDIR}/bsd.rd
cp ${CDROM} ${RELEASEDIR}
.endif
clean cleandir:
rm -f *.core mr.fs instbin instbin.mk instbin.cache \
lib*.a lib*.olist instbin.map *.o *.lo *.c bsd bsd.rd cd${OSrev}.iso
rm -rf cd-dir mr.fs.d
.include <bsd.obj.mk>

View File

@ -1,184 +0,0 @@
# $OpenBSD: install.md,v 1.77 2023/03/27 19:43:36 kn Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jason R. Thorpe.
#
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``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 REGENTS OR CONTRIBUTORS 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.
#
#
# machine dependent section of installation/upgrade script.
#
MDXAPERTURE=2
MDXDM=y
NCPU=$(sysctl -n hw.ncpufound)
md_installboot() {
if ! installboot -r /mnt ${1}; then
echo "\nFailed to install bootblocks."
echo "You will not be able to boot OpenBSD from ${1}."
exit
fi
}
md_prep_MBR() {
local _disk=$1 _q _d
if disk_has $_disk hfs; then
cat <<__EOT
WARNING: Putting an MBR partition table on $_disk will DESTROY the existing HFS
partitions and HFS partition table:
$(pdisk -l $_disk)
__EOT
ask_yn "Are you *sure* you want an MBR partition table on $_disk?"
[[ $resp == n ]] && return 1
fi
while :; do
_d=whole
if disk_has $_disk mbr; then
fdisk $_disk
if disk_has $_disk mbr openbsd; then
_q=", use the (O)penBSD area"
_d=OpenBSD
fi
else
echo "MBR has invalid signature; not showing it."
fi
ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
case $resp in
[wW]*)
echo -n "Creating a 1MB DOS partition and an OpenBSD partition for rest of $_disk..."
dd if=/dev/zero of=/dev/r${_disk}c bs=1m count=1 status=none
fdisk -iy -b "2048@1:06" $_disk >/dev/null
echo "done."
break ;;
[eE]*)
# Manually configure the MBR.
cat <<__EOT
You will now create one MBR partition to contain your OpenBSD data
and one MBR partition to contain the program that Open Firmware uses
to boot OpenBSD. Neither partition will overlap any other partition.
The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
partition will have an id of '06' (DOS). The boot partition will be
at least 1MB and be marked as the *only* active partition.
$(fdisk $_disk)
__EOT
fdisk -e $_disk
disk_has $_disk mbr dos ||
{ echo "\nNo DOS (id 06) partition!\n"; continue; }
disk_has $_disk mbr dos_active ||
{ echo "\nNo active DOS partition!\n"; continue; }
disk_has $_disk mbr openbsd ||
{ echo "\nNo OpenBSD (id A6) partition!\n"; continue; }
break ;;
[oO]*)
[[ $_d == OpenBSD ]] || continue
break ;;
esac
done
installboot -p $_disk
}
md_prep_HFS() {
local _disk=$1 _d _q
while :; do
_q=
_d=Modify
disk_has $_disk hfs openbsd &&
{ _q="Use the (O)penBSD partition, "; _d=OpenBSD; }
pdisk -l $_disk
ask "$_q(M)odify a partition or (A)bort?" "$_d"
case $resp in
[aA]*) return 1 ;;
[oO]*) return 0 ;;
[mM]*) pdisk $_disk
disk_has $_disk hfs openbsd && break
echo "\nNo 'OpenBSD'-type partition named 'OpenBSD'!"
esac
done
return 0;
}
md_prep_disklabel() {
local _disk=$1 _f=/tmp/i/fstab.$1
PARTTABLE=
while [[ -z $PARTTABLE ]]; do
resp=MBR
disk_has $_disk hfs && ask "Use (H)FS or (M)BR partition table?" MBR
case $resp in
[mM]*) md_prep_MBR $_disk && PARTTABLE=MBR ;;
[hH]*) md_prep_HFS $_disk && PARTTABLE=HFS ;;
esac
done
disklabel_autolayout $_disk $_f || return
[[ -s $_f ]] && return
# Edit disklabel manually.
# Abandon all hope, ye who enter here.
disklabel -F $_f -E $_disk
}
md_congrats() {
cat <<__EOT
INSTALL.$ARCH describes how to configure Open Firmware to boot OpenBSD. The
command to boot OpenBSD will be something like 'boot hd:,ofwboot /bsd'.
__EOT
if [[ $PARTTABLE == HFS ]]; then
cat <<__EOT
NOTE: You must use MacOS to copy 'ofwboot' from the OpenBSD install media to
the first HFS partition of $ROOTDISK.
__EOT
fi
}
md_consoleinfo() {
local _u _d=zstty
for _u in $(scan_dmesg "/^$_d\([0-9]\) .*/s//\1/p"); do
if [[ $_d$_u == $CONSOLE || -z $CONSOLE ]]; then
CDEV=$_d$_u
: ${CSPEED:=57600}
set -- a b c d e f g h i j
shift $_u
CTTY=tty$1
return
fi
done
}

View File

@ -1,112 +0,0 @@
# $OpenBSD: list,v 1.79 2023/04/28 01:24:14 kevlo Exp $
SRCDIRS distrib/special
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/arch
LINK instbin bin/cat
LINK instbin bin/chmod bin/chgrp sbin/chown
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/ed
LINK instbin bin/hostname
LINK instbin bin/ksh bin/sh
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/md5 bin/sha256 bin/sha512
LINK instbin bin/mkdir
LINK instbin bin/mt bin/eject
LINK instbin bin/mv
LINK instbin bin/pax bin/tar
LINK instbin bin/rm
LINK instbin bin/sleep
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin sbin/bioctl
LINK instbin sbin/dhcpleased
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/fdisk
LINK instbin sbin/fsck
LINK instbin sbin/fsck_ffs
LINK instbin sbin/fsck_msdos
LINK instbin sbin/growfs
LINK instbin sbin/ifconfig
LINK instbin sbin/init
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/mount_udf
LINK instbin sbin/newfs
LINK instbin sbin/newfs_msdos
LINK instbin sbin/pdisk
LINK instbin sbin/ping sbin/ping6
LINK instbin sbin/reboot sbin/halt
LINK instbin sbin/resolvd
LINK instbin sbin/route
LINK instbin sbin/slaacd
LINK instbin sbin/sysctl
LINK instbin sbin/umount
LINK instbin usr/bin/doas
LINK instbin usr/bin/encrypt
LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
LINK instbin usr/bin/more usr/bin/less
LINK instbin usr/bin/sed
LINK instbin usr/bin/signify
LINK instbin usr/bin/tee
LINK instbin usr/sbin/chroot
LINK instbin usr/sbin/installboot
LINK instbin usr/sbin/pwd_mkdb
ARGVLINK ksh -sh
SPECIAL rm bin/md5
SPECIAL awk -f ${UTILS}/trimcerts.awk ${DESTDIR}/etc/ssl/cert.pem etc/ssl/cert.pem
LINK instbin usr/bin/ftp-ssl usr/bin/ftp
SPECIAL rm usr/bin/ftp-ssl
# firmware we might need
#COPY ${DESTDIR}/etc/firmware/tigon1 etc/firmware/tigon1
#COPY ${DESTDIR}/etc/firmware/tigon2 etc/firmware/tigon2
COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
COPY ${DESTDIR}/etc/firmware/rum-rt2573 etc/firmware/rum-rt2573
COPY ${DESTDIR}/etc/firmware/run-rt2870 etc/firmware/run-rt2870
COPY ${DESTDIR}/etc/firmware/run-rt3071 etc/firmware/run-rt3071
COPY ${DESTDIR}/etc/firmware/urtwn-rtl8188eu etc/firmware/urtwn-rtl8188eu
COPY ${DESTDIR}/etc/firmware/urtwn-rtl8188ftv etc/firmware/urtwn-rtl8188ftv
COPY ${DESTDIR}/etc/firmware/urtwn-rtl8192cT etc/firmware/urtwn-rtl8192cT
COPY ${DESTDIR}/etc/firmware/urtwn-rtl8192cU etc/firmware/urtwn-rtl8192cU
COPY ${DESTDIR}/etc/firmware/urtwn-rtl8192eu etc/firmware/urtwn-rtl8192eu
# copy the MAKEDEV script and make some devices
SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
# various files that we need in /etc for the install
COPY ${CURDIR}/../../miniroot/group etc/group
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/secbsd-${OSrev}-base.pub etc/signify/secbsd-${OSrev}-base.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
SYMLINK /tmp/i/fstab.shadow etc/fstab
SYMLINK /tmp/i/hosts etc/hosts
# and the installation tools
SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
SCRIPT ${CURDIR}/install.md install.md
SPECIAL chmod 755 install.sub
SYMLINK install.sub autoinstall
SYMLINK install.sub install
SYMLINK install.sub upgrade
TZ

View File

@ -1,5 +1,5 @@
#!/bin/ksh
# $OpenBSD: install.sub,v 1.1244 2023/05/02 15:55:58 deraadt Exp $
# $OpenBSD: install.sub,v 1.1249 2023/06/06 09:35:44 kn Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@ -77,7 +77,7 @@ wait_cgiinfo() {
local _l _s _key _val
if [ -f /tmp/cgipid ]; then
wait "$(cat /tmp/cgipid)" 2>/dev/null
wait "$(</tmp/cgipid)" 2>/dev/null
rm -f /tmp/cgipid
fi
@ -346,8 +346,6 @@ get_dkdevs_root() {
for _d in $_disks; do
is_rootdisk "$_d" || _disks=$(rmel "$_d" $_disks)
done
else
_disks=$(rmel "$CRYPTOCHUNK" $_disks)
fi
echo $_disks
}
@ -2408,7 +2406,7 @@ is_rootdisk() {
# Get global root information. ie. ROOTDISK, ROOTDEV and SWAPDEV.
get_rootinfo() {
local _default=${CRYPTOVOLUME:-$(get_dkdevs_root)} _dkdev
local _default=$(get_dkdevs_root) _dkdev
local _q="Which disk is the root disk? ('?' for details)"
while :; do
@ -2417,8 +2415,6 @@ get_rootinfo() {
case $resp in
"?") diskinfo $(get_dkdevs);;
'') ;;
$CRYPTOCHUNK)
echo "$resp is used for root disk encryption.";;
*) # Translate $resp to disk dev name in case it is a DUID.
# get_dkdev_name bounces back the disk dev name if not.
_dkdev=$(get_dkdev_name "$resp")
@ -2654,7 +2650,7 @@ start_cgiinfo() {
(
sleep 12;
if [ -f /tmp/cgipid ]; then
kill -INT -"$(cat /tmp/cgipid)" >/dev/null 2>&1
kill -INT -"$(</tmp/cgipid)" >/dev/null 2>&1
# wait will be done by wait_cgiinfo
fi
) &
@ -3082,7 +3078,6 @@ do_autoinstall() {
encrypt_root() {
local _chunk _tries=0
local _q="Encrypt the root disk? (disk, 'no' or '?' for details)"
[[ $MDBOOTSR == y ]] || return
@ -3093,25 +3088,13 @@ encrypt_root() {
# e.g. auto-assembled at boot or done in (S)hell.
[[ -z $(get_softraid_volumes) ]] || return
while :; do
echo "Available disks are: $(get_dkdevs | sed 's/^$/none/')."
_ask "$_q" no || continue
case $resp in
'?') cat <<'__EOT'
Create a passphrase protected CRYPTO softraid volume to be used as root disk.
__EOT
diskinfo $(get_dkdevs);;
'') ;;
n|no) return;;
*) isin "$resp" $(get_dkdevs) && break
echo 'No such disk.';;
esac
done
_chunk=$resp
log_answers "$_q" $_chunk
ask_yn 'Encrypt the root disk? (passphrase CRYPTO softraid)' || return
_chunk=$ROOTDISK
echo "\nConfiguring the crypto chunk $_chunk...\n"
make_dev $_chunk
md_prep_fdisk $_chunk softraid
md_prep_fdisk $_chunk
echo 'RAID *' | disklabel -w -A -T- $_chunk
until bioctl -c C -l ${_chunk}a softraid0 >/dev/null; do
@ -3119,10 +3102,11 @@ __EOT
((++_tries < 3)) || exit
done
CRYPTOCHUNK=$_chunk
# No volumes existed before asking, but we just created one.
# Save it for later as sane root disk default.
CRYPTOVOLUME=$(get_softraid_volumes)
ROOTDISK=$(get_softraid_volumes)
ROOTDEV=${ROOTDISK}a
SWAPDEV=${ROOTDISK}b
echo "\nConfiguring the root disk $ROOTDISK...\n"
}
do_install() {
@ -3178,11 +3162,11 @@ do_install() {
echo
encrypt_root
# Get information about ROOTDISK, etc.
get_rootinfo
encrypt_root
DISKS_DONE=
FSENT=
@ -3454,7 +3438,7 @@ do_upgrade() {
# Perform final steps common to both an install and an upgrade.
finish_up
if [ -f /tmp/wdpid ]; then
kill -KILL "$(cat /tmp/wdpid)" 2>/dev/null
kill -KILL "$(</tmp/wdpid)" 2>/dev/null
# do not bother waiting
rm -f /tmp/wdpid
fi
@ -3485,7 +3469,7 @@ WATCHDOG_PERIOD_SEC=$((30 * 60))
reset_watchdog() {
local _pid
if [ -f /tmp/wdpid ]; then
_pid=$(cat /tmp/wdpid)
_pid=$(</tmp/wdpid)
kill -KILL -$_pid 2>/dev/null
wait $_pid 2>/dev/null
rm -f /tmp/wdpid
@ -3594,8 +3578,6 @@ INSTALL_METHOD=
NIFS=0
export PS1="$MODE# "
PUB_KEY=/etc/signify/secbsd-${VERSION}-base.pub
CRYPTOCHUNK=
CRYPTOVOLUME=
ROOTDEV=
ROOTDISK=
SETDIR="$VNAME/$ARCH"

View File

@ -18,8 +18,7 @@ all: $(TARG)
allarchs:
@cd $(.CURDIR); \
for arch in alpha amd64 arm64 armv7 hppa i386 landisk \
loongson luna88k macppc octeon powerpc64 riscv64 sparc64; \
for arch in amd64 arm64 armv7 i386; \
do ${MAKE} M=$$arch; done
$(TARG): $(DEP)

View File

@ -1,47 +0,0 @@
dnl $OpenBSD: contents,v 1.65 2023/03/16 18:04:07 miod Exp $
TopPart
OpenBSDminiroot
It can be copied to the swap partition of an existing
disk to allow installing or upgrading to OpenBSD OSREV.
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDinstalliso
OpenBSDcd
bootxx, boot The OpenBSD/MACHINE first and second-level boot
loaders; useful to update your boot loader if you want
to reinstall from an old OpenBSD setup but the existing
boot loader is too old to load bsd.rd correctly.
netboot The OpenBSD/MACHINE network boot loader, for bootp
or dhcpd protocols.
netboot.mop The OpenBSD/MACHINE network boot loader, for MOP
protocol.
DistributionDescription(eight)
OpenBSDbase(107706249,250708896)
OpenBSDcomp(50879337,197833550)
OpenBSDgame(2873725,6929574)
OpenBSDman(8026287,30965601)
OpenBSDxbase(12248020,40346812)
OpenBSDxfont(23519039,35818896)
OpenBSDxserv(2131336,5054286)
OpenBSDxshare(4695710,24958269)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.4 2021/03/15 09:29:51 jsg Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/alpha/common/install.md
dnl and the list files in
dnl src/distrib/alpha/{common/list,bsd.rd/list.local}
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},MACHINE)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},1)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},1)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},1)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,176 +0,0 @@
dnl $OpenBSD: hardware,v 1.109 2014/02/27 18:48:14 deraadt Exp $
OpenBSD/MACHINE OSREV is expected to run on the following hardware.
If you have hardware that is listed here and are unable to run OpenBSD,
or if you are able to run OpenBSD on hardware not listed here, please
send mail to <alpha@OpenBSD.org> with as much information as possible.
Supported hardware:
DS15, DS15A, DS25, ES45, TS15 and TS202C
Supported devices:
Built-in serial and parallel ports.
Built-in Ethernet.
Built-in SCSI.
Built-in IDE controller.
Most PCI devices (see below).
Unsupported devices:
Floppy drive.
XP900, XP1000, CS20, DS10, DS20, DS20L, ES40, 264DP, and other EV6
machines using the Tsunami chipset
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21143 Ethernet.
Built-in ISP SCSI.
Built-in IDE controller.
Built-in USB should work, but has not been thoroughly
tested.
Most PCI devices (see below).
Some ISA devices (see below).
Unsupported devices:
Floppy drive.
ISA devices that require DMA operation.
API UP1000, UP1100, UP2000, and UP2000+ and other EV6 machines using the
Irongate chipset
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21040 Ethernet.
Built-in IDE controller works, though there may be stability
issues.
Unsupported devices:
Floppy drive.
ISA devices that require DMA operation.
Digital Personal Workstation (Miata)
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21043 Ethernet.
Built-in ISP SCSI, when present (i.e. on ``au'' models).
Built-in IDE controller.
Most PCI devices (see below).
Some ISA devices (see below).
Unsupported devices:
Floppy drive.
Built-in audio.
ISA devices that require DMA operation.
EB164 based machines (including PC164, 164SX, 164LX, but NOT the 164UX)
Supported devices:
Built-in serial and parallel ports.
Built-in PCIIDE controller, when present.
PCI graphics card (TGA or VGA compatible).
Most PCI devices (see below).
Some ISA devices (see below).
Unsupported devices:
Floppy drive.
ISA IDE controller on the EB164.
ISA devices that require DMA operation.
AlphaStation 600A and 1200
AlphaServer 800 (also known as Digital Server 3300 and 3305), 1000, 1000A
AlphaServer 1200, 4000 and 4100
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21040 Ethernet.
Built-in ISP SCSI.
PCI graphics card (TGA or VGA compatible).
Most PCI devices (see below).
Some ISA and EISA devices (see below).
Unsupported devices:
Floppy drive.
Built-in audio.
ISA and EISA devices that require DMA operation.
AlphaServer 300 and 400, and AlphaStation 200, 250, 255 and 400
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21040 Ethernet.
Built-in ISP SCSI.
PCI graphics card (TGA or VGA compatible).
Most PCI devices (see below).
Some ISA devices (see below).
Unsupported devices:
Floppy drive.
Built-in audio.
ISA devices that require DMA operation.
AlphaStation 500 and 600
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21040 Ethernet.
Built-in ISP SCSI.
PCI graphics card (TGA or VGA compatible).
Most PCI devices (see below).
Some ISA and EISA devices (see below).
Unsupported devices:
Floppy drive.
Built-in audio.
ISA and EISA devices that require DMA operation.
AXPpci based machines (including ``Noname'', UDB, Multia)
Supported devices:
Built-in serial and parallel ports.
Built-in DEC21040 Ethernet.
Built-in 53C810 SCSI (siop).
Built-in IDE controller. (will not boot from IDE, though)
PCI graphics card (TGA or VGA compatible).
dnl not tested yet
dnl PCMCIA slots on Multia.
Most PCI devices (see below).
Some ISA devices (see below).
Unsupported devices:
Floppy drive.
ISA devices that require DMA operation.
DEC 3000 models 300{,L,X,LX}
Supported devices:
Built-in serial ports.
Built-in LANCE Ethernet.
Built-in SCSI (53C94).
TURBOchannel LANCE Ethernet cards (PMAD-A).
TURBOchannel SCSI (53C94) (PMAZ-A).
TURBOchannel DEFTA FDDI cards (PMAF-FA).
Unsupported devices:
Built-in ISDN/audio chip.
Built-in framebuffer.
Other TURBOchannel cards.
DEC 3000 models 400,500,500X,600,700,800,900
Supported devices:
Built-in serial ports.
Built-in LANCE Ethernet.
Built-in SCSI (53C94 or 53CF94-2).
TURBOchannel LANCE Ethernet cards (PMAD-A).
TURBOchannel SCSI (53C94) (PMAZ-A).
TURBOchannel DEFTA FDDI cards (PMAF-FA).
Unsupported devices:
Built-in ISDN/audio chip.
Built-in framebuffer (when applicable).
Other TURBOchannel cards.
Tadpole AlphaBook
Supported devices:
Built-in serial ports.
Built-in 53C810 SCSI (siop).
Built-in PCMCIA slots.
dnl move to PCMCIA section once Multia PCMCIA has been tested
3Com 3C589 and 3C562 PCMCIA Ethernet adapters.
Unsupported devices:
Built-in display (garbled output).
Other PCMCIA cards.
At this time none of the following systems are supported:
DECpc AXP150 (2000/300) ``Jensen'' systems (EISA-bus PC-like systems)
AlphaServer 2000, 2100 and 2100A
AlphaServer 8200, 8400, GS60 and GS140
AlphaServer ES47, ES80 and GS1280
AlphaServer GS80, GS160 and GS320
Alpha XL systems (no SRM)
DEC 4000, 7000, and 10000 systems (FutureBus+ and XMIBus-based)
EB64+ based systems
Samsung 164BX and 164UX (no SRM)
VME Alpha systems (AXPvme, ALPHAvme)
Console frame buffers and keyboards are only supported on systems explicitly
mentioned above. On other systems, including all TURBOchannel-based machines,
OpenBSD/MACHINE *must* be used with a serial console.

View File

@ -1,148 +0,0 @@
dnl $OpenBSD: install,v 1.43 2023/03/16 18:04:07 miod Exp $
OpenBSDInstallPrelude
There are several ways to install OpenBSD onto a disk. The easiest way is
to boot from the bootable CD-ROM mini image, then install from your favorite
source. Network booting is supported through means of dhcpd(8) and tftpd(8).
Booting from CD-ROM installation media:
At the SRM console prompt, enter
show device
to find the device ID of your CD-ROM drive (the device ID is
usually in the second column (``bootdev'') and should start
with DKA for a SCSI CD-ROM drive). If your drive shows up with
a drive number with trailing zeros, you will want to ignore them
(unless it is DKA0). For example, if your CD-ROM drive is listed
as DKA600, you want to use dka6 (device IDs are case
insensitive).
Insert the OpenBSD/MACHINE CD-ROM and enter
boot DEVICE
where DEVICE is the dka device name.
You should see info about the primary and secondary boot and then the
kernel should start to load. If the kernel fails to load or the
spinning cursor has stopped and nothing further has happened, you
either have a hardware problem or your MACHINE is not currently
supported by OpenBSD; try booting from the network instead if
possible.
Booting from Network:
In order to bootstrap via the network, you must provide a second
system to act as a boot server. It is convenient if this is a second
OpenBSD machine as the necessary services are already installed,
although source code for such programs as dhcpd can be found in
OpenBSD's source tree, and should be reasonably portable to other
Unix-like operating systems. More information on diskless booting
can be found in the OpenBSD diskless(8) manual page.
Alpha systems can download their boot code over the network either
using the old DEC MOP protocol, or the common bootp protocol.
Older systems, such as the DEC 3000 systems, can only use the MOP
protocol.
Booting from a bootp or dhcp server:
You will need to set up dhcpd on the server, which can serve
bootp protocol requests. Start by editing the /etc/dhcpd.conf
on the bootserver, and declare an information block. Here is an
example:
subnet 10.0.0.0 netmask 255.0.0.0 {
host piper {
always-reply-rfc1048 "true";
filename "netboot";
option root-path "/alpha";
hardware ethernet 08:00:2b:3d:28:2a;
fixed-address 10.42.42.42;
}
}
Do not forget to start dhcpd.
You will also need to start tftpd, for the system to download
the "netboot" file from the server in the /tftpboot directory.
Booting from a MOP server:
You will need to copy netboot.mop into
/tftpboot/mop/1a2b3c4d5e6f.SYS, where "1a2b3c4d5e6f" represents
the six octets of your Ethernet address, which can be obtained
with ``show dev'' at the SRM prompt. For example, the filename
for the machine in the dhcp example above would be
"08002b3d282a.SYS". Note that the MAC portion of the filename
must be lower case, but the "SYS" extension must be upper case.
Do not forget to start mopd.
Common netboot steps:
A few more services need to be enabled on the boot server.
First, add the Ethernet address to /etc/ethers file, as in:
08:00:2b:3d:28:2a piper
and start rarpd.
Second, you will need to export a directory for your new machine
to mount over NFS, in order to get its kernel. This is
accomplished by adding an entry to /etc/exports such as:
/alpha piper
The NFS server (which may be a different machine than the
MOP or dhcp server) will need to run nfsd, mountd, and the
rpc portmapper. See the exports(5) manpage for more
information.
Last, you will need to add an entry for your system in
/etc/bootparams, to point to the NFS server. For example:
piper root=myserver:/alpha
and start bootparamd.
Once loaded, the boot loader will mount /alpha over NFS and load
the kernel from there.
Installing using the CD-ROM or Network procedure:
OpenBSDInstallPart2
Boot your machine from the installation media as described above.
It will take a while to load the installation kernel, especially
from a slow network connection or a CD-ROM, most likely more than
a minute.
If some action doesn't eventually happen, or the spinning cursor
has stopped and nothing further has happened, either your boot
media is bad, your diskless setup is incorrect, or you may have
a hardware or configuration problem.
OpenBSDInstallPart3
OpenBSDInstallPart4
OpenBSDInstallPart5
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDDISKInstall({:-"wdN" or -:},{:-only -:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,192 +0,0 @@
dnl $OpenBSD: prep,v 1.36 2023/03/16 18:04:07 miod Exp $
OpenBSD/MACHINE requires the SRM console. Some alphas come with
the AlphaBIOS (also known as the ARC firmware on older machines) instead;
this is what Windows NT uses. It is fairly simple to replace the AlphaBIOS
with the SRM firmware.
Switching your MACHINE to SRM console:
AlphaServer class machines (except for models 300 and 400) and recent
enough machines (such as the Miata and later models) have enough
flash ROM space to carry both the AlphaBIOS and the SRM console.
To switch to SRM from AlphaBIOS, do the following:
- enter the AlphaBIOS setup upon startup
(F2 key, or Ctrl-B from serial console)
- choose "CMOS Setup" from the menu
- select "Advanced CMOS Setup" (F6 key, or Ctrl-F from serial console)
- change the "Console Selection" setting to "OpenVMS console (SRM)"
- confirm your changes with F10 (or Ctrl-U) twice, then enter.
- power-cycle your system for the changes to take effect.
If you didn't find a "Console Selection" entry (for example on 164SX or
164LX), your system can not hold both the AlphaBIOS and SRM console in
flash, and you will have to upgrade your firmware.
You can get replacement firmware either from a firmware update CD-ROM,
which can be downloaded from
https://archive.org/details/alphafwupcds
Note that, on most models, upgrading the firmware requires a jumper
to be moved on the motherboards; refer to the firmware update
instructions for details.
AXPpci33 Motherboard specific notes:
The 1994 version of the OEM guide has an incorrect pinout for the
serial ports. The newer version used to be available at
ftp://ftp.digital.com/pub/Digital/axppci/design_guide.ps.Z
with a corrected pinout (as well as more information than the 1994
edition). Although ftp.digital.com does not exist anymore, a few
copies of this document are scattered across various ftp servers
on the globe, such as
https://manx-docs.org/collections/antonio/dec/MDS-2000-01/cd1/ALPHA/AXPCIDGC.PDF
Note that there are two flavors of PC serial connectors. If you
have the wrong kind, you won't get any output from the serial console.
Using the SRM console:
This is not intended to be an exhaustive guide on using the
SRM firmware console. It should, however, give you enough
information to boot OpenBSD/MACHINE.
To see a list of devices connected to your alpha, you can
use the "show device" command. For booting, the devices you
are interested in are "dka*" (the disk drives).
You can set ROM variables by saying "set VARIABLE VALUE".
Some variables you will want to set:
auto_action
Determines what happens when you turn the power on,
halt, or restart your machine. Valid values are:
"halt"
the system will not autoboot, will restart when
rebooted (shutdown -r), and will not restart
when halted (shutdown -h).
"boot"
the system will autoboot on powerup, and when the
system is halted (shutdown -h) or rebooted
(shutdown -r).
"restart"
the system will autoboot on powerup, will restart
when rebooted (shutdown -r), and will not restart
when halted (shutdown -h).
Most users will want to set this to "restart".
bootdef_dev
Default boot device (or list of devices).
boot_file
Name of the kernel to boot. If this variable is empty,
the default "bsd" will be loaded. Note that this variable
does not exist in all versions of the SRM console.
To see a list of all variables on your machine, use the "show"
command with no arguments. If there are too many of them, you
might want to page with "show | more".
You can bypass the boot_file value from the command prompt, with the
-fi option. For example,
boot -fi bsd.rd dka0
will boot the "bsd.rd" kernel on dka0. However, some versions of the
SRM console (mainly on DEC 3000 series) will only let you specify
uppercase filenames. It is preferred to boot without any particular
option, and enter the correct filename at the boot loader "boot>"
prompt.
USB support on the XP1000:
For some unknown reason, the USB interface found on the XP1000
(and possibly the XP900 and the XP1100) is not enabled unless a
specific SRM environment variable is set.
If you plan to use USB devices on these machines, enter
set usb_enable on
at the SRM prompt, followed by
init
before attempting to install OpenBSD.
EISA configuration:
A few MACHINE systems support EISA devices. However, the SRM firmware
has only a very limited knowledge of EISA devices and is not able to
configure them.
Every time an EISA board is added to or removed from the system, the
EISA Configuration Utility needs to be run from a floppy disk using the
``runecu'' command at the SRM prompt. An ECU floppy disk is supposed to
be provided with EISA-capable systems; this disk will be updated with
the current configuration every time it is run, and needs to be
writeable. ECU disks should not be shared between systems.
Redistributing ECU is not allowed, however a copy of it can be
downloaded from:
https://archive.org/details/digitalecudisk
Extract this archive to a newly FAT-formatted 3"1/2 floppy disk to get
a pristine ECU disk.
SRM console boot device restrictions:
The SRM firmware on your system may or may not be able to boot from
any disk controller you may install in your MACHINE.
The built-in disk controllers on your MACHINE will always be supported,
however on IDE-based machines, such as the EB164, 164SX and 164LX, as
well as the low-end Personal Workstation (non-u models), you can plug
in a SCSI controller, and boot from it if it is recognized.
Recent SRM releases for these machines will be able to boot (or netboot)
from the following controllers:
QLogic PCI SCSI controllers
Symbios Logic (NCR) 53C8xx (but not on PC164)
Adaptec AHA-[23]9[34]x[U][W] cards
Intel i8255x-based cards (EtherExpress PRO)
The following controllers are known not to be supported as boot devices
by the SRM:
Adaptec AHA-[23]9[34]xU2 cards
Depending on your specific model, your mileage may vary, though.
OpenBSD/MACHINE console device restrictions:
On systems with no framebuffer supported (currently all
TURBOchannel-based machines), OpenBSD/MACHINE must be used with a
serial console.
Setting an Alpha system to use a serial console is system-specific.
Although most models will default to serial console if no keyboard
is connected on powerup, this behaviour can't be relied upon.
The recommended procedure is:
DEC 3000/[4-9]00
Flip the `S3' switch on the back of the machine
(up for glass console, down for serial console).
When configured to use a serial console, it is also
necessary to set the ``server'' SRM environment
variable to ``on'' for the system to autoboot on
powerup despite the lack of a keyboard and mouse
plugged in.
DEC 3000/300 family machines
Console is selected by the `W2' jumper block, to the
edge of the logic board, near the memory banks.
Setting the jumper cap on pins 1-2 selects glass
console, and on pins 2-3 selects serial console.
All other machines
From the SRM console, enter either
set console serial
or
set console graphics
at the SRM prompt, then enter
init
or cycle power.

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.9 2020/04/28 13:02:10 benno Exp $
OpenBSDUpgrade({:-the CD-ROM-:})

View File

@ -1,5 +0,0 @@
dnl $OpenBSD: whatis,v 1.13 2008/08/06 17:22:14 miod Exp $
OpenBSD/MACHINE runs on a broad range of Alpha processor-based machines,
including workstations manufactured by Digital (then Compaq, now HP), as
well as OEM motherboards designed by Samsung and Alpha Processor, Inc.

View File

@ -1,31 +0,0 @@
dnl $OpenBSD: xfer,v 1.35 2020/05/17 17:04:27 deraadt Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
HTTP
If you can burn the bootable CD-ROM mini image, you can boot from it.
OpenBSDXferCDROM
If you do not have a CD-ROM drive on your alpha:
You can copy the miniroot image onto the hard disk you intend to
install OpenBSD on. Doing so will overwrite the disk's old contents,
however.
You must use a Unix-like system to write the miniroot image
to the hard disk you will be using for OpenBSD/MACHINE. You
should use the "dd" command to copy the file system image
(miniroot{:--:}OSrev.img) directly to the raw 'c'
device (whole disk) of the target hard disk. It is suggested
that you read the dd(1) manual page or ask your system
administrator to determine the correct set of arguments to use;
it will be slightly different from system to system, and a
comprehensive list of the possibilities is beyond the scope of
this document.
OpenBSDXferShortPrelude
OpenBSDXferFFS

View File

@ -1,37 +0,0 @@
dnl $OpenBSD: contents,v 1.37 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDinstalliso
OpenBSDcd
lif{:--:}OSrev.img A LIF bootable bsd.rd image, suitable for
network boot.
xxboot The OpenBSD/MACHINE LIF boot block.
DistributionDescription(eight)
OpenBSDbase(103429098,212333850)
OpenBSDcomp(49328051,145661973)
OpenBSDgame(2940998,6703294)
OpenBSDman(8026326,30965601)
OpenBSDxbase(11735851,30505094)
OpenBSDxfont(23519039,35818896)
OpenBSDxserv(3583792,7900261)
OpenBSDxshare(4696153,24958269)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.6 2021/03/15 09:29:51 jsg Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/hppa/install.md
dnl and the list files in
dnl src/distrib/hppa/{list,ramdisk/list.local}
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},MACHINE)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},1)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,37 +0,0 @@
dnl $OpenBSD: hardware,v 1.44 2014/02/27 18:48:15 deraadt Exp $
OpenBSD/MACHINE OSREV runs on the following classes of HP9000 machines:
- PA7000-based
705, 710, 720, 730, 750
- PA7100-based
715/33, 715/50, 715/75
725/50, 725/75
735/100, 755/100
742i, 745i, 747i
- PA7100LC-based
712
715/64, 715/80, 715/100, 715/100XC
725/64, 725/100
743i, 748i
Saic Galaxy 1100
- PA7150-based
735/125, 755/125
- PA7200-based
J200, J210, J210XC
C100, C110
- PA7300LC-based
A180, A180C
B132L, B132L+, B160L, B180L+, C132L, C160L
744, 745, 748
RDI PrecisionBook
- PA8000-based (in 32-bit mode):
C160, C180
- PA8200-based (in 32-bit mode):
C200, C240, J2240
- PA8500-based (in 32-bit mode):
B1000, B2000, C360, C3000, J5000, J7000
- PA8600-based (in 32-bit mode):
B2600, C3600, J5600, J6000, J7600
- PA8700-based (in 32-bit mode):
C3650, C3700, C3750, J6700, J6750
A minimum of 16MB of RAM is required.

View File

@ -1,151 +0,0 @@
dnl $OpenBSD: install,v 1.30 2022/09/12 10:16:09 jsg Exp $
dnl lots of texts coming from {mvme68k,vax}/install initially
OpenBSDInstallPrelude
Bootstrapping the installation ramdisk kernel is supported
from either the network or a CD-ROM.
Booting from CD-ROM installation media:
To boot from SCSI CD-ROM, simply insert the CD into the drive before power
up, then during the computer's self-test cycle, press the space bar.
Subsequently at the PROM prompt issue a command:
BOOT_ADMIN> search
to initiate a search for all bootable devices available. This procedure
may take a few minutes and should you have configured network boot services
present may find those too. A sample output might be:
Path Number Device Path Device Type
----------- ----------------- -----------
P0 SESCSI.2.0 TOSHIBA CD-ROM XM-6201TA
P1 LAN.10.0.0.5.3.254 boron
P2 FWSCSI.5.0 IBM DDRS-34560WS
P3 FWSCSI.0.0 SEAGATE ST318436LW
P4 SESCSI.6.0 HP HP35480A
To boot from your CD-ROM type:
BOOT_ADMIN> boot p0
Booting from Network:
In order to bootstrap via the network, you must provide a second system to
act as a boot server. It is convenient if this is a second OpenBSD machine
as the necessary services are already installed, although source code for
such programs as dhcpd can be found in OpenBSD's source tree, and should be
reasonably portable to other Unix-like operating systems. More information
on diskless booting can be found in the OpenBSD diskless(8) manual page.
Your MACHINE expects to be able to download a LIF (``Logical
Interchange Format'') image, containing both the boot code and the kernel,
via the HP rboot protocol, for older firmware, or via the bootp protocol,
for more recent firmware.
Old firmware operation
Most of the 7xx models (except the 712, the second generation of 715, i.e.
715/64/80/100/100XC, and the 74x) have an older version of PDC. There are
two levels of interactive commands in this version.
The first level is a short menu:
b) Boot from specified device
s) Search for bootable device
a) Enter Boot Administration mode
x) Exit and continue boot sequence
Select from menu:
In this case, you will need to set up rbootd on the server. Start by
creating an /etc/rbootd.conf file on the bootserver. The format of this
file is the Ethernet address followed by the LIF filename. Here is an
example:
08:00:09:70:c4:11 lif{:--:}OSrev.img
Then start rbootd (or configure /etc/rc.conf to always start rbootd). Once
rbootd is running, the server name will then appear on the MACHINE as part
of the possible boot choices in a boot device search (``s'' command).
Modern firmware operation
More recent machines mostly those based on the 7100LC, 7200 and 7300LC CPU
types have a different PDC version. There is only one interactive mode,
with a BOOT_ADMIN> prompt, which provides both boot settings and commands.
In this case, you will need to set up dhcpd on the server, which can
serve bootp protocol requests. Start by editing the /etc/dhcpd.conf on
the bootserver, and declare an information block. Here is an example:
subnet 10.0.0.0 netmask 255.0.0.0 {
host boron {
filename "lif{:--:}OSrev.img";
hardware ethernet 08:00:09:70:c4:11;
fixed-address 10.42.42.42;
}
}
Do not forget to enable dhcpd.
You will also need to enable tftpd, for the MACHINE to download the
installation kernel (`filename' entry) from the server in its tftp
directory.
Common operation
You are now ready to bootstrap the installation kernel. On your machine,
escape to a prompt and boot from the network by entering ``boot lan isl''.
On old PDC firmware, you will need to enter administration mode first.
Installing using the netboot procedure:
OpenBSDInstallPart2
Boot your machine from the installation media as described above.
It will take a while to load the installation kernel, especially from
a slow network connection or a CD-ROM, most likely more than a minute.
If some action doesn't eventually happen, or the spinning cursor
has stopped and nothing further has happened, either your boot
media is bad, your diskless setup is incorrect, or you may have
a hardware or configuration problem.
OpenBSDInstallPart3(,"sd0")
OpenBSDInstallPart4
OpenBSDInstallPart5(,{:-
Due to prom limitations, you should make sure the whole 'a'
partition is CONTAINED WITHIN THE FIRST 2GB of the disk if
you intend to boot from it.-:})
Since the target disk will become the boot disk for your new
OpenBSD/MACHINE installation, the disklabel program will restrict
the available disk area to keep the first cylinder, which will
contain the bootblock, safe from being overwritten. If you don't
plan to install a bootblock on this disk, you can reclaim this
space with the 'b' command.
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDNFSInstall
OpenBSDDISKInstall(,{:-only -:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,68 +0,0 @@
dnl $OpenBSD: prep,v 1.5 2009/02/01 15:36:16 simon Exp $
The MACHINE computers do not generally need any specific preparation.
You might want to check that the console ``path'' in the PDC firmware
points to the device you plan to use, and change it if necessary. Most
MACHINE machines will allow to select console path from the BOOT_ADMIN>
prompt. To reach this prompt, abort the autoboot process and if a menu
appears, enter ``a'' to select the "Boot Administration mode."
To select the first serial port as console, type:
BOOT_ADMIN> path console rs232_a.9600.8.none
or to select graphics as console:
BOOT_ADMIN> path console graphics
BOOT_ADMIN> path keyboard hil
or
BOOT_ADMIN> path console graphics
BOOT_ADMIN> path keyboard ps2
depending upon your keyboard type.
On a few models, such as the 9000/712, the PDC firmware will not allow
the console path to be changed. In this case, it is possible to change
it from the OpenBSD boot loader. After booting OpenBSD in interactive
mode (for example, if booting over the network, by entering ``boot lan
isl''), enter the following at the ``boot>'' prompt:
boot> machine console rs232.9600.8.none
dnl I hope I'll never write ``been there, done that'' here. Rest
dnl assured I have added a lot of safeguards in this console code
dnl to prevent people from rendering their 712s unusable.
dnl At least mine is still alive, and I have played a lot with its
dnl console path... -- miod
WARNING!
Make sure to type the console path correctly or the 9000/712 can
become unusable, and will require a special ``dagger'' board to
be revived.
After changing the console path, the machine has to be power cycled
for the changes to take effect.
In most cases the primary boot device path is already set to the right
value. If not, it is advised to run:
BOOT_ADMIN> search
to display the list of all bootable devices before choosing one with:
BOOT_ADMIN> path primary SCSI.TARGET.LUN
Substitute FWSCSI or SESCSI for SCSI if it is displayed as such in the
path list obtained from ``search'', and use the TARGET and LUN values
matching the device intended as the boot device.
To set up autoboot, use the configure option:
BOOT_ADMIN> co auto boot on
or if your machine has the old style PDC interface:
BOOT_ADMIN> autoselect on
Please refer to the boot(8) manual page for more information on PDC
settings and boot commands.

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.10 2020/05/17 17:04:28 deraadt Exp $
OpenBSDUpgrade({:-the LIF image ``lif{:--:}OSrev.img'', or a RAMDISK kernel ``bsd.rd''-:})

View File

@ -1,6 +0,0 @@
dnl $OpenBSD: whatis,v 1.5 2008/08/06 18:23:56 miod Exp $
OpenBSD/MACHINE OSREV runs on the HP 9000/700 series of workstations,
based on 32 bit PA-RISC processors. Most letter-named models are also
supported, including many 64 bit PA-RISC 2.0-based models (running in
32 bit mode).

View File

@ -1,13 +0,0 @@
dnl $OpenBSD: xfer,v 1.12 2015/06/10 06:38:39 jasper Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
Remote NFS partition
HTTP
OpenBSDXferPrelude
OpenBSDXferNFS
OpenBSDXferFFS

View File

@ -1,34 +0,0 @@
dnl $OpenBSD: contents,v 1.19 2023/03/16 18:04:08 miod Exp $
TopPart
dnl can't use OpenBSDminiroot here - comment is inappropriate
miniroot{:--:}OSrev.img A miniroot filesystem image to be copied to
the beginning of the disk to allow installing
OpenBSD OSREV.
OpenBSDdistsets
OpenBSDbsd
OpenBSDrd
dnl not yet...
dnl OpenBSDcd
dnl XXX describe boot, mbr, and xxboot. Or stop providing them?
DistributionDescription(eight)
OpenBSDbase(76860914,176034769)
OpenBSDcomp(46571466,144169045)
OpenBSDgame(2833321,6301734)
OpenBSDman(8028075,30965633)
OpenBSDxbase(11167202,26878116)
OpenBSDxfont(23521108,35818896)
OpenBSDxserv(1935088,3576321)
OpenBSDxshare(4698464,24958269)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.4 2021/03/15 09:29:51 jsg Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/landisk/ramdisk/install.md
dnl and the list files in
dnl src/distrib/landisk/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},sh)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,7 +0,0 @@
dnl $OpenBSD: hardware,v 1.10 2014/02/27 18:48:15 deraadt Exp $
OpenBSD/MACHINE runs on the following SH4-based IO-DATA made models:
IO-DATA USL-5P, using CF storage (Japan)
IO-DATA HDL-U, HDL-AV, HDL-W and HDLM-U series (Japan)
SuperTank LAN Tank (SOTO-HDLWU) (Japan)
IO-DATA UHDL-160U and UHDL-300U (May be found in USA)
Plextor PX-EH16L, PX-EH25L and PX-EH40L

View File

@ -1,35 +0,0 @@
dnl $OpenBSD: install,v 1.10 2014/03/19 01:59:48 tedu Exp $
OpenBSDInstallPrelude
OpenBSDInstallPart2
If you have copied the miniroot image to the disk, it will
boot automatically upon power-up.
OpenBSDInstallPart3(,"wd0")
OpenBSDInstallPart4({:-"wd0" for IDE drives-:})
OpenBSDInstallMBRPart1
OpenBSDInstallMBRPart2(that's the way things are)
OpenBSDInstallPart5
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDDISKInstall({:-"wdN" or -:},,{:-, Linux (ext2) or MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,35 +0,0 @@
dnl $OpenBSD: prep,v 1.6 2020/05/17 17:04:28 deraadt Exp $
The default configuration of the MACHINE systems comes with a Linux
installation on the disk (either an IDE hard drive, or a CompactFlash
card). At the moment, there is no known way to log in this installation
as ``root'' or interrupt the boot process, and start an OpenBSD
installation procedure.
Because of this, the only way to boot the OpenBSD install is to copy
the miniroot "miniroot{:--:}OSrev.img" image to the hard drive or CompactFlash
(on the other hand, upgrades can be started by copying bsd.rd to the
OpenBSD disk and booting from it).
As a result, you will need another machine to plug the machine's disk
or CompactFlash in. Any machine type will do, as long as it supports
ATA-compatible storage devices, regardless of the partition scheme
it uses. Under OpenBSD, it will appear as a ``wd'' device, for example
``wd1''.
Use the dd(1) utility to copy the miniroot to the hard drive.
The command would likely be, under OpenBSD:
dd if=miniroot{:--:}OSrev.img of=/dev/rwd1c
Replace ``rwd1c'' with the appropriate device name for the raw device
on the system used to do the copy.
If the machine has a hard drive, and you had to change jumpers on it
to change its ``master'' status, do not forget to configure it back
to ``master'' or ``single drive'', as slave drives are not bootable.
dnl I need to write a comprehensive text, also explaining that Rx/Tx
dnl are swapped between the CF and HD models.
In addition to the disk preparation, you will need to connect a serial
port connector to the machine. Please refer to the OpenBSD/MACHINE
page at
https://www.OpenBSD.org/MACHINE.html
for more information.

View File

@ -1,3 +0,0 @@
dnl $OpenBSD: upgrade,v 1.2 2007/02/28 22:30:05 miod Exp $
dnl OpenBSDUpgrade({:-the CD-ROM-:})
OpenBSDUpgrade({:-bsd.rd on the boot disk-:})

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: whatis,v 1.3 2007/02/28 22:30:05 miod Exp $
OpenBSD/MACHINE runs on various network appliances based on an
IO-DATA design with an Hitachi/Renesas SuperH CPU.

View File

@ -1,17 +0,0 @@
dnl $OpenBSD: xfer,v 1.8 2017/03/04 22:46:20 tj Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
DOS (FAT) partitions
EXT2 partitions
HTTP
Although you can access the distribution sets directly from one of the
OpenBSD mirrors over the internet, you may wish to transfer the sets to
a local HTTP server, or copy them to a partition on the target system's
disk (for upgrades only).
OpenBSDXferShortPrelude
OpenBSDXferFFS

View File

@ -1,34 +0,0 @@
dnl $OpenBSD: contents,v 1.17 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDcd
OpenBSDminiroot
boot The OpenBSD/MACHINE bootloader.
DistributionDescription(eight)
OpenBSDbase(145513188,456045881)
OpenBSDcomp(65348072,272801184)
OpenBSDgame(2904700,7552589)
OpenBSDman(8017632,30942161)
OpenBSDxbase(49026394,181964605)
OpenBSDxfont(23519425,35818896)
OpenBSDxserv(11057328,42597821)
OpenBSDxshare(4696791,24957209)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.4 2023/03/16 18:04:08 miod Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/loongson/ramdisk/install.md
dnl and the list files in
dnl src/distrib/loongson/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},mips64el)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},1)dnl
dnl
dnl define if serial consoles need to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},1)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,24 +0,0 @@
dnl $OpenBSD: hardware,v 1.13 2023/03/16 18:04:08 miod Exp $
The following machines are supported by OpenBSD/MACHINE:
Lemote Fuloong 2F
onboard serial port, audio, USB and Ethernet are supported;
onboard display is only supported in the video mode setup by
the firmware (usually 640x400x8), without acceleration.
Lemote Lynloong (LM9001 and LM9002 models)
onboard audio, USB and Ethernet are supported;
onboard display is only supported in the 1368x768x16 video mode
set up by the firmware, without acceleration.
Lemote Yeeloong (8.9" and 10.1" models)
all onboard devices (keyboard, trackpad, display, SD card reader,
USB ports, Ethernet adapter, wireless network adapter, audio,
webcam on the 8.9" model, battery and power information) are
supported.
dnl do not mention suspend/resume until it gets fixed.
Gdium Liberty 1000
all onboard devices (keyboard, trackpad, display, SD card reader,
USB ports, Ethernet adapter, wireless network adapter,
battery information) are supported except for the audio controller.

View File

@ -1,196 +0,0 @@
dnl $OpenBSD: install,v 1.16 2020/07/05 22:27:47 tj Exp $
OpenBSDInstallPrelude
Booting the installation media:
The easiest way to boot into the OpenBSD installer is to copy the miniroot
image to a USB stick using dd(1) and boot bsd.rd from the PMON prompt:
PMON> boot -k /dev/fs/ext2@usb0/bsd.rd
on Lemote systems, and
PMON> load /dev/fs/ext2@usb0/bsd.rd
PMON> g
on Gdium systems.
Another way to boot into the OpenBSD installer is to copy the bsd.rd
installation kernel to the main Linux partition, and boot from it.
Assuming the installation kernel has been copied to /boot/bsd.rd on the
Linux system, at the PMON prompt, enter
PMON> boot -k /dev/fs/ext2@wd0/boot/bsd.rd
on Lemote systems, and
PMON> load /dev/fs/ext2@usbg0/boot/bsd.rd
PMON> g
on Gdium systems.
dnl
dnl Alternatively, if your particular PMON flavour supports `fat' filesystems,
dnl you can boot the kernel from an usb key with:
dnl
dnl PMON> boot /dev/fs/fat@usb0:/bsd.rd
Netbooting the installation kernel can be done as well. First, check the name
of the PMON device for the onboard interface using the ``devls'' command.
This is likely to be either rtl0 (on Yeeloong) or rtk0 (on Fuloong). Then,
assign it an address and fetch the installation kernel from a tftp server:
PMON> ifaddr <device name> <your ip>
PMON> boot -k tftp://<server ip>/bsd.rd
OpenBSDInstallPart2
OpenBSDInstallPart3(,"sd0 for USB storage, or wd0 for internal storage
(either a disk drive or an SSD)")
OpenBSDInstallPart4
OpenBSDInstallMBRPart1
dnl OpenBSDInstallMBRPart2
The fdisk(8) utility will be invoked to let you edit your MBR
partitioning. The current MBR partitions defined will be
displayed and you will be allowed to modify them, and add new
partitions.
The setup will need one 'Linux files' partition and an 'OpenBSD'
partition. If you use the whole disk option, the install script
will create a small 'Linux files' partition and use the rest of
the disk for the OpenBSD installation.
After your OpenBSD MBR partition has been set up, the real
partition setup can follow.
OpenBSDInstallPart5({:-
Linux partitions defined on the disk will usually show up as
partition 'i', 'j' and so on.-:})
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDNFSInstall
OpenBSDDISKInstall({:-"wdN" or -:},,{:-, Linux (ext2) or MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
Lemote systems final steps:
Lemote systems ship with a boot menu. After an installation
preserving the Linux partitions is complete, you can add an OpenBSD
entry to the boot menu to be able to boot OpenBSD more easily.
The boot menu contents are found in /boot/boot.cfg on the Linux
partition. To add an OpenBSD entry, simply add a new entry in the
file, such as:
title OpenBSD
kernel /dev/fs/ext2@wd0/boot/boot
args ""
In the example above, /dev/fs/ext2@wd0/boot/boot is the PMON path
to the OpenBSD bootloader, which is copied to that location by the
install script.
You may make OpenBSD the default option by changing the ``default''
line near the top of the file. The value on this line is the index
of the default entry, starting at zero. So if you added the OpenBSD
entry as the fourth entry in the file, it would become the default
choice with:
default 3
The timeout until the default choice is selected, in seconds, can
be modified on the ``timeout'' line.
However, due to side effects of PMON operation, automatic loading
of OpenBSD binaries (bootloader or kernel) causes a register dump
to be silently displayed by PMON; while it won't be visible on
screen, PMON will gladly wait for user input to continue if it
believes it has written too much output.
To overcome this annoyance, simply change the `moresz' environment
variable to a large value (30 or larger will do):
PMON> set moresz 30
The bootloader will attempt to load the kernel file set in the `bsd'
environment variable. Should this fail, it will wait for user
commands. The value of `bsd' should be a path within the OpenBSD
root filesystem on the disk, such as:
PMON> set bsd /bsd
If you have removed the Linux installation or if you do not want to
use the boot menu, you may simply disable it in the environment, and
set the `al' variable to point to the bootloader path:
PMON> set ShowBootMenu no
PMON> set al /dev/fs/ext2@wd0/boot/boot
Alternatively, you might want to create a /boot/boot.cfg file in the
small Linux partition created by the installation.
On the Fuloong 2F, getting PMON to use the serial console is tricky,
due to PMON bugs and design decisions made by Lemote. PMON's default
serial speed is 115200, and OpenBSD will also use that speed. By
default, it is only possible to use serial input if no USB keyboard is
attached. PMON will nevertheless display its output on the VGA display.
To get full serial access, the first step is to boot into PMON> with
both serial console and VGA display but no USB keyboard attached.
You can type on the serial console, but output will be shown on the
VGA display. Next enter the following commands:
PMON> set novga 1
PMON> set nokbd 1
PMON> set al ""
PMON> set ShowBootMenu no
If you have a dual boot setup, mount the Linux boot partition and
rename /boot/boot.cfg so that it does not get found by PMON. This
will enable full serial access to PMON on the Fuloong 2F.
Gdium systems final steps:
Gdium systems do not have a boot menu, and directly boot the system
(Linux, by default). Unfortunately, the OpenBSD bootloader operation
is very limited on this machine, as it can not access USB devices
(which means no keyboard input as well).
To overcome this and be able to boot OpenBSD nevertheless, the
bootloader relies upon PMON's ability to load a Linux so-called
``initrd'' image. By making PMON load the kernel as the ``initrd''i
image, and then run the bootloader, the bootloader will be able to
``load'' the OpenBSD kernel correctly.
The path to the file booted by default is set in the `al' environment
variable, and the path to the initrd image is set in the `rd'
environment variable.
To boot the bsd kernel on the G-Key by default, assuming it has been
copied to /boot/bsd on the first ext3 partition, and the bootloader
has been copied to /boot/boot on the same filesystem, the settings
are:
PMON> set al /dev/fs/ext2@usbg0/boot/boot
PMON> set rd /dev/fs/ext2@usbg0/boot/bsd
Alternatively, you can disable autoboot by removing this variable:
PMON> unset al
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,67 +0,0 @@
dnl $OpenBSD: prep,v 1.4 2010/02/18 20:44:41 jasper Exp $
Most MACHINE systems are shipped with a Linux system installed on the disk
drive or SSD. This system will likely use two partitions, one for the
system and applications, and another for the user data. OpenBSD will in turn
need its own MBR partition.
If there is no unpartitioned space left on the disk, it will be necessary to
shrink and recreate the data partition; before installing OpenBSD/MACHINE,
you should make sure any important data on this partition is backed up.
If you intend to only use OpenBSD on your machine, please note that, at this
point, it is necessary to keep an ext2 or ext3 Linux partition, to be able
to boot the system.
Before you install your system, you should familiarize yourself with PMON,
the open source firmware and bootloader of your machine.
Entering PMON:
Upon power-up, or after a reset, a splash screen is displayed while PMON
initializes.
On Lemote systems, after PMON initializes, a text mode boot menu appears.
At this menu, you can either select one of the systems to boot with the
arrows keys and press enter, or abort the countdown sequence and get to
the PMON commandline by hitting `c'.
If you have set up your machine to automatically boot into OpenBSD,
and want to enter PMON, you should press the `Del' key or
`ESC [ G' if you are using a serial console. You must have attached a
VGA monitor for the last step, as the commands you type on the console,
will show up on the VGA monitor.
On Gdium systems, the system proceeds to immediately boot into the
operating system; to enter PMON, repeatedly press the `del' key
(on the top right corner of the keyboard) before the G-Key lits,
until the splash screen disappears and a PMON prompt appears.
dnl XXX it does not work for me anymore ?!?
dnl Another way to abort autoboot is to start the system with the G-Key
dnl removed; the system will then stop with the splash screen displayed,
dnl and pressing the `del' key will get you to the PMON prompt.
PMON command are entered at the ``PMON>'' prompt; you may correct typos
using the backspace key, and retrieve previous commands from the history
using Ctrl-P. On Lemote systems, unfortunately, there is no cursor shape
displayed, which can make command line editing quite tedious.
PMON file path concepts:
The filenames used by PMON always mention explicitly the location of
the filesystem they refer to, as well as the filesystem type. They
are constructed as
/dev/fs/<filesystem type>@<device name>/<path within the filesystem>
On Lemote systems, the internal storage (either a disk drive or an SSD)
is `wd0'. On the Gdium Liberty, the G-Key slot is `usbg0'. Other devices
connected to the USB ports are named `usb0', `usb1', etc, in the order
PMON configures them. At any time the ``devls'' command will list
the devices you can boot from. Note that it is not possible to boot from
the SD card reader.
Supported filesystems are `ext2', for Linux ext2 and ext3 filesystem
partition, and `iso9660' for CD-ROM.
As an example, the /boot/vmlinux file on the first partition of the
hard disk becomes:
/dev/fs/ext2@wd0/boot/vmlinux

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.1 2010/02/03 17:10:44 miod Exp $
OpenBSDUpgrade({:-your usual boot device-:})

View File

@ -1,5 +0,0 @@
dnl $OpenBSD: whatis,v 1.3 2010/03/02 20:54:49 miod Exp $
OpenBSD/MACHINE runs on various Loonson processor-based systems, such
as the popular Lemote Yeeloong and Gdium Liberty netbooks, as well as
the Lemote Fuloong 2F mini PC and the Lemote Lynloong all-in-one PC.

View File

@ -1,15 +0,0 @@
dnl $OpenBSD: xfer,v 1.4 2015/06/10 06:38:39 jasper Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
DOS (FAT) partitions
EXT2 partitions
Remote NFS partition
HTTP
OpenBSDXferPrelude
OpenBSDXferNFS
OpenBSDXferFFS

View File

@ -1,36 +0,0 @@
dnl $OpenBSD: contents,v 1.20 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDminiroot
It can be copied to the swap partition of an existing
UniOS or OpenBSD installation, or to the beginning of
a disk, to allow installing or upgrading to OpenBSD
OSREV.
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
boot The OpenBSD/MACHINE boot block.
DistributionDescription(eight)
OpenBSDbase(104229598,229157996)
OpenBSDcomp(58465450,180862144)
OpenBSDgame(2718260,6170809)
OpenBSDman(8026230,30952867)
OpenBSDxbase(13094034,36320633)
OpenBSDxfont(23521461,35818896)
OpenBSDxserv(3275077,7697187)
OpenBSDxshare(4700912,24957220)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.5 2023/03/16 18:04:08 miod Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/luna88k/ramdisk/install.md
dnl and the list files in
dnl src/distrib/luna88k/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},m88k)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},1)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,14 +0,0 @@
dnl $OpenBSD: hardware,v 1.7 2015/01/11 21:02:55 miod Exp $
OpenBSD/MACHINE OSREV runs on the OMRON LUNA-88K workstations family.
16MB of RAM should be sufficient to boot and a minimal system can probably
be squeezed onto a 250MB disk by installing only the `base' set.
However, a minimum of 32MB is recommended for serious usage of the system.
Supported devices:
On-board console serial port (siotty)
On-board LANCE Ethernet interface (le)
On-board SCSI controllers (spc)
LCD display on front panel (lcd)
Keyboard, mouse and frame buffer (suitable as a console too)

View File

@ -1,113 +0,0 @@
dnl $OpenBSD: install,v 1.16 2023/03/16 18:04:08 miod Exp $
OpenBSDInstallPrelude
There are several ways to install OpenBSD onto a disk. The easiest way
in terms of preliminary setup is to use the OpenBSD miniroot that can be
booted off your local disk's swap partition. Alternatively, you can
use the OpenBSD bootblocks and the ramdisk kernel, bsd.rd, copied to an
existing UniOS partition.
Booting from the Installation Media:
Prior to attempting an installation, everything of value on the target
system should be backed up. While installing OpenBSD does not necessarily
wipe out all the partitions on the hard disk, errors during the install
process can have unforeseen consequences and will probably leave the system
unbootable if the installation process is not completed. Availability
of the installation media for the prior installation, such as a LUNA-88K
UniOS tape, is always a good insurance, should it be necessary to "go back"
for some reason.
After taking care of all that, the system should be brought down gracefully
using the shutdown(8) and/or halt(8) commands, which will eventually go
back to the PROM prompt. Remember that the leftmost switch from the front
panel DIP switch #1 must be down to access the PROM prompt.
Booting from an existing partition:
Copy the OpenBSD/MACHINE boot loader on one of the first 8 partitions
(a-h). Copy the installation kernel (bsd.rd) to the same partition.
At the PROM prompt, enter
b sd(n,p) boot
to boot the OpenBSD bootloader from the specified disk and partition.
Replace 'p' with the partition number (usually 0, for the 'a' partition),
and 'n' with the appropriate number from the following table:
disk drive SCSI ID: 0 1 2 3 4 5 6
value of 'n': 6 5 4 3 2 1 0
On LUNA-88K2 systems, if the disk drive is connected to the external SCSI
controller, add 10 to this number. For example, to boot from a disk drive
with ID #0 connected to the external controller, enter:
b sd(10,0)boot
Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
boot sd(n,p)bsd.rd
to boot the installation kernel from the same partition.
Booting from the miniroot:
Copy the OpenBSD/MACHINE miniroot to the swap partition (assuming your
disk is sd0):
dd if=miniroot{:--:}OSrev.img of=/dev/sd0b
After halting the system, at the PROM prompt, enter
b sd(n,1)
to boot the OpenBSD bootloader from the swap partition.
Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
boot sd(n,1)
to boot the installation kernel from the same partition.
Installing the system:
OpenBSDInstallPart2
Boot your machine from the installation media as described above.
It will take a while to load the kernel especially from a slow
network connection, most likely more than a minute. If some action
doesn't eventually happen, or the spinning cursor has stopped and
nothing further has happened, either your boot media is bad, your
diskless setup isn't correct, or you may have a hardware or
configuration problem.
OpenBSDInstallPart3(,"sd0")
OpenBSDInstallPart4
OpenBSDInstallPart5
OpenBSDInstallPart6({:-CD-ROM, NFS, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDNFSInstall
OpenBSDDISKInstall(,{:-only -:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,66 +0,0 @@
dnl $OpenBSD: prep,v 1.8 2014/04/22 22:58:02 aoyama Exp $
dnl Need to provide a short monitor description. Start from
dnl http://www.nk-home.net/~aoyama/luna88k/monitor.txt
dnl and also document NVRAM?
LUNA-88K do not require any specific preparation prior to the OpenBSD
installation. However, you might want to get familiar with the PROM
interface, in order to be able to boot the installation media and, later,
specify the correct boot parameters.
Setting up the boot device and filename:
Boot device and filename information is stored by the PROM into
the machine's non-volatile memory.
LUNA-88K systems can only boot from SCSI devices. The boot device type
(such as ``sd'' for a disk) is specified by the
``boot_device'' variable. The SCSI id of the boot device is specified
by the ``boot_unit'' NVRAM variable, and the boot partition on said
device is specified by the ``boot_partition'' variable. The
``boot_filename'' variable stores the name of the file to boot, and
defaults to ``vmunix''. To boot OpenBSD, this variable should be
changed to ``boot'', as in:
0> nvram boot_filename boot
The ``boot_unit'' value is an encoding of the device SCSI identifier.
If the boot device is an SCSI disk (``sd''), the value of ``boot_unit''
should be (6 - ID). On LUNA-88K2 systems, if the boot device is connected
to the external SCSI connector, 10 should be added to the value of
``boot_unit''. Thus booting off an external SCSI disk of ID #0 would
be 16 on a LUNA-88K2, and 6 on a LUNA-88K.
Setting up the boot behaviour:
Unlike other platforms, boot behaviour is controlled by the front panel
DIP switches only.
The first set of DIP switches in the front panel (DIP SW1) is used to
select the machine behaviour upon powerup, as well as the preferred
console device.
The meaning of these switches will depend upon your particular machine.
On the LUNA-88K, the 'down' position is 'on', and the 'up' position is
'off', while the LUNA-88K2 uses the opposite convention (i.e. 'up' is
'on' and 'down' is 'off').
If the leftmost switch in SW1, #1, is in the 'off' position, the system
will auto-boot from the boot device saved in NVRAM (using the
``boot_device'', ``boot_unit'' and ``boot_filename'' variables). Otherwise,
the boot process will stop at the PROM prompt.
Setting up serial console:
The second switch in SW1, #2, selects the console device. When in the 'on'
position, it selects the serial console port as the console; otherwise,
the graphics display and keyboard are used as the console.
While the LUNA-88K2 uses ``standard'' DB9 serial ports, the earlier
LUNA-88K have a specific connector, HiRose QM10-14R(L)-PR. Wiring
information for this connector can be found at the following URL:
http://www.kk.iij4u.or.jp/~taokamur/luna68k/serial.jpg
A suitable cable connector for this port would be either HiRose
QM30-14PA-EP with a QM14-CS cover (with lock), or QM30-14P-EP with a
QM14-CY cover (without lock).

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.5 2014/03/19 01:59:49 tedu Exp $
OpenBSDUpgrade({:-bsd.rd, or the miniroot-:})

View File

@ -1,3 +0,0 @@
dnl $OpenBSD: whatis,v 1.4 2014/04/22 22:58:02 aoyama Exp $
OpenBSD/MACHINE runs on the OMRON LUNA-88K family of workstations.

View File

@ -1,13 +0,0 @@
dnl $OpenBSD: xfer,v 1.8 2015/06/10 06:38:39 jasper Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
Remote NFS partition
HTTP
OpenBSDXferPrelude
OpenBSDXferNFS
OpenBSDXferFFS

View File

@ -1,36 +0,0 @@
dnl $OpenBSD: contents,v 1.39 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDinstalliso
OpenBSDcd
ofwboot The OpenBSD/MACHINE secondary boot loader.
dnl
dnl bsd.tbxi
DistributionDescription(eight)
OpenBSDbase(199668579,452485796)
OpenBSDcomp(61612698,204541884)
OpenBSDgame(2852593,6656098)
OpenBSDman(8021282,30950175)
OpenBSDxbase(46275547,133096639)
OpenBSDxfont(23519081,35818896)
OpenBSDxserv(11067042,33545999)
OpenBSDxshare(4695947,24958258)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.5 2021/03/15 09:29:51 jsg Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/macppc/ramdisk/install.md
dnl and the list files in
dnl src/distrib/macppc/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},powerpc)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},1)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},1)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},1)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},1)dnl

View File

@ -1,43 +0,0 @@
dnl $OpenBSD: hardware,v 1.102 2014/02/27 18:48:15 deraadt Exp $
OpenBSD/MACHINE OSREV runs on iMac, G4 Power Macintosh, and G4 Cube, as well
as PowerBook and iBook machines.
Machines with older firmware: 6xxx, 7xxx, 8xxx, and 9xxx machines are
not supported. PowerMac G3 Beige status is unknown.
OpenBSD/MACHINE has been tested on iMac Revs A-C as well as on iMac DV(+)
machines, Power Macintosh G4 systems (single and dual processor), as well as
the G4 Cube, B&W G3, LCD iMac, Mac mini, iMac G5, PowerMac G5 and Xserve G5.
For portables, PowerBook G3, PowerBook G4 (12", 15", 17"), iBook, iBook2
and iBook G4 have been tested. Note that power saving features on portables
are very limited, limited power management features are available,
suspend/sleep is not supported. However battery level and status charging/AC
connected/AC disconnected is supported via an APM emulation layer.
Supported devices {:-include-:}:
IDE hard disk controllers
Onboard controllers (wdc_obio)
Onboard ATA100 controllers (kauaiata)
PCI controllers (pciide)
AGP/SVGA/VGA Display Adapters
Primary Open Firmware display only
The following cards will run an accelerated X server:
- ATI Mach64 GP
- ATI Mach64 GV
- ATI Mach64 128 PK
- ATI Mach64 128 VR AGP
- ATI Rage 128 Mobility M3
- ATI Rage Fury AGP4x
- ATI Radeon Mobility M7
- ATI Radeon Mobility 9200 (M9+)
- NVIDIA GeForce4 440 Go 64M
Serial ports
Built-in Zilog 8530-based serial ports (zs)
Internal non-USB modems.
Most modems, digital cellular modems, and serial
cards attached through PC-Cards should work (com)

View File

@ -1,164 +0,0 @@
dnl $OpenBSD: install,v 1.35 2020/07/05 22:27:47 tj Exp $
OpenBSDInstallPrelude
Before you begin, you should decide if OpenBSD is to be installed
on the whole disk or share the disk with Mac OS.
For stand-alone (No Mac OS installed) or dedicated disks, the MBR
installation method should be chosen and no additional prep is necessary.
If the disk is to be shared with Mac OS, a partition must be preallocated
by the Mac OS partition editor and Mac OS installed to the proper partition.
This expects that the HFS partition will be the first partition on
the disk, and then the OpenBSD partition will follow.
This may require the disk be reformatted using the "Drive Setup" application
and reinstalled under Mac OS.
OpenBSDInstallPart2
At this time, the system can be installed from the supplied
CD-ROM boot image, by network loading the bootloader, or loading
the bootloader and kernel from an HFS partition.
Once the bootloader is installed on the local hard drive, the
system can boot from it. OpenBSD may share a drive with Mac OS
if the process is followed carefully. Currently it is
necessary to use Open Firmware commands to dual boot between
OS's, or multiple drives may be used with each OS owning drive(s).
It is also possible on some newer models to set up the system
to auto boot OpenBSD and if Mac OS is desired, choose it using
the firmware boot selector by holding down the <option> key
during reboot and selecting the Mac OS Disk icon.
(Refer to "Preparing your System for OpenBSD Installation" above
for information on how to access and boot from Open Firmware.)
OpenBSDInstallPart3(,"wd0")
OpenBSDInstallPart4
Disks on OpenBSD/MACHINE are partitioned either using Apple-style
HFS partitions, or MBR partitions.
OpenBSD/MACHINE can share a disk with Mac OS or Mac OS X by using
an HFS partitioned disk. For proper layout, the disk should be
partitioned with Mac OS or Mac OS X first with unused space or a
spare partition where OpenBSD can be installed.
The installation program will ask you whether you intend to use
HFS or MBR partitions.
HFS partitioning:
HFS partition tables are edited with pdisk(8). The most
common operation, and the example presented here, deals
with the conversion of an existing partition into one usable
by OpenBSD.
Before editing, the partition table may look like the
following:
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Driver43*Macintosh 54 @ 64
3: Apple_Driver43*Macintosh 74 @ 118
4: Apple_Driver_ATA*Macintosh 54 @ 192
5: Apple_Driver_ATA*Macintosh 74 @ 246
6: Apple_FWDriver Macintosh 200 @ 320
7: Apple_Driver_IOKit Macintosh 512 @ 520
8: Apple_Patches Patch Partition 512 @ 1032
9: Apple_HFS untitled 2142310 @ 1544 ( 1.0G)
10: Apple_HFS untitled 2 4120589 @ 2143854 ( 2.0G)
11: Unused untitled 3 6330517 @ 6264443 ( 3.0G)
After editing the table, it should look like:
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Driver43*Macintosh 54 @ 64
3: Apple_Driver43*Macintosh 74 @ 118
4: Apple_Driver_ATA*Macintosh 54 @ 192
5: Apple_Driver_ATA*Macintosh 74 @ 246
6: Apple_FWDriver Macintosh 200 @ 320
7: Apple_Driver_IOKit Macintosh 512 @ 520
8: Apple_Patches Patch Partition 512 @ 1032
9: Apple_HFS untitled 2142310 @ 1544 ( 1.0G)
10: Apple_HFS untitled 2 4120589 @ 2143854 ( 2.0G)
11: OpenBSD OpenBSD 6330517 @ 6264443 ( 3.0G)
This will likely be different based on the number of
partitions created on the disk by the Apple partition editor.
It is _VERY_ important to not change the start, sizes, or
types of partitions other than the ones that are to be used
by OpenBSD, including the Apple_Driver.* and
Apple_partition_map.
---
Command (? for help): p
<output is in the before example above>
Command (? for help): t
Partition number: 11
Existing partition type ``Unused''.
New type of partition: OpenBSD
Command (? for help): n
Partition number: 11
New name of partition: OpenBSD
Command (? for help): p
<output is in the after example above>
---
MBR partitioning:
dnl What follows is the same text as OpenBSDInstallMBRPart2, but
dnl indented one tab to the right.
dnl The macro can't be reused because line wraps will occur at different
dnl places.
dnl XXX This document really should be converted to mdoc...
The installation program will ask you if you want to use
the whole disk for OpenBSD. If you don't need to or don't
intend to share the disk with other operating systems,
answer `y' here. The installation program will then create
a single MBR partition spanning the whole disk, dedicated
to OpenBSD.
Otherwise, fdisk(8) will be invoked to let you to edit
your MBR partitioning. The current MBR partitions defined
will be displayed and you will be allowed to modify them,
add new partitions, and change which partition to boot from
by default.
After your OpenBSD MBR partition has been set up, the real
partition setup can follow.
OpenBSDInstallPart5({:-
If you have DOS or Linux partitions defined on the disk, these
will usually show up as partition 'i', 'j' and so on.-:})
If you chose to use HFS partitioning to share the disk with MacOS,
OpenBSD will be unable to install the bootloader into the HFS(+)
partition to boot OpenBSD; it will be necessary to copy 'ofwboot'
from the installation media into the first HFS(+) partition using
Mac OS or Mac OS X.
If the disk is partitioned using MBR, the bootloader will be
automatically installed if you set up a small (a few MB) MSDOS
partition as position `i' in the label.
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDNFSInstall
OpenBSDDISKInstall(,,{:- or MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,141 +0,0 @@
dnl $OpenBSD: prep,v 1.24 2017/03/04 22:46:20 tj Exp $
To be able to boot the OpenBSD/MACHINE installation program, you will
need to acquire some limited knowledge of Open Firmware, the low-level
process that controls the microprocessor after hardware initialization
and diagnostics are performed but before control is handed to the
operating system.
To access Open Firmware, you should simultaneously hold down the
Command, Option, O, and F keys immediately upon booting. (On a PC keyboard,
use the Windows key instead of the Command key and use Alt instead of the
Option key). You will be presented with information and a ">" prompt that
will look something like this (example taken from a Power Macintosh G4):
Apple PowerMac3,1 2.4f1 BootROM built on 02/18/00 at 09:44:35
Copyright 1994-2000 Apple Computer, Inc.
All Rights Reserved
Welcome to Open Firmware
To continue booting, type "mac-boot" and press return
To shut down, type "shut-down" and press return
ok
0 >
If you are installing OpenBSD/MACHINE on an Xserve, you will need
to do so in headless mode. This means you must remove the graphics
card and use the serial console. To bring up Open Firmware via
the serial console, hold down the System Identifier button while
pressing the Power button. When the upper LED bank begins lighting
up in sequence (similar to KITT from Knight Rider), repeatedly
press the System Identifier button until the seventh LED from
the right is highlighted on the lower bank. Now hold the
System Identifier button for two seconds. For more details, read:
http://support.apple.com/kb/TA26930
dnl XXX Move the boot commands to install in sections (booting from network,
dnl XXX booting from cd-rom, etc)
Important Open Firmware command examples:
boot cd:,ofwboot /OSREV/MACHINE/bsd.rd
(boot from an appropriately prepared
OpenBSD CD-ROM in the CD/DVD drive)
boot enet:,ofwboot /bsd.rd
(netboot from a pre-configured dhcp/tftp/nfs
server; "ofwboot" will be obtained from the tftp server,
while "bsd.rd" will be obtained from the NFS server,
as specified by the "next-server" and "root-path" dhcp
options)
boot ide1:,ofwboot /bsd
(After installation, boot /bsd from the slave
device on the second ATA bus)
mac-boot (boot into Mac OS)
reset-all (reboot the machine)
shut-down (halt the machine; shutdown)
printenv (print current machine variables)
setenv (set a machine variable)
devalias (list device aliases; useful for locating other
devices in the machine such as hard drives, etc)
As seen above, device aliases typically take the form of "ide", "cd",
etc. To boot to an alternative device, you may substitute them
with entries from this list (example devices taken from a Power
Macintosh G4):
ultra0 = hd = master device, primary ATA bus (factory-installed drive)
ultra1 = slave device, primary ATA bus
ide0 = cd = master device, secondary ATA bus (CD/DVD drive)
ide1 = slave device, secondary ATA bus (Zip drive, if installed)
enet = motherboard Ethernet device
Other Open Firmware command examples:
setenv auto-boot? false
(force the machine to wait at Open Firmware
for user input at next reboot; options are true/false)
setenv boot-device hd:,ofwboot
(force the machine to boot into OpenBSD
automatically at next reboot)
dev / (change to root level of the device tree)
pwd (show current location in the device tree)
ls (show items at current location in the device tree)
words (show methods of items at current location in the device
tree)
.properties (show properties of items at current location in the
device tree)
To reset a Power Macintosh to the factory-configured Open Firmware settings,
simultaneously hold down the Command, Option, P, and R keys immediately upon
booting. Typically the machine will then attempt to load Mac OS, if
available.
Autobooting OpenBSD/MACHINE
It is possible to automatically boot into OpenBSD (selectably into Mac OS)
by setting up the following:
setenv auto-boot? true
setenv boot-device hd:,ofwboot
[to save the results into NVRAM]
reset-all
These settings assume that the master of the first IDE bus has OpenBSD
installed on it, either in MBR format or in shared mode with ofwboot
copied into the first HFS(+) partition. It is not necessary to specify
'/bsd' on the boot line or in the boot-device variable, since it is the
default.
To boot in Mac OS with this setup (works on most supported machines),
press and hold down the Alt/Option key during reboot, and select which
(Mac OS/Mac OS X) partition to boot in the graphical boot selector
presented. Note that OpenBSD does not currently show up in this boot
selector except for the installation image. This works on most machines
this has been tested with, but does not work on a Rev C (333MHz) iMac;
perhaps this feature was added to the Open Firmware ROM after that
machine.
Sharing a disk with Mac OS:
OpenBSD/MACHINE is capable of booting either from a dedicated disk using
an MBR partitioned disk or sharing a disk with Mac OS.
If the disk is to be shared between Mac OS and OpenBSD, it is necessary
to reformat and install the Mac OS partitions first, using "Drive Setup",
leaving space on the disk as an "Unused" partition.
If the disk was previously partitioned, it is possible to reuse a partition
for OpenBSD, as long as it is not the first partition on the disk.
The bootloader is expected to be found in that first (HFS) partition.
For dedicated disks, MACHINE port boots off a boot program in
an MSDOS filesystem. This is set up by the install program
and no special setup is required.

View File

@ -1 +0,0 @@
OpenBSDUpgrade({:-the CD-ROM-:})

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: whatis,v 1.6 2010/03/16 17:23:09 miod Exp $
OpenBSD/MACHINE runs on the ``New World'' PowerPC-based Apple
Macintosh systems (i.e. from the iMac onwards).

View File

@ -1,24 +0,0 @@
dnl $OpenBSD: xfer,v 1.16 2015/06/10 06:38:39 jasper Exp $
Installation is supported from several media types, including:
CD-ROM
FFS partitions
HFS partitions (bootloader/kernel only, using another media for d/l)
Remote NFS partition
HTTP
OpenBSDXferPrelude
OpenBSDXferCDROM
OpenBSD can now be booted from a CD-ROM by holding down the 'c' key
during reboot. If ofwboot and bsd.rd are copied to an HFS partition, it
is possible to boot from those files. Then install the rest of the files
from any of the above sources.
Note: once an OpenBSD partition exists, it is not possible to load the
kernel (bsd.rd) from an HFS partition on that disk.
OpenBSDXferNFS
OpenBSDXferFFS

View File

@ -1,35 +0,0 @@
dnl $OpenBSD: contents,v 1.10 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDminiroot
dnl not yet...
dnl OpenBSDcd
boot The OpenBSD/MACHINE bootloader.
DistributionDescription(eight)
OpenBSDbase(155005532,464437083)
OpenBSDcomp(67417444,273141716)
OpenBSDgame(2928217,7552590)
OpenBSDman(8021265,30950175)
OpenBSDxbase(50282432,180971325)
OpenBSDxfont(23519076,35818896)
OpenBSDxserv(7943423,31287567)
OpenBSDxshare(4695873,24958258)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.5 2023/03/16 18:04:08 miod Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/octeon/ramdisk/install.md
dnl and the list files in
dnl src/distrib/octeon/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},mips64)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles need to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,22 +0,0 @@
dnl $OpenBSD: hardware,v 1.9 2023/03/16 18:04:08 miod Exp $
The following machines are targeted by OpenBSD/MACHINE:
D-Link DSR-500 and DSR-500N
Netgear ProSecure UTM25
Portwell CAM-0100
Rhino Labs Inc. SDNA Shasta
Rhino Labs Inc. SDNA-7130
Ubiquiti Networks EdgeRouter
Ubiquiti Networks EdgeRouter 12
Ubiquiti Networks EdgeRouter 4
Ubiquiti Networks EdgeRouter 6P
Ubiquiti Networks EdgeRouter Infinity
Ubiquiti Networks EdgeRouter LITE
Ubiquiti Networks EdgeRouter Lite / PoE
Ubiquiti Networks EdgeRouter PRO
Ubiquiti Networks EdgeRouter PoE
Ubiquiti Networks UniFi Security Gateway
Ubiquiti Networks UniFi Security Gateway PRO-4
The onboard CompactFlash on D-Link DSR-500 and DSR-500N is not supported
yet.

View File

@ -1,118 +0,0 @@
dnl $OpenBSD: install,v 1.20 2022/03/02 09:35:24 stsp Exp $
OpenBSDInstallPrelude
OpenBSDInstallPart2
OpenBSDInstallPart3(,"octcf0 for internal CompactFlash storage.")
dnl sd0 for USB storage, or wd0 for internal hard disk storage attached to the SATA port
OpenBSDInstallPart4
OpenBSDInstallMBRPart1
dnl OpenBSDInstallMBRPart2
The fdisk(8) utility will be invoked to let you edit your MBR
partitioning. The current MBR partitions defined will be
displayed and you will be allowed to modify them, and add new
partitions.
The setup will need two partitions, one 'OpenBSD' for the
OpenBSD/MACHINE installation, and one 'MSDOS' for the
U-Boot scripts/bootloader.
If you use the whole disk option, the install script
will create a small 'MSDOS' partition and use the rest of
the disk for the OpenBSD installation.
After your OpenBSD MBR partition has been set up, the real
partition setup can follow.
OpenBSDInstallPart5({:-
U-Boot partitions defined on the disk will usually show up as
partition 'i', 'j' and so on.-:})
dnl OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDInstallPart6
OpenBSDURLInstall
dnl OpenBSDCDROMInstall
OpenBSDNFSInstall
OpenBSDDISKInstall({:-"octcfN" or -:},,{:-, Linux (ext2) or MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
U-Boot has to be configured to load the OpenBSD/octeon bootloader.
From the U-Boot commandline, make a copy of the current ${bootcmd} so you can
restore it later if needed:
# setenv old_bootcmd "${bootcmd}"
${bootcmd} is run by U-Boot when ${autoload} is enabled. Now create a new
${bootcmd} which will load an ELF file called 'boot' from the first active FAT
partition on the first CF card. The FAT partition has been created by the
installer.
# setenv bootcmd 'fatload ide 0:1 ${loadaddr} boot;bootoctlinux rootdev=octcf0'
# setenv bootdelay 5
# saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... .done
Protected 1 sectors
#
If you have installed onto SD/MMC, SATA or USB, use the following
bootcmd instead:
fatload <bootdev> 0 ${loadaddr} boot; bootoctlinux rootdev=sd0
Replace ``<bootdev>'' with ``mmc'', ``sata'' or ``usb'' as appropriate.
For stable root disk selection, you can use the root disk's
disklabel(8) UID (DUID) as the value of the rootdev parameter.
On multi-core systems, the numcores parameter enables the secondary CPUs.
Use the total number of cores on your system as the value of the parameter.
fatload usb 0 ${loadaddr} boot; bootoctlinux rootdev=sd0 numcores=2
On the EdgeRouter Lite, bootcmd may also reset the USB controller for
more reliable USB device detection:
usb reset; fatload usb 0 ${loadaddr} boot; bootoctlinux rootdev=sd0 numcores=2
On some models, such as ER-6p, unattended boot from a USB disk will fail
if U-Boot attempts to verify the MD5 checksum of the file loaded by fatload:
reading vmlinux.64.md5
33 bytes read in 303 ms (0 Bytes/s)
md5 checksum error.
Octeon ubnt_e300(ram)#
At this point, the 'bootoctlinux' command can be used to boot manually.
The file 'vmlinux.64.md5' can be renamed from the running OpenBSD system.
In case of ER-6p, the file 'vmlinux.64.md5' resides on a FAT partition
of the internal MMC, which is accessible from OpenBSD via /dev/sd1i:
# mount /dev/sd1i /mnt
# mv /mnt/vmlinux.64.md5 /mnt/vmlinux.64.md5.unused
# reboot
Unattended boot should now succeed, even though U-Boot will warn:
reading vmlinux.64.md5
** Unable to read file vmlinux.64.md5 **
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,95 +0,0 @@
dnl $OpenBSD: prep,v 1.12 2021/02/18 16:18:04 visa Exp $
By default MACHINE systems are shipped with a Linux (or proprietary) system
installed on the CompactFlash card or USB drive.
First connect your computer via serial port to the device (you may need to use
a Cisco serial cable depending on your hardware) with a command such as
"cu -l cuaU0 -s 115200" (assuming cuaU0 is your serial port device). Now apply
power to the device and start it.
Unless you have removed or changed the Linux installation it will be booted
automatically. If you are quick you can interrupt booting (while still in
U-Boot) with ^C.
OpenBSD/MACHINE uses serial speed 115200. If this speed is not the default
on the device, you should adjust it by setting the baudrate U-Boot environment
variable (you also need to reconnect to the serial port using the new speed):
# setenv baudrate 115200
There are several ways to load an OpenBSD/MACHINE kernel (or ramdisk),
over TFTP, from the internal CompactFlash or USB storage.
Booting from a CF card or USB:
To use the miniroot image you will need another machine to plug the
SD card in to. Any machine type will do, as long as it supports SD card
storage devices. Under OpenBSD, it will appear as a ``sd'' device, for
example sd1.
Use the dd(1) utility to copy the miniroot to the hard drive.
The command would likely be, under OpenBSD:
dd if=miniroot{:--:}OSrev.img of=/dev/rsd1c
On the EdgeRouter Lite, some USB storage devices are not detected
immediately after power on:
USB: (port 0) scanning bus for devices...
USB device not responding, giving up (status=0)
1 USB Devices found
scanning bus for storage devices...
No device found. Not initialized?
In such cases, manually resetting the usb controller may help:
Octeon ubnt_e100# usb reset
Now load the ramdisk kernel using either of the following commands depending
on the medium used. For USB:
Octeon ubnt_e100# fatload usb 0 $loadaddr bsd.rd
For Compact Flash use:
# fatload ide 0:1 ${loadaddr} bsd.rd
Booting over the network:
For TFTP you will first need to set up a TFTP server as described in
diskless(8). Assuming tftpd(8) chroots into /tftpboot, copy bsd.rd into that
directory.
Power on your OpenBSD/MACHINE device and from the U-Boot prompt set up
networking. In this example it is assumed you have a DHCP server in your
network:
# dhcp
If you don't have a DHCP server, you need to set the ipaddr U-Boot environment
variable:
# setenv ipaddr <static ip address>
Now set the IP address of your TFTP server:
# setenv serverip <server ip>
The ramdisk kernel needs to be loaded into memory. If you use "0" as the
address, the default address location will be used by U-Boot:
# tftpboot 0 bsd.rd
Using octeth0 device
TFTP from server 192.168.178.30; our IP address is 192.168.178.89
Filename 'bsd.rd'.
Load address: 0x9f00000
Loading: #########################
done
Bytes transferred = 7191474 (6dbbb2 hex), 8617 Kbytes/sec
Booting the installation kernel
Now the kernel can be booted from the default memory location, with no
arguments provided:
# bootoctlinux

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.1 2013/04/01 13:02:48 jasper Exp $
OpenBSDUpgrade({:-your usual boot device-:})

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: whatis,v 1.5 2023/03/16 18:04:08 miod Exp $
OpenBSD/MACHINE is a port intended to run on MIPS64-based systems that utilize
the Cavium OCTEON, OCTEON Plus, OCTEON II, and OCTEON III system on chips.

View File

@ -1,14 +0,0 @@
dnl $OpenBSD: xfer,v 1.3 2020/02/17 13:46:08 otto Exp $
Installation is supported from several media types, including:
FFS partitions
DOS (FAT) partitions
EXT2 partitions
Remote NFS partition
HTTP
OpenBSDXferPrelude
OpenBSDXferNFS
OpenBSDXferFFS

View File

@ -1,32 +0,0 @@
dnl $OpenBSD: contents,v 1.4 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDminiroot
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDinstalliso
DistributionDescription(eight)
OpenBSDbase(193256746,473309068)
OpenBSDcomp(44928660,184741942)
OpenBSDgame(2889624,6780126)
OpenBSDman(8020377,30949743)
OpenBSDxbase(49792115,161826959)
OpenBSDxfont(23519125,35818896)
OpenBSDxserv(14852082,45949892)
OpenBSDxshare(4694855,24958258)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.3 2023/03/16 18:04:08 miod Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/powerpc64/ramdisk/install.md
dnl and the list files in
dnl src/distrib/powerpc64/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},MACHINE)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: hardware,v 1.2 2022/01/14 00:14:39 jsg Exp $
OpenBSD/MACHINE OSREV should work on all non-virtualized POWER9
machines with OPAL firmware. This includes the Talos II and Blackbird
systems available from Raptor Computing Systems.

View File

@ -1,47 +0,0 @@
dnl $OpenBSD: install,v 1.2 2020/07/05 22:27:48 tj Exp $
OpenBSDInstallPrelude
OpenBSDInstallPart2
OpenBSDInstallPart3(,"sd0")
OpenBSDInstallPart4
OpenBSDInstallMBRPart1
dnl OpenBSDInstallMBRPart2(indeed)
The fdisk(8) utility will be invoked to let you edit your MBR
partitioning. The current MBR partitions defined will be
displayed and you will be allowed to modify them or add new
partitions.
The setup will need two partitions, one 'OpenBSD' for the
OpenBSD/MACHINE installation, and one 'MSDOS' for the
bootloader.
If you use the whole disk option, the install script
will create a small 'MSDOS' partition and use the rest of
the disk for the OpenBSD installation.
After your OpenBSD MBR partition has been set up, the real
partition setup can follow.
OpenBSDInstallPart5
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDDISKInstall(,,{:-, Linux (ext2) or MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: prep,v 1.2 2023/03/16 18:04:08 miod Exp $
dnl TBD
dnl Once this part is written, be sure to revert the ifelse block in
dnl ../INSTALL which omits the prep section title on powerpc64.

View File

@ -1,2 +0,0 @@
dnl $OpenBSD: upgrade,v 1.1 2020/07/05 20:01:35 kettenis Exp $
OpenBSDUpgrade({:-your usual boot device-:})

View File

@ -1,4 +0,0 @@
dnl $OpenBSD: whatis,v 1.2 2020/07/05 22:27:48 tj Exp $
OpenBSD/MACHINE runs on systems equipped with IBM POWER9 processors and
OPAL firmware.

View File

@ -1,11 +0,0 @@
dnl $OpenBSD: xfer,v 1.1 2020/07/05 20:01:35 kettenis Exp $
Installation is supported from several media types, including:
DOS (FAT) partitions
EXT2 partitions
HTTP
OpenBSDXferShortPrelude
OpenBSDXferUSBFromUNIX

View File

@ -1,32 +0,0 @@
dnl $OpenBSD: contents,v 1.5 2023/03/16 18:04:08 miod Exp $
TopPart
OpenBSDminiroot
OpenBSDdistsets
OpenBSDbsd
OpenBSDbsdmp
OpenBSDrd
OpenBSDinstallfs
DistributionDescription(eight)
OpenBSDbase(207276755,511255474)
OpenBSDcomp(62993556,347347613)
OpenBSDgame(2781452,6402030)
OpenBSDman(8021053,30949709)
OpenBSDxbase(58271201,262831114)
OpenBSDxfont(23519068,35818896)
OpenBSDxserv(11236514,31529247)
OpenBSDxshare(4695910,24958258)

View File

@ -1,40 +0,0 @@
dnl $OpenBSD: features,v 1.3 2023/03/16 18:04:08 miod Exp $
dnl
dnl This file lists almost all the conditional features of this port,
dnl which are used to provide accurate installation notes.
dnl
dnl Information about the installer script features should be in sync with
dnl src/distrib/riscv64/ramdisk/install.md
dnl and the list files in
dnl src/distrib/riscv64/ramdisk/list
dnl
dnl ====
dnl
dnl architecture name (for the packages directory)
define({:-MACHINE_ARCH-:},riscv64)dnl
dnl
dnl define if /sbin/kbd exists on the media
define({:-MDKBD-:},)dnl
dnl
dnl define if serial consoles needs to be enabled in /etc/ttys
dnl (i.e. md_consoleinfo is not empty)
define({:-MDSERCONS-:},)dnl
dnl
dnl define if SMP kernels are provided
define({:-MDSMP-:},1)dnl
dnl
dnl define if shared libraries are provided
define({:-MDSO-:},1)dnl
dnl
dnl define if some media have timezone information (TZ in their list)
define({:-MDTZ-:},1)dnl
dnl
dnl define if glass console is possible
dnl (XXX does not imply availability of X servers though)
define({:-MDX-:},)dnl
dnl
dnl define if the X server can't start until machdep.allow_aperture is set
define({:-MDXAPERTURE-:},)dnl
dnl
dnl define if the X server can start without a configuration file
define({:-MDXDM-:},)dnl

View File

@ -1,9 +0,0 @@
dnl $OpenBSD: hardware,v 1.4 2023/03/16 18:04:08 miod Exp $
The following machines are supported by OpenBSD/MACHINE:
SiFive HiFive Unmatched
The following systems are being worked on and partially supported:
Microsemi PolarFire SoC Icicle Kit
StarFive VisionFive

View File

@ -1,47 +0,0 @@
dnl $OpenBSD: install,v 1.1 2021/05/02 23:48:14 drahn Exp $
OpenBSDInstallPrelude
OpenBSDInstallPart2
OpenBSDInstallPart3(,"sd0")
OpenBSDInstallPart4
OpenBSDInstallMBRPart1
dnl OpenBSDInstallMBRPart2(indeed)
The fdisk(8) utility will be invoked to let you edit your MBR
partitioning. The current MBR partitions defined will be
displayed and you will be allowed to modify them, and add new
partitions.
The setup will need two partitions, one 'OpenBSD' for the
OpenBSD/MACHINE installation, and one 'MSDOS' for the
U-Boot scripts/bootloader.
If you use the whole disk option, the install script
will create a small 'MSDOS' partition and use the rest of
the disk for the OpenBSD installation.
After your OpenBSD MBR partition has been set up, the real
partition setup can follow.
OpenBSDInstallPart5
OpenBSDInstallPart6({:-CD-ROM, -:})
OpenBSDURLInstall
OpenBSDCDROMInstall
OpenBSDDISKInstall(,,{:-, MS-DOS-:})
OpenBSDCommonInstall
OpenBSDInstallWrapup
OpenBSDCongratulations
OpenBSDUnattendedInstallation

View File

@ -1,48 +0,0 @@
dnl $OpenBSD: prep,v 1.6 2023/04/10 12:57:15 jsg Exp $
Please be aware that OpenBSD support for this platform is far from
complete, however progress is being made.
HiFive Unmatched
Copy install{:--:}OSrev.img to a USB stick, and boot with both it and the
vendor provided uSD card (unmodified) inserted. This should enable firmware
and U-Boot to be loaded from uSD and OpenBSD bootloader and kernel to be
loaded from USB stick.
QEMU with OpenSBI and U-Boot
OpenBSD can be installed onto a disk by copying the miniroot for your
board "miniroot{:--:}OSrev.img" image to an SD card.
Booting from an SD card:
To use the miniroot image you will need another machine to plug the
SD card in to. Any machine type will do, as long as it supports SD card
storage devices. Under OpenBSD, it will appear as a ``sd'' device, for
example sd1.
Use the dd(1) utility to copy the miniroot to the SD card.
The command would likely be, under OpenBSD:
dd if=miniroot{:--:}OSrev.img of=/dev/rsd1c bs=1m
When you have connected the serial to your computer, a command such
as "cu -l cuaU0 -s 115200" (assuming cuaU0 is your serial port device)
should connect you to the board's console.
Running EFI payloads with U-Boot:
If the U-Boot target supports "distro_bootcmd" efiboot will automatically
be loaded by placing bootriscv64.efi into /efi/boot/bootriscv64.efi on a FAT
filesystem. With dtb files placed in /vendor/, /dtbs/vendor/, or
/dtb/current/vendor/.
If the U-Boot target supports bootefi but not automatically finding it with
"distro_bootcmd" then it must be loaded manually or by U-Boot commands or
script.
=> run findfdt
=> load mmc 0:1 ${fdt_addr_r} ${fdtfile}
=> load mmc 0:1 ${kernel_addr_r} efi/boot/bootriscv64.efi
=> bootefi ${kernel_addr_r} ${fdt_addr_r}
The bootloader will then run and try to load sd0a:/bsd off an FFS
filesystem after a timeout.

Some files were not shown because too many files have changed in this diff Show More