Subject: port-next68k/23179: installboot(8) and disklabel -B should support next68k
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <michael@nosflow.com>
List: netbsd-bugs
Date: 10/17/2003 18:14:09
>Number:         23179
>Category:       port-next68k
>Synopsis:       installboot(8) and disklabel -B should support next68k
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    port-next68k-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 17 18:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     michael wolfson
>Release:        -current
>Organization:
>Environment:
NetBSD 1.6ZC (GENERIC) #0: Wed Sep 24 21:54:01 UTC 2003
        autobuild@tgm.netbsd.org:/autobuild/HEAD/next68k/OBJ/autobuild/HEAD/src/sys/arch/next68k/compile/GENERIC
>Description:
http://mail-index.netbsd.org/port-next68k/2002/06/06/0003.html

Christian Limpach <chris@Pin.LU> has a small installboot.sh script that does what installboot(8) should do.  This allows next68k systems to boot NetBSD from SCSI hard drives.


#!/bin/sh
#       $NetBSD: installboot.sh,v 1.1.1.1 1998/01/16 05:53:30 jewell Exp $

# simple installboot program we can use until we have disklabel to do the job.
# (This one has the advantage that it runs on any architecture. However it
#  expects the bootblock to be located at a very fixed position.)
#
Usage() {
        echo "Usage: installboot bootprog device" >&2
        if [ -n "$1" ]; then echo "$1" >&2; fi
        exit 1
}

if [ $# != 2 ]; then Usage; fi
if [ ! -f $1 ]; then Usage "bootprog must be a regular file"; fi
if [ ! -c $2 ]; then Usage "device must be a character special file"; fi

dd if="$1" of="$2" obs=1024 seek=32 conv=osync
dd if="$1" of="$2" obs=1024 seek=96 conv=osync
exit $?

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: