Remove support for NetBSD/pc532.

This commit is contained in:
simonb 2008-01-09 11:25:58 +00:00
parent 1d97c261e0
commit d8de5b102b
324 changed files with 81 additions and 42278 deletions

View File

@ -1,5 +1,5 @@
#! /usr/bin/env sh
# $NetBSD: build.sh,v 1.181 2007/12/17 19:23:44 garbled Exp $
# $NetBSD: build.sh,v 1.182 2008/01/09 11:25:58 simonb Exp $
#
# Copyright (c) 2001-2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -327,10 +327,6 @@ getarch()
MACHINE_ARCH=mipsel
;;
pc532)
MACHINE_ARCH=ns32k
;;
evbppc64|macppc64)
makewrappermachine=${MACHINE}
MACHINE=${MACHINE%64}
@ -373,7 +369,7 @@ validatearch()
#
case "${MACHINE_ARCH}" in
alpha|arm|armeb|hppa|i386|m68000|m68k|mipse[bl]|mips64e[bl]|ns32k|powerpc|powerpc64|sh[35]e[bl]|sparc|sparc64|vax|x86_64|ia64)
alpha|arm|armeb|hppa|i386|m68000|m68k|mipse[bl]|mips64e[bl]|powerpc|powerpc64|sh[35]e[bl]|sparc|sparc64|vax|x86_64|ia64)
;;
"")
@ -1095,7 +1091,7 @@ createmakewrapper()
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
# Generated from: \$NetBSD: build.sh,v 1.181 2007/12/17 19:23:44 garbled Exp $
# Generated from: \$NetBSD: build.sh,v 1.182 2008/01/09 11:25:58 simonb Exp $
# with these arguments: ${_args}
#

View File

@ -1,47 +0,0 @@
/* $NetBSD: byte_swap_2.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Mach Operating System
* Copyright (c) 1992 Carnegie Mellon University
* Copyright (c) 1992 Helsinki University of Technology
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON AND HELSINKI UNIVERSITY OF TECHNOLOGY ALLOW FREE USE
* OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON AND
* HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIM ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* HISTORY
* 11-May-92 Johannes Helander (jvh) at Helsinki University of Technology
* Created.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: byte_swap_2.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
KENTRY(__bswap16, 4)
movzwd S_ARG0,r0
rotw 8,r0
ret ARGS
ALTENTRY(ntohs,__bswap16)
ALTENTRY(htons,__bswap16)

View File

@ -1,49 +0,0 @@
/* $NetBSD: byte_swap_4.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Mach Operating System
* Copyright (c) 1992 Carnegie Mellon University
* Copyright (c) 1992 Helsinki University of Technology
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON AND HELSINKI UNIVERSITY OF TECHNOLOGY ALLOW FREE USE
* OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON AND
* HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIM ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* HISTORY
* 11-May-92 Johannes Helander (jvh) at Helsinki University of Technology
* Created.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: byte_swap_4.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
KENTRY(__bswap32, 4)
movd S_ARG0,r0
rotw 8,r0
rotd 16,r0
rotw 8,r0
ret ARGS
ALTENTRY(ntohl,__bswap32)
ALTENTRY(htonl,__bswap32)

View File

@ -1,30 +0,0 @@
/* $NetBSD: bcmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: bcmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* int
* bcmp (const void *b1, const void *b2, size_t len)
*/
KENTRY(bcmp, 12)
enter [],0
movd B_ARG2,r0
movd B_ARG0,r1
movd B_ARG1,r2
lshd -2,r0
cmpsd
bne 0f
movqd 3,r0
andd B_ARG2,r0
cmpsb
0: exit []
ret ARGS

View File

@ -1,4 +0,0 @@
/* $NetBSD: bcopy.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
#define BCOPY
#include "memcpy.S"

View File

@ -1,4 +0,0 @@
/* $NetBSD: bzero.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
#define BZERO
#include "memset.S"

View File

@ -1,21 +0,0 @@
/* $NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
KENTRY(ffs, 4)
enter [],0
movqd 0,r0
ffsd B_ARG0,r0
bfs 1f
addqd 1,r0
1: exit []
ret ARGS

View File

@ -1,29 +0,0 @@
/* $NetBSD: memchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: memchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* void *
* memchr (const void *b, int c, size_t len)
* locate the first occurrence of c in string b.
*/
KENTRY(memchr, 12)
enter [r4],0
movd B_ARG2,r0
movb B_ARG1,r4
movd B_ARG0,r1
skpsb u
bfc 0f
movd r1,r0
0: exit [r4]
ret ARGS

View File

@ -1,39 +0,0 @@
/* $NetBSD: memcmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: memcmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* int
* memcmp (const void *b1, const void *b2, size_t len)
*/
KENTRY(memcmp, 12)
enter [],0
movd B_ARG2,r0
movd B_ARG0,r1
movd B_ARG1,r2
lshd -2,r0
cmpsd
movqd 4,r0
bne 1f
movqd 3,r0
andd B_ARG2,r0
1: cmpsb
bne 3f
2: exit []
ret ARGS
3: movzbd 0(r1),r0
movzbd 0(r2),r1
subd r1,r0
exit []
ret ARGS

View File

@ -1,140 +0,0 @@
/* $NetBSD: memcpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: memcpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
# if defined(BCOPY)
RCSID("$Masqueraded: as bcopy $")
# endif
# if defined(MEMMOVE)
RCSID("$Masqueraded: as memmove $")
# endif
#endif
#if !defined(BCOPY) && !defined(MEMMOVE)
/*
* void *
* memcpy (void *d, const void *s, size_t len)
* copy len bytes from the string s to d.
*/
KENTRY(memcpy, 12)
#elif defined(BCOPY)
/*
* void
* bcopy (void *s, const void *d, size_t len)
* copy len bytes from the string s to d.
* s and d may overlap.
*/
# if defined(_KERNEL)
ALTENTRY(ovbcopy,bcopy)
# endif
KENTRY(bcopy, 12)
#else
/*
* void *
* memmove (void *d, const void *s, size_t len)
* copy len bytes from the string s to d.
* s and d may overlap.
*/
KENTRY(memmove, 12)
#endif
enter [r3],0
movd B_ARG2,r0
#if defined(BCOPY)
movd B_ARG0,r1
movd B_ARG1,r2
#else
movd B_ARG1,r1
movd B_ARG0,r2
#endif
#if defined(MEMMOVE) || defined(BCOPY)
cmpd r2,r1
bls 0f
movd r1,r3
addd r0,r3
cmpd r2,r3
bls 2f
#endif
0: cmpqd 4,r0
bhi 1f
/*
* Align destination address.
*/
movd 3,r3
andd r2,r3
movd 0(r1),tos /* Delay write in case src-dst < 4 */
negd r3,r3
addqd 4,r3
addd r3,r1
addd r3,r2
subd r3,r0
movqd 3,r3
andd r0,r3
lshd -2,r0
movsd
movd r3,r0
movsb
#if !defined(BCOPY)
movd B_ARG0,r0
movd tos,0(r0)
#else
movd tos,0(B_ARG1)
#endif
exit [r3]
ret ARGS
1: movsb
#if !defined(BCOPY)
movd B_ARG0,r0
#endif
exit [r3]
ret ARGS
#if defined(MEMMOVE) || defined(BCOPY)
2: addd r0,r1
addd r0,r2
addqd -1,r1
addqd -1,r2
cmpqd 4,r0
bhi 0f
/*
* Align destination address.
*/
movd r0,r3
movqd 1,r0
addd r2,r0
andd 3,r0
subd r0,r3
movsb b
movd r3,r0
andd 3,r3
addqd -3,r1
addqd -3,r2
lshd -2,r0
movsd b
movd r3,r0
addqd 3,r1
addqd 3,r2
0: movsb b
#if !defined(BCOPY)
movd B_ARG0,r0
#endif
exit [r3]
ret ARGS
#endif

View File

@ -1,4 +0,0 @@
/* $NetBSD: memmove.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
#define MEMMOVE
#include "memcpy.S"

View File

@ -1,141 +0,0 @@
/* $NetBSD: memset.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: memset.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
# if defined(BZERO)
RCSID("$Masqueraded: as bzero $")
# endif
#endif
#if !defined(BZERO)
/*
* void *
* memset (void *b, int c, size_t len)
* write len bytes of value c to the string b.
*/
#define SETMEMB(d) movb r4,d
#define SETMEMD(d) movd r4,d
KENTRY(memset, 12)
enter [r3,r4],0
movd B_ARG0,r1 /* b */
movzbd B_ARG1,r0 /* c */
movd 0x01010101,r4
muld r0,r4
movd B_ARG2,r2 /* len */
#else
/*
* void
* bzero (void *b, size_t len)
* write len zero bytes to the string b.
*/
#define SETMEMB(d) movqb 0,d
#define SETMEMD(d) movqd 0,d
KENTRY(bzero, 8)
enter [r3],0
movd B_ARG0,r1 /* b */
movd B_ARG1,r2 /* len */
#endif
cmpd 19,r2
bhs 6f /* Not worth the trouble. */
/*
* Is address aligned?
*/
movqd 3,r0
andd r1,r0 /* r0 = b & 3 */
cmpqd 0,r0
beq 0f
/*
* Align address (if necessary).
*/
SETMEMD(0(r1))
addr -4(r0)[r2:b],r2 /* len = len + (r0 - 4) */
negd r0,r0
addr 4(r0)[r1:b],r1 /* b = b + (-r0 + 4) */
0: /*
* Compute loop start address.
*/
movd r2,r0
addr 60(r2),r3
andd 60,r0 /* r0 = len & 60 */
lshd -6,r3 /* r3 = (len + 60) >> 6 */
andd 3,r2 /* len &= 3 */
cmpqd 0,r0
beq 1f
addr -64(r1)[r0:b],r1 /* b = b - 64 + r0 */
lshd -2,r0
addr 0(r0)[r0:w],r0
negd r0,r0 /* r0 = -3 * r0 / 4 */
jump 2f(pc)[r0:b] /* Now enter the loop */
/*
* Zero 64 bytes per loop iteration.
*/
.align 2
1: SETMEMD(0(r1))
SETMEMD(4(r1))
SETMEMD(8(r1))
SETMEMD(12(r1))
SETMEMD(16(r1))
SETMEMD(20(r1))
SETMEMD(24(r1))
SETMEMD(28(r1))
SETMEMD(32(r1))
SETMEMD(36(r1))
SETMEMD(40(r1))
SETMEMD(44(r1))
SETMEMD(48(r1))
SETMEMD(52(r1))
SETMEMD(56(r1))
SETMEMD(60(r1))
2: addd 64,r1
acbd -1,r3,1b
3: cmpqd 0,r2
beq 5f
/*
* Zero out blocks shorter than four bytes.
*/
4: SETMEMB(-1(r1)[r2:b])
acbd -1,r2,4b
#ifndef BZERO
5: movd B_ARG0,r0
exit [r3,r4]
ret ARGS
#else
5: exit [r3]
ret ARGS
#endif
/*
* For blocks smaller than 20 bytes
* this is faster.
*/
.align 2
6: cmpqd 3,r2
bhs 3b
movd r2,r0
andd 3,r2
lshd -2,r0
7: SETMEMD(0(r1))
addqd 4,r1
acbd -1,r0,7b
br 3b

View File

@ -1,33 +0,0 @@
/* $NetBSD: strcat.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strcat.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* char *
* strcat (char *d, const char *s)
* append string s to d.
*/
KENTRY(strcat, 8)
enter [],0
movd B_ARG0,tos
bsr _C_LABEL(strlen)
addd B_ARG0,r0
movd B_ARG1,0(sp)
movd r0,tos
bsr _C_LABEL(strcpy)
#if !defined(MRTD)
adjspd -8
#endif
movd B_ARG0,r0
exit []
ret ARGS

View File

@ -1,141 +0,0 @@
/* $NetBSD: strchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
# if defined(INDEX)
RCSID("$Masqueraded: as index $")
# endif
#endif
#if !defined(INDEX)
/*
* char *
* strchr (const char *s, int c)
* locate the first occurrence of c in the string s.
*/
KENTRY(strchr, 8)
#else
/*
* char *
* index (const char *s, int c)
* locate the first occurrence of c in the string s.
*/
KENTRY(index, 8)
#endif
enter [r3,r4,r5],0
movd B_ARG0,r0
movzbd B_ARG1,r1
movd 0x01010101,r5
muld r1,r5
/*
* First begin by seeing if we can doubleword align the
* pointer. The following code only aligns the pointer in r0.
*/
movqd 3,r3
andd r0,r3
0: casew 1f(pc)[r3:w]
1: .word 5f-0b
.word 2f-0b
.word 3f-0b
.word 4f-0b
.align 2,0xa2
2: cmpb r5,0(r0) ; beq 6f ; cmpqb 0,0(r0) ; beq notfound
cmpb r5,1(r0) ; beq 7f ; cmpqb 0,1(r0) ; beq notfound
cmpb r5,2(r0) ; beq 8f ; cmpqb 0,2(r0) ; beq notfound
addqd 3,r0
br 5f
.align 2,0xa2
3: cmpb r5,0(r0) ; beq 6f ; cmpqb 0,0(r0) ; beq notfound
cmpb r5,1(r0) ; beq 7f ; cmpqb 0,1(r0) ; beq notfound
addqd 2,r0
br 5f
.align 2,0xa2
4: cmpb r5,0(r0) ; beq 6f ; cmpqb 0,0(r0) ; beq notfound
addqd 1,r0
/*
* Okay, when we get down here R0 points at a double word
* algined source block of bytes.
* This guy processes four bytes at a time and checks for the
* zero terminating byte amongst the bytes in the double word.
* This algorithm is de to Dave Rand.
*
* Sneaky test for zero amongst four bytes:
*
* xxyyzztt
* -01010101
* ---------
* aabbccdd
* bic xxyyzztt
* ---------
* eeffgghh ee=0x80 if xx=0, ff=0x80 if yy=0, etc.
*
* This whole result will be zero if there
* was no zero byte, it will be non-zero if
* there is a zero byte present.
*/
5: movd 0x01010101,r2 /* Magic number to use */
movd 0x80808080,r3 /* Another magic number. */
addqd -4,r0
.align 2,0xa2
0: movd 4(r0),r1 /* Get next double word. */
addd 4,r0 /* Advance pointer */
movd r1,r4 /* Save for storage later. */
subd r2,r1 /* Gets borrow if byte = 0. */
bicd r4,r1 /* Clear original bits. */
andd r3,r1 /* See if borrow occurred. */
cmpqd 0,r1
bne 1f /* See if this DWORD contained a 0. */
xord r5,r4 /* Convert any 'c' to 0. */
movd r4,r1
subd r2,r1
bicd r4,r1
andd r3,r1
cmpqd 0,r1
beq 0b
/*
* At this point, r0 points at a double word which
* contains a zero byte or c.
*/
1: cmpb r5,0(r0) ; beq 6f ; cmpqb 0,0(r0) ; beq notfound
cmpb r5,1(r0) ; beq 7f ; cmpqb 0,1(r0) ; beq notfound
cmpb r5,2(r0) ; beq 8f ; cmpqb 0,2(r0) ; beq notfound
cmpb r5,3(r0) ; beq 9f
notfound:
movqd 0,r0
exit [r3,r4,r5]
ret ARGS
6: exit [r3,r4,r5]
ret ARGS
7: addqd 1,r0
exit [r3,r4,r5]
ret ARGS
8: addqd 2,r0
exit [r3,r4,r5]
ret ARGS
9: addqd 3,r0
exit [r3,r4,r5]
ret ARGS

View File

@ -1,4 +0,0 @@
/* $NetBSD: strcmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
#define STRCMP
#include "strncmp.S"

View File

@ -1,121 +0,0 @@
/* $NetBSD: strcpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Randy Hyde, 1993
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strcpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* char *
* strcpy (char *d, const char *s)
* copy string s to d.
*/
KENTRY(strcpy, 8)
enter [r3,r4,r5],0
movd B_ARG1,r1
movd B_ARG0,r2
/*
* We need to double word align the src (R1). When we read
* by double words we can read potentially up to 3 bytes
* past the null terminating byte. We can avoid spurious page
* faults by double word aligning the source. It also runs
* faster. IWD
*/
movqd 3,r3
andd r1,r3
0: casew 1f(pc)[r3:w]
1: .word 5f-0b
.word 2f-0b
.word 3f-0b
.word 4f-0b
.align 2,0xa2
2: movb 0(r1),0(r2) ; cmpqb 0,0(r1) ; beq 9f
movb 1(r1),1(r2) ; cmpqb 0,1(r1) ; beq 9f
movb 2(r1),2(r2) ; cmpqb 0,2(r1) ; beq 9f
addqd 3,r1
addqd 3,r2
br 5f
.align 2,0xa2
3: movb 0(r1),0(r2) ; cmpqb 0,0(r1) ; beq 9f
movb 1(r1),1(r2) ; cmpqb 0,1(r1) ; beq 9f
addqd 2,r1
addqd 2,r2
br 5f
.align 2,0xa2
4: movb 0(r1),0(r2) ; cmpqb 0,0(r1) ; beq 9f
addqd 1,r1
addqd 1,r2
/*
* Okay, when we get down here R1 points at a double word
* aligned source block of bytes, R2 points at the destination
* block of bytes (typically, though not always double word
* aligned).
* This guy processes four bytes at a time and checks for the
* zero terminating byte amongst the bytes in the double word.
* This algorithm is due to Dave Rand.
*
* Sneaky test for zero amongst four bytes:
*
* xxyyzztt
* -01010101
* ---------
* aabbccdd
* bic xxyyzztt
* ---------
* eeffgghh ee=0x80 if xx=0, ff=0x80 if yy=0, etc.
*
* This whole result will be zero if there
* was no zero byte, it will be non-zero if
* there is a zero byte present.
*/
5: movd 0x01010101,r3 /* Magic number to use */
movd 0x80808080,r4 /* Another magic number. */
movd 0(r1),r5 /* Get 1st double word. */
movd r5,r0 /* Save for storage later. */
subd r3,r0 /* Gets borrow if byte = 0. */
bicd r5,r0 /* Clear original bits. */
andd r4,r0 /* See if borrow occurred. */
cmpqd 0,r0
bne 1f /* See if this DWORD contained a 0. */
.align 2,0xa2
0: movd 4(r1),r0 /* Get next 4 bytes to process */
movd r5,0(r2) /* Save away prev four bytes. */
addd 4,r1 /* addd is faster than addqd here */
addd 4,r2
movd r0,r5 /* Save for storage if no zeros. */
subd r3,r0
bicd r5,r0
andd r4,r0
cmpqd 0,r0
beq 0b
/*
* At this point, R1 points at a double word which
* contains a zero byte. Copy the characters up to
* (and including) the zero byte and quit.
*/
1: movb 0(r1),0(r2) ; cmpqb 0,0(r1) ; beq 9f
movb 1(r1),1(r2) ; cmpqb 0,1(r1) ; beq 9f
movb 2(r1),2(r2) ; cmpqb 0,2(r1) ; beq 9f
movb 3(r1),3(r2) /* This one must be a zero byte */
9: movd B_ARG0,r0
exit [r3,r4,r5]
ret ARGS

View File

@ -1,114 +0,0 @@
/* $NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Randy Hyde, 1993
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* size_t
* strlen (char *s)
* compute the length of the string s.
*/
KENTRY(strlen, 4)
enter [r3,r4],0
movd B_ARG0,r0
/*
* First begin by seeing if we can doubleword align the
* pointer. The following code aligns the pointer in r0.
*/
movqd 3,r3
andd r0,r3
0: casew 1f(pc)[r3:w]
1: .word 5f-0b
.word 2f-0b
.word 3f-0b
.word 4f-0b
.align 2,0xa2
2: cmpqb 0,0(r0) ; beq 7f
cmpqb 0,1(r0) ; beq 8f
cmpqb 0,2(r0) ; beq 9f
addqd 3,r0
br 5f
.align 2,0xa2
3: cmpqb 0,0(r0) ; beq 7f
cmpqb 0,1(r0) ; beq 8f
addqd 2,r0
br 5f
.align 2,0xa2
4: cmpqb 0,0(r0) ; beq 7f
addqd 1,r0
/*
* Okay, when we get down here r0 points at a double word
* algined source block of bytes.
* This guy processes four bytes at a time and checks for the
* zero terminating byte amongst the bytes in the double word.
* This algorithm is de to Dave Rand.
*
* Sneaky test for zero amongst four bytes:
*
* xxyyzztt
* -01010101
* ---------
* aabbccdd
* bic xxyyzztt
* ---------
* eeffgghh ee=0x80 if xx=0, ff=0x80 if yy=0, etc.
*
* This whole result will be zero if there
* was no zero byte, it will be non-zero if
* there is a zero byte present.
*/
5: movd 0x01010101,r2 /* Magic number to use */
movd 0x80808080,r3 /* Another magic number. */
addqd -4,r0
.align 2,0xa2
0: movd 4(r0),r1 /* Get next double word. */
addqd 4,r0 /* Advance pointer. */
movd r1,r4 /* Save for storage later. */
subd r2,r1 /* Gets borrow if byte = 0. */
bicd r4,r1 /* Clear original bits. */
andd r3,r1 /* See if borrow occurred. */
cmpqd 0,r1
beq 0b /* See if this DWORD contained a 0. */
/*
* At this point, r0 points at a double word which
* contains a zero byte. Count the bytes up to the
* zero.
*/
1: cmpqb 0,0(r0) ; beq 7f
cmpqb 0,1(r0) ; beq 8f
cmpqb 0,2(r0) ; beq 9f
addqd 3,r0 /* Must be in fourth byte. */
7: subd B_ARG0,r0
exit [r3,r4]
ret ARGS
8: addqd 1,r0
subd B_ARG0,r0
exit [r3,r4]
ret ARGS
9: addqd 2,r0
subd B_ARG0,r0
exit [r3,r4]
ret ARGS

View File

@ -1,48 +0,0 @@
/* $NetBSD: strncmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strncmp.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
# if defined(STRCMP)
RCSID("$Masqueraded: as strcmp $")
# endif
#endif
#if defined(STRCMP)
/*
* int
* strcmp(const char *s1, const char *s2)
*/
KENTRY(strcmp, 8)
enter [r4],0
movd -1,r0
#else
/*
* int
* strncmp(const char *s1, const char *s2, size_t len)
*/
KENTRY(strncmp, 12)
enter [r4],0
movd B_ARG2,r0
cmpqd 0,r0
beq 1f
#endif
movd B_ARG0,r1
movd B_ARG1,r2
movqd 0,r4
cmpsb u
bfc 0f
cmpb 0(r1),0(r2)
0: movqd 0,r0
beq 1f
movqd -1,r0
blo 1f
movqd 1,r0
1: exit [r4]
ret ARGS

View File

@ -1,36 +0,0 @@
/* $NetBSD: strncpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strncpy.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
#endif
/*
* char *
* strncpy (char *d, const char *s, size_t len)
* copy at most len characters from the string s to d.
*/
KENTRY(strncpy, 12)
enter [r4],0
movd B_ARG2,r0
movd B_ARG1,r1
movd B_ARG0,r2
movqd 0,r4
movsb u
bfc 0f
movd r0,tos
movd r2,tos
bsr _C_LABEL(bzero)
#if !defined(MRTD)
adjspd -8
#endif
0: movd B_ARG0,r0
exit [r4]
ret ARGS

View File

@ -1,140 +0,0 @@
/* $NetBSD: strrchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
/*
* Written by Matthias Pfaller, 1996
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: strrchr.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
# if defined(RINDEX)
RCSID("$Masqueraded: as rindex $")
# endif
#endif
#if !defined(RINDEX)
/*
* char *
* strrchr (const char *s, int c)
* locate the last occurrence of c in the string s.
*/
KENTRY(strrchr, 8)
#else
/*
* char *
* rindex (const char *s, int c)
* locate the last occurrence of c in the string s.
*/
KENTRY(rindex, 8)
#endif
enter [r3,r4,r5,r6,r7],0
movd B_ARG0,r0
movzbd B_ARG1,r1
movd 0x01010101,r5
movqd 0,r6
muld r1,r5
/*
* First begin by seeing if we can doubleword align the
* pointer. The following code aligns the pointer in r0.
*/
movqd 3,r3
andd r0,r3
0: casew 1f(pc)[r3:w]
1: .word 5f-0b
.word 2f-0b
.word 3f-0b
.word 4f-0b
.align 2,0xa2
2: cmpb r5,0(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,0(r0) ; beq 8f
cmpb r5,1(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,1(r0) ; beq 8f
cmpb r5,2(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,2(r0) ; beq 8f
addqd 3,r0
br 5f
.align 2,0xa2
3: cmpb r5,0(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,0(r0) ; beq 8f
cmpb r5,1(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,1(r0) ; beq 8f
addqd 2,r0
br 5f
.align 2,0xa2
4: cmpb r5,0(r0) ; bne 0f ; movd r0,r6 ; 0: cmpqb 0,0(r0) ; beq 8f
addqd 1,r0
/*
* Okay, when we get down here r0 points at a double word
* algined source block of bytes.
* This guy processes four bytes at a time and checks for the
* zero terminating byte amongst the bytes in the double word.
* This algorithm is de to Dave Rand.
*
* Sneaky test for zero amongst four bytes:
*
* xxyyzztt
* -01010101
* ---------
* aabbccdd
* bic xxyyzztt
* ---------
* eeffgghh ee=0x80 if xx=0, ff=0x80 if yy=0, etc.
*
* This whole result will be zero if there
* was no zero byte, it will be non-zero if
* there is a zero byte present.
*/
5: movd 0x01010101,r2 /* Magic number to use */
movd 0x80808080,r3 /* Another magic number. */
addqd -4,r0
br 1f
.align 2,0xa2
0: movd r4,r1
subd r2,r1 /* Gets borrow if byte = 0. */
bicd r4,r1 /* Clear original bits. */
andd r3,r1 /* See if borrow occurred. */
cmpqd 0,r1
bne 8f /* See if this DWORD contained a 0. */
1: movd 4(r0),r4 /* Get next double word. */
addd 4,r0 /* Advance pointer */
xord r5,r4 /* Convert any 'c' to 0. */
movd r4,r1
subd r2,r1
bicd r4,r1
andd r3,r1
xord r5,r4
cmpqd 0,r1
beq 0b
movd r6,r7
movd r0,r6
br 0b
/*
* At this point, r6 points at a double word which
* contains c or r6 is zero.
*/
8: movqd 0,r0
9: cmpqd 0,r6
beq 2f
cmpb r5,0(r6) ; bne 0f ; movd r6,r0 ; 0: cmpqb 0,0(r6) ; beq 1f
cmpb r5,1(r6) ; bne 0f ; addr 1(r6),r0 ; 0: cmpqb 0,1(r6) ; beq 1f
cmpb r5,2(r6) ; bne 0f ; addr 2(r6),r0 ; 0: cmpqb 0,2(r6) ; beq 1f
cmpb r5,3(r6) ; bne 1f ; addr 3(r6),r0 ; 1: cmpqd 0,r0 ; bne 2f
/*
* Maybe the last match was behind the end of the string.
*/
movd r7,r6
br 9b
2: exit [r3,r4,r5,r6,r7]
ret ARGS

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.38 2007/10/17 22:59:26 garbled Exp $
# $NetBSD: Makefile,v 1.39 2008/01/09 11:25:58 simonb Exp $
#
.include <bsd.own.mk>
@ -34,7 +34,6 @@ SUBDIR+= mvme68k
SUBDIR+= news68k
SUBDIR+= newsmips
SUBDIR+= next68k
SUBDIR+= pc532
SUBDIR+= pmax
SUBDIR+= prep
SUBDIR+= sandpoint

View File

@ -1,4 +1,4 @@
.\" $NetBSD: contents,v 1.135 2007/12/15 14:00:08 pavel Exp $
.\" $NetBSD: contents,v 1.136 2008/01/09 11:25:58 simonb Exp $
.\"
.\" Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -270,7 +270,7 @@ see below.
Netbootable RAM disk kernel and the file system in the RAM disk; see below.
.\}
.if \n[alpha]:\n[amd64]:\n[amiga]:\n[atari]:\n[bebox]:\n[ews4800mips]:\
\n[i386]:\n[news68k]:\n[newsmips]:\n[pc532]:\n[sparc]:\n[x68k]:\n[prep]:\
\n[i386]:\n[news68k]:\n[newsmips]:\n[sparc]:\n[x68k]:\n[prep]:\
\n[sandpoint] \{\
. It Pa floppy/
\*M boot and installation floppies; see below.
@ -1846,35 +1846,6 @@ This must be the third file written to the tape.
.\}
.
.
.if \n[pc532] \{\
.Pp
The initial installation process on a pc532 without a previous
.Nx
installation is supported by the following files:
.(tag floppy-144.fs
.It Pa floppy-144.fs
A file system containing the boot loader and install kernel with
a 2 MB root.
.It Pa download.c
The source for a program to download
.Pa inst-11.fs
into memory via the pc532
.Tn ROM
monitor .
.tag)
.Pp
The upgrade process is supported by having a copy of a \*V kernel
available.
This file is:
.(tag kern.tgz
.It Pa kern.tgz
Contains a kernel produced from the
.Pa DEFAULT
configuration file in
.Pa pc532/conf .
.tag)
.\}
.
.if \n[sgimips] \{\
.Pp
The following are included in the

View File

@ -1,4 +1,4 @@
.\" $NetBSD: macros,v 1.32 2007/01/23 15:23:05 itohy Exp $
.\" $NetBSD: macros,v 1.33 2008/01/09 11:25:58 simonb Exp $
.\"
.\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -395,7 +395,7 @@
.define_all \*[MACHINE_LIST]
.
.\" Supported MACHINE_ARCHs:
.ds MACHINE_ARCH_LIST alpha arm hppa i386 m68000 m68k mipseb mipsel ns32k
.ds MACHINE_ARCH_LIST alpha arm hppa i386 m68000 m68k mipseb mipsel
.as MACHINE_ARCH_LIST " powerpc sh3eb sh3el sparc sparc64 vax x86_64 xen-i386
.
.\" Define registers for MACHINE_ARCHs with multiple or different MACHINEs

View File

@ -1,4 +1,4 @@
.\" $NetBSD: main,v 1.385 2007/12/19 15:03:26 rillig Exp $
.\" $NetBSD: main,v 1.386 2008/01/09 11:25:58 simonb Exp $
.\"
.\" Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -53,7 +53,7 @@
.as MACHINE_LIST " evbsh3 ews4800mips hp300 hp700 hpcarm hpcmips hpcsh
.as MACHINE_LIST " hppa i386 ibmnws iyonix luna68k mac68k macppc mipsco mmeye
.as MACHINE_LIST " mvme68k mvmeppc netwinder news68k newsmips next68k ofppc
.as MACHINE_LIST " pc532 pdp10 playstation2 pmax prep sandpoint sbmips
.as MACHINE_LIST " pdp10 playstation2 pmax prep sandpoint sbmips
.as MACHINE_LIST " sgimips shark sparc sparc64 sun2 sun3 vax x68k xen zaurus .
.so \*[.CURDIR]/../common/macros
.
@ -1761,7 +1761,6 @@ If you're one of them, and would like to be mentioned, tell us!)
.It Ta Nick Hudson Ta Mt skrll Ta Sy hp700
.It Ta Noriyuki Soda Ta Mt soda Ta Sy arc
.It Ta Paul Kranenburg Ta Mt pk Ta Sy sparc
.It Ta Phil Nelson Ta Mt phil Ta Sy pc532
.It Ta Reinoud Zandijk Ta Mt reinoud Ta Sy acorn32
.It Ta Ross Harvey Ta Mt ross Ta Sy alpha
.It Ta S\(/oren J\(/orvang Ta Mt soren Ta Sy sgimips

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sysinst,v 1.84 2008/01/06 20:16:24 skrll Exp $
.\" $NetBSD: sysinst,v 1.85 2008/01/09 11:25:59 simonb Exp $
.\"
.\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -60,7 +60,7 @@
. ds part_max p
.\}
.if \n[acorn26]:\n[acorn32]:\n[cats]:\n[evbarm]:\n[evbppc]:\n[ews4800mips]:\
\n[pc532]:\n[sandpoint]:\n[shark] \{\
\n[sandpoint]:\n[shark] \{\
. ds part_usr e
.\}
.if \n[macppc]:\n[news68k]:\n[newsmips]:\n[sparc]:\n[sparc64] \{\

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile,v 1.2 2001/01/14 21:37:57 mycroft Exp $
.include <bsd.man.mk>

View File

@ -1,46 +0,0 @@
.\" $NetBSD: hardware,v 1.9 2002/06/30 12:15:13 lukem Exp $
.
.Nx*M
\*V runs on a
.Tn PC532
computer.
It supports a subset of the
.Dq standard
hardware to date.
This is defined as:
.(bullet -offset indent
4 MB of memory
.It
8 serial lines done by 4 scn2681 chips
.It
The NCR DP8490 SCSI chip (SCSI only)
.(bullet -compact
Most SCSI disks work (fixed and floppy)
.It
A few SCSI tapes work
.It
Some SCSI CD-ROM drives work
.bullet)
.It
The Matthias Pfaller Parallel Port.
.bullet)
.Pp
.Nx*M
currently expects the ROM monitor to be the
.Dq autoboot monitor
of Oct/Nov 1991.
It includes support to set up auto booting of
.Nx ,
including a secondary boot program that the autoboot monitor
will load that in turn loads the
.Nx
kernel from a
.Nx
file system.
Source and ROM images of the autoboot monitor are located at
.Lk ftp://ftp.cs.wwu.edu/pub/\*M/mon.auto.tar.gz
.Pp
Most of the \*M specific development of
.Nx*M
was done on a machine with 8 MB of memory.
It should run with 4 MB of memory although it may be slower.

View File

@ -1,424 +0,0 @@
.\" $NetBSD: install,v 1.17 2002/06/30 12:15:13 lukem Exp $
.\"
.\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the NetBSD
.\" Foundation, Inc. and its contributors.
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
.\" contributors may be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\"
.\" 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 FOUNDATION 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.
.\"
.
(If you already have
.Nx*M
installed and you only want to update
your system, see the next section.)
.Pp
To install
.Nx*M ,
there are several things you need to know.
First,
.Nx
.Dq autoconfig 's
the SCSI devices.
.Pa floppy-144.fs
has only
support for disks configured into the kernel.
Starting the search at SCSI address 0, lun 0 and increasing,
the first disk found will be
.Li sd0
regardless of the address, the second will be sd1.
.Tn KLONDIKE
for example has the following devices installed:
.Pp
.(tag "sd0xx" -offset indent -compact
.It Li sd0
ID 0 LUN 0: Quantum LP52S hard disk drive
.It Li sd1
ID 1 LUN 0: Micropolis 4110 hard disk drive
.It Li sd2
ID 2 LUN 0: Teac FC-1, 3.5" floppy disk drive
.It Li sd3
ID 2 LUN 1: Teac FC-1, 5.25" floppy disk drive
.It Li cd0
ID 3 LUN 0: Toshiba XM-4101TA CD-ROM drive
.It Li st0
ID 4 LUN 0: Tandberg TDC3600 QIC tape drive
.tag)
.Pp
Only
.Li sd0
-
.Li sd3
are supported by the
.Pa floppy-144.fs
kernel.
.Pp
Next you need to know what the install script wants to do.
This install is script on the ram disk root that can do most of
the work of configuring your disk.
.(enum
The script assumes your are using the first n sectors of your
disk, where you can specify n.
It will allow you to create up to 5 file system partitions,
one swap partition and one boot partition.
.It
You should know how many total sectors are on your disk.
The configure will report a head, track, and cylinder count, but
we have found that on some of our disks, it reports something that
makes a smaller disk than we really had.
.It
It is possible to have the install script make a partition
over your save area AND not make a new file system, thus
preserving what is there.
Then, later you can make a new file system after you no longer need
the stuff there.
You will need to do only one boot to get things working from the disk.
.enum)
.
.Ss2 The install procedure
.(enum
Adjust your console device settings.
The floppy-144.fs kernel will come up with 9600 baud, 7 bits,
even parity and one stop bit.
Adjust your terminal to match these settings.
The monitor's baud rate can be changed with
.Ic "baud d'9600" .
.
.It
Get floppy-144.fs and boot the kernel from...
.
.(tag Serial\ line
.It Em Floppy
From Floppy: (and using the autoboot monitor)
If you have a 1.44 meg SCSI floppy drive, you can put floppy-144.fs
onto a 3.5" floppy disk.
Insert the disk into your floppy drive and use the monitor's boot
command to boot the default image from the floppy.
The image booted will ask you for a kernel to load.
Answer
.Pp
.Dl Ic "sd" Ns Ar X Ns Ic "a:/netbsd"
.Pp
Replace
.Ar X
with your drive number.
For KLONDIKE,
.Ar X
would be
.Ic 2 .
.
.It Em Tape
You will need to load a copy of
.Pa floppy-144.fs
into RAM.
.Pp
.(enum -offset indent -compact
load the
.Pa floppy-144.fs
at
.Li 0x260000
.It
run at
.Li 0x3BE020
.enum)
.Pp
The boot program will ask you now for a kernel to load.
Answer
.Li md0a:/netbsd.gz
.
.It Em Serial Line
Provided with the distribution is source for program called
download
.Pq Pa download.c .
This program when used as
.Dq "download file"
will read the contents of the file and
output to standard output a byte sequence used by the \*M
ROM monitor to download a binary file into RAM.
Using this program on a computer connected to the \*M, one can
load a copy of
.Pa floppy-144.fs
into RAM at
.Li 0x260000 .
The boot sequence is now the same as with tape.
.tag)
.It
The
.Pa floppy-144.fs
will run the new
.Ic sysinst
utility as the standard setup.
It assumes a VT100 compatible terminal.
If you don't want to try using
.Ic sysinst
or you don't have a VT100, type f followed by
the return.
Then following these instructions for installation.
If you want to use
.Ic sysinst ,
read the i386 INSTALL instructions to learn about
.Ic sysinst .
.(Note
.Ic sysinst
does not support SLIP or PPP connections.
.Note)
.It
Choose a disk geometry.
For me, the reported geometry left some sectors
.Sq "unallocated" .
That is, the autoconfig message
said the disk had 2428 cylinders, 9 heads, and 93 sectors/track.
This gives a total of 2032236 sectors, but we knew that we had
2053880 sectors.
.Pp
To help in this process, there is a program
.Ic factor
that is on the
.Pa floppy-144.fs .
The usage is
.Ic "factor number"
and it lists the prime factors of number.
For example, with the 2053880 sector disk we got:
.Pp
.Dl $ Ic "factor 2053880"
.Dl 2053880: 2 2 2 5 51347
.Pp
Not many to choose from, so we tried ...
.Pp
.Dl $ Ic "factor 2053820"
.Dl 2053820: 2 2 5 103 997
.Pp
Now we'd like to get about a megabyte per track:
.Pp
.Dl $ Ic "echo \&"2 * 997\&"|bc"
.Dl 1994
.Pp
Now we need the number of tracks (or cylinders):
.Pp
.Dl $ Ic "echo \&"2 * 5 * 103\&"|bc"
.Dl 1030
.Pp
So we ended up choosing 1030 cylinders, 1 head, 1994 sectors/track.
We
.Dq lost
only 60 sectors, but got a
.Dq reasonable
geometry.
.It
Run
.Ic install ;
it will ask you for the disk geometry and other questions.
It will ask you for the geometry and then ask you
how many of those sectors you want to use for
.Nx .
It also
wants to know the size of your boot partition (to be used with
the auto-boot monitor), your root partition
.Pq Pa / ,
your swap partition,
and then any other partitions you may want.
For the
.Sq other
partitions, it will ask for a mount point.
The mount point will be
.Dq "relative to /"
and should not include the leading
.Sq / .
Also, if you do not want the partition to have newfs run on it (that is
it might be the last one and have a copy of
.Pa floppy-144.fs )
enter
.Sq Ic NO
to the mount point and it will not run
.Ic newfs
on the partition.
It will enter the partition into the disklabel.
.It
look around, if you want ... and then halt
.Nx .
.It
reboot the machine.
Using the autoboot monitor, all you should have
to do is give the ROM monitor command
.Ic boot .
The secondary
UFS boot program eventually times out and auto-loads
.Pa /netbsd .
You can get it to do it faster by pressing return.
.Pp
If you are not using the autoboot monitor, you will have to
figure out the starting sector of the boot images partition
and manually load the
.Nx
boot loader from the disk using
the
.Ic read
command.
If you would rather use the autoboot monitor
you can get source and ROM images from the URL
.Lk ftp://ftp.cs.wwu.edu/pub/\*M/mon.auto.tar.gz
.It
Now it is time to load all the other files of the distribution:
You can do this via -
.(bullet
a TCP/IP link (slip, ppp or plip)
you have ifconfig, slattach, route, netstat,
hostname and ftp on the mini-root.
You can even use nfs...
Plip is only an option if you have installed a
centronics port in your \*M.
You do have access to vi to edit your network
files.
.Pq Pa /etc/resolv.conf , ...
.It
floppy disk
.It
tape
.It
cd-rom (If you have a CD with
.Nx*M ,
which most likely
won't happen for a while after \*V release.)
.Pp
.Dl Ic "mount -rt cd9660 /dev/cd0a /mnt"
.Pp
Get the .tgz files from the cd-rom
.It
Use the ROM compatible
.Ic download
program.
The program download is included in the initial installation and
can be used as the receive end of the download by using it as
.Ic "download -r file_to_write" .
If the CRC is correct, the file is retained.
If the CRC is not correct, the file is deleted.
.bullet)
.It
Load the .tgz files.
Choose a place to put them.
We suggest making a directory
.Pa /gz.files
and put them there.
If you are
.Dq short on space,
you might want to load them and extract them one
at a time.
A minimum installation is
.Sy base
and
.Sy etc .
It takes about 32 Megs installed + 20 Megs for the
.Pa base.tgz .
.It
Extract the tar files in
.Pa / .
For example, if your
.Pa *.tgz
files were in a directory
.Pa /gz.files ,
to extract
.Pa base.tgz
you would:
.Pp
.Dl Ic "cd /"
.Dl Ic "tar --unlink -zxpf /gz.files/base.tgz"
.Pp
Add v to the flags if you want a verbose extract.
The
.Ic --unlink
is to make sure that the install versions
of sh, init, ... are replaced by their proper versons
in base.tgz.
We think it is wise to include the
.Ic --unlink
for other things.
.It
Extract at least
.Sy base ,
.Sy etc
and
.Sy kern
for a new installation.
For
.Dq update
extracts, move
.Pa /etc
to
.Pa /etc.old
and then extract
.Sy etc .
You should extract
.Sy etc
for upgrades.
For
.Dq full
installations, extract all files.
.It
Edit the information in
.Pa /etc
.(tag resolv.conf
.It Pa rc.conf
Many things can be configured here
.It Pa hosts
host name and address information
.It Pa resolv.conf
which nameserver to use
.It Pa ttys
make sure the console entry has the correct speed
.It Pa gettytab
You may find that
.Dq ap
instead of
.Dq ep
in the default entry works better for you.
.It Pa fstab
make sure it includes all partitions you want mounted
.tag)
.Pp
Now you can adjust the kernel's default baud rate to match your
monitor's default baud rate.
Do the following:
.Pp
.Dl # Ic "gdb -w /netbsd"
.Dl (gdb) Ic "set scndefaultrate = " Em your_baud_rate
.Dl (gdb) Ic quit
.Pp
where
.Ar your_baud_rate No is the actual value, 19200, 38400 or
something slower than 9600.
If you set scndefaultrate to something bogus, you'll probably
not be able to reboot...
So be carefull!
.It
Reboot the machine and it should come up in multi-user mode
.Em if
you got it configured correctly.
.It
Enjoy!
And help fix bugs and improve
.Nx*M !
.enum)

View File

@ -1,99 +0,0 @@
.\" $NetBSD: legal,v 1.7 2002/06/15 14:41:10 itojun Exp $
.
.It
This product includes software developed by the Alice Group.
.It
This product includes software developed by Philip L. Budne.
.It
This product includes software at the Helsinki University of
Technology.
.It
Some files have the following copyright:
.(item -offset indent -compact
Copyright (c) 1992 Helsinki University of Technology
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
documentation is hereby granted, provided that both the copyright
notice and this permission notice appear in all copies of the
software, derivative works or modified versions, and any portions
thereof, and that both notices appear in supporting documentation.
HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
USE OF THIS SOFTWARE.
.item)
.It
At least one file contains:
.(item -offset indent -compact
Copyright 1990 by Open Software Foundation,
Grenoble, FRANCE
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appears in all copies and
that both the copyright notice and this permission notice appear in
supporting documentation, and that the name of OSF or Open Software
Foundation not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.item)
.It
Some files have the following copyright:
.(item -offset indent -compact
Mach Operating System
Copyright (c) 1992 Carnegie Mellon University
Copyright (c) 1992 Helsinki University of Technology
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
documentation is hereby granted, provided that both the copyright
notice and this permission notice appear in all copies of the
software, derivative works or modified versions, and any portions
thereof, and that both notices appear in supporting documentation.
CARNEGIE MELLON AND HELSINKI UNIVERSITY OF TECHNOLOGY ALLOW FREE USE
OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON AND
HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIM ANY LIABILITY OF ANY KIND
FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
Carnegie Mellon requests users of this software to return to
Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
School of Computer Science
Carnegie Mellon University
Pittsburgh PA 15213-3890
any improvements or extensions that they make and grant Carnegie Mellon
the rights to redistribute these changes.
.item)
.It
The IEEE floating point support in
.Pa /usr/src/sys/arch/pc532/fpu
has the following copyright:
.(item -offset indent -compact
IEEE floating point support for NS32081 and NS32381 fpus.
Copyright (c) 1995 Ian Dall
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
documentation is hereby granted, provided that both the copyright
notice and this permission notice appear in all copies of the
software, derivative works or modified versions, and any portions
thereof, and that both notices appear in supporting documentation.
IAN DALL ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.
IAN DALL DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
.item)

View File

@ -1,5 +0,0 @@
.\" $NetBSD: prep,v 1.6 2002/06/30 12:15:13 lukem Exp $
.
The major preparation needed is to make sure you can recover any
current bits stored on your \*M.
If you don't care about your data on the disk, you don't need to do anything.

View File

@ -1,101 +0,0 @@
.\" $NetBSD: upgrade,v 1.13 2002/06/30 13:10:16 lukem Exp $
.\"
.\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the NetBSD
.\" Foundation, Inc. and its contributors.
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
.\" contributors may be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\"
.\" 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 FOUNDATION 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.
.\"
.
The upgrade to
.Nx
\*V is a binary upgrade; it can be quite difficult
to advance to a later version by recompiling from source due primarily
to interdependencies in the various components.
.Pp
To do the upgrade, you must have at least base.tgz on disk and
a copy of the proper netbsd.default.
It will require quite a bit of disk space to do the upgrade.
.Pp
Since upgrading involves replacing the kernel, and most of the system
binaries, it has the potential to cause data loss.
You are strongly advised to
BACK UP ANY IMPORTANT DATA ON YOUR DISK,
whether on the
.Nx
partition or on another operating system's partition, before
beginning the upgrade process.
.Pp
To upgrade your system, follow the following instructions:
.(bullet
Assuming you have space, load the .tgz files onto disk some place.
Then boot the floppy-144.fs image via the method you use.
Under the install system, extract the \&.tgz files as mentioned below
or read the i386 INSTALL notes for how to use
.Ic sysinst .
.It
Extract the .tgz files.
For example, to extract
.Pa base.tgz :
.Pp
.Dl # Ic "cd /"
.Dl # Ic "pax -zrvpe -f /gz.files/base.tgz"
.It
Extract all the .tgz files you want.
You should carefully work at upgrading
.Pa /etc .
There may be changes to file formats depending on what version of
.Nx*M
you are running.
.It
.Em Be careful if you are not running with security.
The \*V distribution does contain support for password encryption.
If you are upgrading from
.Nx 1.0
, it would be reasonable to save a
copy of master.passwd and remove all passwords until after you
upgrade, as
.Nx 1.0
did not ship with password encryption.
.It
Place
.Pa netbsd.default
in
.Pa /
as the file
.Pa netbsd .
.It
Reboot.
(Remember,
.Pa netbsd.default
is a 9600 console line kernel.
Read the last part of the new installation
part of these notes to find out how to change your default speed.)
.It
After reboot, you should make sure you check your new file systems.
.bullet)

View File

@ -1,18 +0,0 @@
.\" $NetBSD: whatis,v 1.9 2002/07/08 14:42:50 lukem Exp $
.
This is the seventh major release of
.Nx*M .
.Pp
There are a few known problems in the \*M port.
They include:
.(enum
.Ic ppp
reports a lot of input errors on some machines.
.It
Some tape drives do not work very well.
Some have hung the system.
.It
The serial drivers do not have all the desired features.
.Ic ( ttyflags
is the most glaring omission.)
.enum)

View File

@ -1,37 +0,0 @@
.\" $NetBSD: xfer,v 1.8 2002/06/30 12:15:13 lukem Exp $
.
The
.Sq standard
method of getting
.Nx*M
onto your \*M is
via the console terminal and using the downloading parts of the
ROM monitor.
As such, usually another computer has the distribution
on disk and is connected via a serial line to your \*M's console port.
A terminal connected to the attached host computer is used
to access the \*M console via a terminal program.
The source for a program called download is part of this distribution.
Download sends data to the ROM monitor over the serial line.
.Pp
You may need to find and read the documentation about the ROM monitor
download command and other low level commands.
.Pp
Other methods of getting
.Nx*M
on your \*M may include
SCSI tape or SCSI floppy disk or cloning a disk on a system
already running
.Nx*M .
.Pp
If you have some operating system already running on your \*M,
you can use that OS to get
.Nx*M
on a hard disk much easier than
with the ROM monitor.
.Nx*M
was developed from Minix/\*M
until it was self hosting.
You can run
.Nx
and Minix or other OS off the same disk.

View File

@ -1,9 +0,0 @@
# $NetBSD: Makefile,v 1.4 2007/03/06 21:57:14 bouyer Exp $
SUBDIR= floppies
TARGETS+= release
iso_image:
${MAKEDIRTARGET} cdroms iso_image
.include <bsd.subdir.mk>

View File

@ -1,6 +0,0 @@
# $NetBSD: Makefile,v 1.1 2007/03/06 21:57:14 bouyer Exp $
SUBDIR= installcd
TARGETS+= release iso_image
.include <bsd.subdir.mk>

View File

@ -1,5 +0,0 @@
# $NetBSD: Makefile,v 1.1 2007/03/06 21:57:14 bouyer Exp $
CDBASE= pc532cd # gives ${CDBASE}.iso
CDRELEASE= true # include $RELEASEDIR/$MACHINE
.include "${.CURDIR}/../../../common/Makefile.bootcd"

View File

@ -1,5 +0,0 @@
# $NetBSD: Makefile,v 1.2 1995/11/28 23:58:45 jtc Exp $
SUBDIR= inst # upgr
.include <bsd.subdir.mk>

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile.inc,v 1.10 2002/04/26 15:30:30 lukem Exp $
.include "../../Makefile.inc"

View File

@ -1,94 +0,0 @@
# $NetBSD: Makefile.inc,v 1.22 2003/10/26 07:25:33 lukem Exp $
# TOP is assumed to be defined by Makefile including this one.
CBIN= instbin
COMMONDIR= ${TOP}/inst-common
MOUNT_POINT?= /mnt
VND?= vnd0
VND_DEV= /dev/${VND}a
VND_RDEV= /dev/r${VND}a
VND_CDEV= /dev/${VND}c
VND_CRDEV= /dev/r${VND}c
IMAGE?= inst.fs
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${COMMONDIR}/list ${.CURDIR}/list
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREECONF= ${COMMONDIR}/mtree.conf
KERNEL?= ${KERNOBJDIR}/INSTALL/netbsd
DISKTYPE= boot3
RAMDISKTYPE= rd
all: netbsd.gz
dd if=/dev/zero of=${IMAGE} bs=18k count=80
disklabel -r -w ${.OBJDIR}/${IMAGE} boot3 2>/dev/null
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
disklabel -rw ${VND_CDEV} ${DISKTYPE}
newfs -B le -b 8192 -f 1024 -O -m 0 -o space -i 204800 -c 80 \
${VND_RDEV} ${DISKTYPE}
mount ${VND_DEV} ${MOUNT_POINT}
cp netbsd.gz ${MOUNT_POINT}/netbsd.gz
@df -i ${MOUNT_POINT}
@echo ""
umount ${MOUNT_POINT}
vnconfig -u ${VND_CDEV}
-yes|bim -c init -c "add ${MDEC}/boot boot" -c "default 0" \
-c "exit" ${.OBJDIR}/${IMAGE} 2>/dev/null >/dev/null
ramdisk.fs: ${CBIN} ${LISTS}
.ifndef SD
dd if=/dev/zero of=${.TARGET} bs=128k count=16
vnconfig -t ${RAMDISKTYPE} -v -c ${VND_CDEV} ${.TARGET}
disklabel -rw ${VND_CDEV} ${RAMDISKTYPE}
newfs -B le -b 8192 -f 1024 -O -m 0 -o space -i 7168 \
${VND_RDEV} ${RAMDISKTYPE}
mount ${VND_DEV} ${MOUNT_POINT}
.else
newfs -B le -b 8192 -f 1024 -O -m 0 -o space -i 7168 -s 4096 \
-t 1 -u 256 /dev/r${SD}
mount /dev/${SD} ${MOUNT_POINT}
.endif
${TOOL_MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
KERNOBJDIR=${KERNOBJDIR} \
TARGDIR=${MOUNT_POINT} ${HOST_SH} ${TOP}/runlist.sh ${LISTS}
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
umount ${MOUNT_POINT}
.ifndef SD
vnconfig -u ${VND_CDEV}
.else
dd if=/dev/${SD} of=${.TARGET} bs=128k count=16
.endif
unconfig:
umount -f ${MOUNT_POINT}
vnconfig -u ${VND_DEV}
/bin/rm -f ${IMAGE}
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
${TOOL_CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
${MAKE} -f ${CBIN}.mk all
netbsd.gz: ramdisk.fs
cp ${KERNEL} /var/tmp/$$$$; \
${TOOL_MDSETIMAGE} -v /var/tmp/$$$$ ramdisk.fs; \
${STRIP} /var/tmp/$$$$; \
gzip -9 </var/tmp/$$$$ >netbsd.gz; \
rm /var/tmp/$$$$
clean cleandir distclean:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
/bin/rm -f netbsd*
.include <bsd.kernobj.mk>
.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>

View File

@ -1,140 +0,0 @@
# $NetBSD: dot.commonutils,v 1.7 2003/07/26 17:07:23 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
# Installation utilites (functions), to get NetBSD installed on
# the hard disk. These are meant to be invoked from the shell prompt,
# by people installing NetBSD.
# we know that /etc/fstab is only generated on the hard drive
dest_dir=/
if [ ! -f /etc/fstab ]; then
dest_dir=/mnt/
fi
# counter for possible shared library confusion
TAR=/usr/bin/tar
GUNZIP=/usr/bin/gunzip
Set_tmp_dir()
{
def_tmp_dir=`pwd`
if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then
def_tmp_dir="$dest_dir"usr/distrib
fi
echo -n "What directory should be used to find and/or store "
echo "installtion"
echo -n "files? [$def_tmp_dir] "
read tmp_dir
if [ "$tmp_dir" = "" ]; then
tmp_dir=$def_tmp_dir
fi
if [ ! -d "$tmp_dir" ]; then
/bin/rm -rf $tmp_dir
mkdir -p $tmp_dir
fi
}
Tmp_dir()
{
if [ "$tmp_dir" = "" ]; then
Set_tmp_dir
fi
cd $tmp_dir
}
Load_fd()
{
Tmp_dir
which=
echo "Don't forget that you can't load from the drive you booted from."
echo ""
while [ "$which" != "0" -a "$which" != "1" ]; do
echo -n "Read from which floppy drive ('0' or '1')? [1] "
read which
if [ "X$which" = "X" ]; then
which=1
fi
done
echo ""
echo "WARNING: during the floppy loading process, you should only"
echo "use Control-C at the prompt."
echo ""
while echo -n \
"Insert floppy (hit Control-C to terminate, enter to load): "
do
read foo
mount -t msdos /dev/fd${which}a /mnt2
cp -rp /mnt2/* .
umount /mnt2
done
}
Load_tape()
{
Tmp_dir
echo -n "Which tape drive will you be using? [rst0] "
read which
if [ "X$which" = "X" ]; then
which=rst0
fi
echo -n "Insert the tape into the tape drive and hit return to "
echo -n "continue..."
read foo
echo "Extracting files from the tape..."
$TAR --unlink -xvpf /dev/$which
echo "Done."
}
Extract()
{
Tmp_dir
echo -n "Would you like to list the files as they're extracted? [n] "
read verbose
case $verbose in
y*|Y*)
tarverbose=v
;;
*)
tarverbose=
;;
esac
cat "$1"* | $GUNZIP | (cd $dest_dir ; $TAR --unlink -xp"$tarverbose"f - )
}
xd()
{
hexdump -e '"%6_ax " 4/1 "%02x " " " 4/1 "%02x " " " 4/1 "%02x " " " 4/1 "%02x " " "' -e '16/1 "%_p" "\n"' $*
}

View File

@ -1,528 +0,0 @@
/* $NetBSD: download.c,v 1.4 2003/08/07 09:27:56 agc Exp $ */
/*
Hacked by Phil Nelson for use with NetBSD, 10/5/95.
This source is in the public domain except for the makeraw function.
The upload part of this program is taken from Bruce's ROM debugger
code.
For NetBSD, the usages are:
download file
- open "file" and ship it out standard output with the
format expected by the pc532 ROM monitor download
command.
download -r nfile
- standard input was generated by a "download file" command.
Capture it, checking the CRC and store it in "nfile".
Note: This program uses termios.
Date: Tue, 27 Feb 90 11:47:38 pst
From: Bruce Culbertson <culberts@hplwbc.hpl.hp.com>
To: pc532@daver.bungi.com
Subject: Re: ROM Debugger -- download command..
John L. Connin <johnc%manatee%uunet@daver> writes:
> Dave, what data format / protocol does the ROM debugger 'download' command
> expect ??
Here is the download program which I run at the other end of the
serial line -- in my case, on an AT clone. The download protocol
is explained in the comments in the program. I just recently added
the download command to the monitor so let me know if you have
problems with it or if you wish it worked differently.
Bruce Culbertson
----------------------------------------------------------------------
*/
/* MS-DOS Program for downloading to the NSC32000 Monitor. Use this as a
* template for writing downloaders for other OS's. Compile the MS-DOS
* version with the Microsoft C compiler.
*
* Bruce Culbertson 18 February 1990
*/
/* Instructions for use:
*
* machine prompt, command, etc.
* -------------------------------------------------------------------
* 32000 Command (? for help): download <address>
* MS-DOS [exit terminal emulator]
* MS-DOS C> <this program> <file name to download>
* MS-DOS [re-enter terminal emulator]
* 32000 [hit return to get status of download]
* 32000 Command (? for help): ...
*
* At any point you can send control-C (e.g. using your terminal emulator)
* to the 32000 monitor to abort the download and return to the monitor
* prompt.
*/
/* Download protocol:
*
* <start mark> <length> <data> <CRC>
*
* Below, the sending machine is called SRC, receiving machine is DST.
* Eight bit characters are used.
*
* Control-C (0x03) aborts the transfer. This capability is nice
* to have if, for example, length is garbled and the DST expects
* billions of characters. Since any byte of <length>, <data>,
* or <CRC> could be control-C, we need to have a quote character.
* I use ESC (0x1b). Thus, control-C and ESC are sent as
* {0x1b 0x03} and {0x1b 0x1b}, respectively.
*
* Start mark:
* This is a colon. When SRC begins sending, DST loops until it sees
* the start mark. Thus, if spurious characters are sent as the
* user switches from terminal emulator to download program on SRC,
* DST can ignore them.
*
* Length:
* Four bytes, least significant first. The length is number of
* data bytes to be transfered, not including quote characters.
* The two CRC bytes are also not included in the length.
*
* Data:
* A byte is sent as a byte, with quoting if necessary.
*
* CRC:
* Two bytes, least significant first. Use CCITT CRC generator
* polynomial (x^16 + x^12 + x^5 + 1). Compute on data only (not
* length or start) and exclude quotes. (This is the same CRC
* as computed by Minix's CRC command.)
*/
#include <stdio.h>
#include <fcntl.h>
#ifdef MSDOS
# define OPEN_FLAGS (O_RDONLY | O_BINARY)
# define off_t long
# define DEFAULT_PORT 1
long lseek();
int port_num = DEFAULT_PORT;
int port;
#else
# include <unistd.h>
# define OPEN_FLAGS O_RDONLY
#endif
#define CCITT_GEN 0x11021 /* x^16 + x^12 + x^5 + 1 */
#define BUFSZ 0x1000
#define ESC 0x1b
#define CTL_C 0x03
#define START ':'
char buf[BUFSZ];
long write_data(), write_header();
void putch ();
void
usage(name)
char *name;
{
fprintf (stderr, "usage: %s [-r] <file>\n", name);
exit (1);
}
/* Output a character. If it is a CLT_C or ESC, then quote (precede)
* it with a ESC.
*/
void
write_ch (c)
int c;
{
if (c == ESC || c == CTL_C)
putch (ESC);
putch (c);
}
/* Write two CRC bytes, LSB first.
*/
void
write_crc (crc)
long crc;
{
write_ch ((int)((crc >> 0) & 0xff));
write_ch ((int)((crc >> 8) & 0xff));
}
/* Given old CRC and new character, return new CRC. Uses standard
* CCITT CRC generator polynomial.
*/
unsigned long
update_crc (crc, ch)
long crc;
int ch;
{
int i;
for (i = 0x80; i; i >>= 1) {
crc = (crc << 1) | (i & ch? 1: 0);
if (crc & 0x10000) crc ^= CCITT_GEN;
}
return crc;
}
/* Write header. Format is a colon followed by four byte length,
* LSB first. Length is the number of data bytes after quotes are
* removed.
*/
long
write_header (fd)
int fd;
{
long len;
if (0 == (len = lseek (fd, (off_t)0, 2))) {
fprintf (stderr, "file length is zero\n");
exit (1);
}
lseek (fd, (off_t)0, 0);
write_ch (START);
write_ch ((int)((len >> 0) & 0xff));
write_ch ((int)((len >> 8) & 0xff));
write_ch ((int)((len >> 16) & 0xff));
write_ch ((int)((len >> 24) & 0xff));
return len;
}
/* Write data.
*/
long
write_data (fd)
int fd;
{
long len, crc = 0;
char *p;
for (;;) {
len = read (fd, buf, BUFSZ);
if (-1 == len) {
fprintf (stderr, "read failed\n");
exit (1);
}
if (len == 0) break;
for (p = buf; p < buf + len; ++p) {
write_ch (*p);
crc = update_crc (crc, *p);
}
}
return crc;
}
#ifdef MSDOS
/* Write hardware directly since BIOS and DOS are not reliable.
*/
#define COM_WR 0
#define COM_RD 0
#define COM_IER 1
#define COM_CTL 3
#define COM_STAT 5
#define COM_CTL_VAL 3 /* 8 bits, 1 stop, no parity */
#define COM_IER_VAL 0 /* interrupts off */
#define COM_TX_RDY 0x20
int old_control, old_ier;
/* Output a character to the serial port.
*/
void
putch (c)
int c;
{
int stat;
for (;;) {
stat = inp (port + COM_STAT);
if (stat & COM_TX_RDY) break;
}
outp (port + COM_WR, c);
}
/* Initialize serial port and save old values. Assume baud rate
* already set.
*/
init_port()
{
old_control = inp (port + COM_IER);
old_ier = inp (port + COM_CTL);
outp (port + COM_CTL, COM_CTL_VAL);
outp (port + COM_IER, COM_IER_VAL);
}
/* Restore serial port to old configuration.
*/
restore_port()
{
outp (port + COM_CTL, old_control);
outp (port + COM_IER, old_ier);
}
#else
/* dummy routines for Unix! */
void
putch (int c)
{
putchar (c);
}
#include <termios.h>
struct termios oldstate;
struct termios newstate;
int atty;
/* The following function is covered by: */
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS 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.
*/
/*
* Make a pre-existing termios structure into "raw" mode: character-at-a-time
* mode with no characters interpreted, 8-bit data path.
*/
void
makeraw(t)
struct termios *t;
{
t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
t->c_oflag &= ~OPOST;
t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
t->c_cflag &= ~(CSIZE|PARENB);
t->c_cflag |= CS8;
}
/* End of copyrighted material. */
void
init_port(int fd)
{
atty = isatty(fd);
if (atty) {
tcgetattr (fd, &oldstate);
newstate = oldstate;
makeraw(&newstate);
tcsetattr (fd, TCSANOW, &newstate);
}
}
void
restore_port(int fd)
{
if (atty) {
tcsetattr (fd, TCSANOW, &oldstate);
}
}
int
get_int (val, len)
unsigned long *val;
long len;
{
unsigned char c;
int shift = 0;
*val = 0;
while (len > 0) {
c = getchar ();
if (c == CTL_C) return 0; /* handle control-C */
if (c == ESC) c = getchar (); /* handle quote */
*val = *val + (c<<(8*shift++));
--len;
}
return 1;
}
int
get_file (f, len, crc)
FILE *f;
unsigned long len, *crc;
{
unsigned char c;
while (len > 0) {
c = getchar ();
if (c == CTL_C) return 0; /* handle control-C */
if (c == ESC) c = getchar (); /* handle quote */
fputc(c,f);
*crc = update_crc (*crc, c); /* compute crc, skip quote */
--len;
}
return 1;
}
/* Upload end of the commands for Unix! */
void
upload (name)
char *name;
{
unsigned long crc, adr, len;
unsigned char c;
unsigned long xcrc;
FILE *f;
/* Open the file. */
f = fopen (name, "w");
if (f == NULL) {
printf ("Could not open \"%s\" for writing.\n", name);
exit(1);
}
/* set raw mode for input. */
init_port(0);
/* get start character */
for (;;) {
c = getchar();
if (c == START) break;
if (c == CTL_C) return;
}
/* get len in little endian form */
if (!get_int (&len, 4)) {
fprintf (stderr, "Upload interrupted.\n");
restore_port(0);
exit(2);
}
crc = 0; /* crc on data only */
if (!get_file (f, len, &crc)) { /* get data */
fprintf (stderr, "Upload interrupted.\n");
restore_port(0);
exit(3);
}
/* get crc in little endian */
if (!get_int (&xcrc, 2)) {
fprintf (stderr, "Upload interrupted.\n");
restore_port(0);
exit(4);
}
if (crc == xcrc) /* print status */
printf ("CRC ok, length = %d\n", len);
else
printf ("CRC error, received %d, expected %d, length %d\n",
xcrc, crc, len);
fclose (f);
/* Restore tty parameters. */
restore_port(0);
}
#endif
/* Main program */
int
main (argc, argv)
int argc;
char **argv;
{
int fd;
long crc, len;
#ifdef MSDOS
/* MSDOS argument processing */
if (argc == 3) {
if (1 != sscanf (argv[2], "%d", &port_num)) {
fprintf (stderr, "Bad serial port, use 1 or 2\n");
exit (1);
}
--argc;
}
if (argc != 2) {
fprintf (stderr, "usage: %s <file> [<serial port>]\n", argv[0]);
exit (1);
}
if (port_num == 1) port = 0x3f8;
else if (port_num == 2) port = 0x2f8;
else {
fprintf (stderr, "Bad serial port, use 1 or 2\n");
exit (1);
}
#else
int do_receive = 0;
int ch;
extern int optind;
/* Unix argument processing */
while ((ch = getopt(argc, argv, "r")) != -1) {
switch (ch) {
case 'r': /* Receive end of a download, use "upload()". */
do_receive = 1;
break;
case '?':
default:
usage(argv[0]);
return (1);
}
}
if (argc-1 != optind)
usage(argv[0]);
if (do_receive) {
upload (argv[2]);
exit (0);
}
#endif
if (0 > (fd = open (argv[1], OPEN_FLAGS))) {
fprintf (stderr, "can not open \"%s\" for reading\n", argv[1]);
exit (1);
}
init_port(1);
len = write_header (fd);
crc = write_data (fd);
write_crc (crc);
printf ("Length=%ld CRC=%ld\n", len, crc);
restore_port(1);
exit (0);
}

View File

@ -1,124 +0,0 @@
/*
* Copyright (c) 1995 Matthias Pfaller.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Matthias Pfaller.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $NetBSD: inject.c,v 1.4 1998/02/20 09:27:18 mycroft Exp $
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <bm.h>
/*
* Map a file
*/
void *map(char *file, int mode, int *len)
{
int fd;
struct stat sb;
void *p;
/* Open the file we'd like map */
fd = open(file, mode);
if (fd < 0) {
perror(file);
exit(1);
}
/* Get the length of the file */
if (fstat(fd, &sb) < 0) {
perror("fstat");
exit(1);
}
/* Return the length of file in len */
*len = sb.st_size;
/* Now map the file */
p = mmap(NULL, *len, PROT_READ | (mode == O_RDWR ? PROT_WRITE : 0),
MAP_FILE | MAP_SHARED, fd, 0);
if (p == NULL) {
perror("mmap");
exit(1);
}
/*
* We will access this mostly sequential.
* So let's tell it to the vm system.
*/
madvise(p, *len, MADV_SEQUENTIAL);
close(fd);
return(p);
}
main(int argc, char **argv)
{
void *kern, *filesys, *ramdisk;
int kernlen, filesyslen;
bm_pat *bm;
static char pattern[] = "Ramdiskorigin";
if (argc != 3) {
fprintf(stderr, "usage: %s kernel filesystem", argv[0]);
exit(1);
}
/* Map the kernel image read/write */
kern = map(argv[1], O_RDWR, &kernlen);
/* Map the filesystem image read only */
filesys = map(argv[2], O_RDONLY, &filesyslen);
/* Search the kernel image for the ramdisk signature */
bm = bm_comp(pattern, sizeof(pattern), NULL);
ramdisk = bm_exec(bm, kern, kernlen);
if (!ramdisk) {
fprintf(stderr, "Origin of ramdisk not found in kernel\n");
exit(1);
}
/* Does the filesystem image fit into the kernel image? */
if ((kernlen - (ramdisk - kern)) < filesyslen) {
fprintf(stderr, "Kernel image to small\n");
exit(1);
}
/* Copy the filesystem image into the kernel image */
memcpy(ramdisk, filesys, filesyslen);
/* Sync vm/fs and unmap the images */
msync(kern, kernlen);
munmap(kern, kernlen);
munmap(filesys, filesyslen);
exit(0);
}

View File

@ -1,46 +0,0 @@
#
# kcbin.conf - unified binary for the kc floppy
# $NetBSD: instbin.conf,v 1.13 2003/05/11 19:19:07 ragge Exp $
#
srcdirs bin sbin usr.bin usr.sbin gnu/usr.bin games distrib/pc532/floppies
progs chat download less pppstats # vi
progs basename bim cat chmod chown chroot cp # bc
progs date dd df dirname disklabel dmesg domainname dump
progs expr factor find fsck_ffs ftp
progs gzip hostname ifconfig init # hexdump
progs kill ln ls mkdir mknod
progs mount mount_cd9660 mount_ffs mount_msdos mount_nfs mt mv netstat newfs
progs ping pppd ps pwd reboot restore rm rmdir route # rcp
progs sed sh slattach stty swapctl sync sysctl # strings
progs tar test tip traceroute umount
#progs sysinst
special chat srcdir usr.sbin/pppd/chat
special download srcdir distrib/pc532/floppies/inst-common
special download objs download.o
special pppd srcdir usr.sbin/pppd/pppd
special pppstats srcdir usr.sbin/pppd/pppstats
special less srcdir usr.bin/less/less
#special vi srcdir usr.bin/vi/build
special init srcdir distrib/utils/init_s
#special sysinst srcdir distrib/utils/sysinst/arch/pc532
ln fsck_ffs fsck
ln less more
ln chown chgrp
ln dump rdump
ln gzip gzcat gunzip
ln sh -sh # init invokes the shell this way
ln test [
ln mount_cd9660 cd9660
ln mount_ffs ffs
ln mount_msdos msdos
ln mount_nfs nfs
ln restore rrestore
#ln vi ex
#ln vi view
ln reboot halt
libs -lkvm -lpcap -lrmt -ledit -lcurses -lutil -ltermcap -lcrypt -ll -lm -lbz2 -lipsec

View File

@ -1,109 +0,0 @@
# $NetBSD: list,v 1.17 2007/03/03 06:40:09 apb Exp $
# copy the MAKEDEV script and make some devices
COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV floppy
SPECIAL /bin/rm dev/MAKEDEV
# we need the contents of /usr/mdec (XXX)
COPY ${DESTDIR}/usr/mdec/* usr/mdec
# various files that we need in /etc for the install
COPY ${TOPDIR}/../../../etc/group etc
COPY ${TOPDIR}/../../../etc/master.passwd etc
COPY ${TOPDIR}/../../../etc/protocols etc
COPY ${TOPDIR}/../../../etc/netconfig etc
COPY ${TOPDIR}/../../../etc/services etc
SPECIAL >etc/ppp/options
SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
# copy the crunched binary, link to it
#COPY ${OBJDIR}/netbsd.gz netbsd.gz
COPY ${OBJDIR}/instbin instbin
LINK instbin bin/cat
LINK instbin bin/chmod
LINK instbin bin/cp
LINK instbin bin/date
LINK instbin bin/dd
LINK instbin bin/df
LINK instbin bin/domainname
LINK instbin bin/expr
LINK instbin bin/hostname
LINK instbin bin/kill
LINK instbin bin/ln
LINK instbin bin/ls
LINK instbin bin/mkdir
LINK instbin bin/mt
LINK instbin bin/mv
LINK instbin bin/ps
LINK instbin bin/pwd
LINK instbin bin/rcp
LINK instbin bin/rm
LINK instbin bin/rmdir
LINK instbin bin/sh
LINK instbin bin/stty
LINK instbin bin/sync
LINK instbin bin/test
LINK instbin bin/[
LINK instbin sbin/bim
LINK instbin sbin/disklabel
LINK instbin sbin/dmesg
LINK instbin sbin/dump
LINK instbin sbin/fsck
LINK instbin sbin/halt
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/newfs
LINK instbin sbin/ping
LINK instbin sbin/rdump
LINK instbin sbin/reboot
LINK instbin sbin/restore
LINK instbin sbin/route
LINK instbin sbin/rrestore
LINK instbin sbin/slattach
#LINK instbin sbin/sysinst
LINK instbin sbin/swapon
LINK instbin sbin/umount
SYMLINK /instbin usr/bin/basename
SYMLINK /instbin usr/bin/chgrp
SYMLINK /instbin usr/bin/dirname
SYMLINK /instbin usr/bin/hexdump
SYMLINK /instbin usr/bin/ex
SYMLINK /instbin usr/bin/find
SYMLINK /instbin usr/bin/ftp
SYMLINK /instbin usr/bin/gunzip
SYMLINK /instbin usr/bin/gzcat
SYMLINK /instbin usr/bin/gzip
SYMLINK /instbin usr/bin/more
SYMLINK /instbin usr/bin/less
SYMLINK /instbin usr/bin/netstat
SYMLINK /instbin usr/bin/sed
SYMLINK /instbin usr/bin/strings
SYMLINK /instbin usr/bin/tar
SYMLINK /instbin usr/bin/tip
#SYMLINK /instbin usr/bin/vi
SYMLINK /instbin usr/bin/view
SYMLINK /instbin usr/games/factor
SYMLINK /instbin usr/sbin/chat
SYMLINK /instbin usr/sbin/chown
SYMLINK /instbin usr/sbin/chroot
SYMLINK /instbin usr/sbin/pppd
SYMLINK /instbin usr/sbin/pppstats
SYMLINK /instbin usr/sbin/sysctl
SYMLINK /instbin usr/sbin/traceroute
SYMLINK /instbin usr/local/bin/download
#SPECIAL /bin/rm instbin
# and the common installation tools
COPY ${TOPDIR}/inst-common/dot.commonutils .commonutils
COPY ${TOPDIR}/inst-common/termcap.vt100 usr/share/misc/termcap
#the lists of obsolete files used by sysinst
SPECIAL sh ${CURDIR}/../../../../distrib/sets/makeobsolete -b -s ${CURDIR}/../../../../distrib/sets -t ./dist

View File

@ -1,5 +0,0 @@
0x400000 Top of physical RAM for 4mb machine
0x3EB800 Start of boot code
0x288000 Start of ramdisk when booting from rd0
0x240000 Start of netbsd image (may overflow into rd0 image)
0x002000 Start of kernel (may overflow into netbsd image)

View File

@ -1,128 +0,0 @@
# $NetBSD: mtree.conf,v 1.6 1999/06/05 20:17:41 bouyer Exp $
/set type=dir uname=root gname=wheel mode=0755
# .
.
# ./bin
bin
# ./bin
..
# ./dev
dev
# ./dev
..
# ./dist
dist
# ./dist
..
# ./etc
etc
# ./etc/ppp
ppp
# ./etc/ppp
..
# ./etc
..
# ./mnt
mnt
# ./mnt
..
# ./mnt2
mnt2
# ./mnt2
..
# ./sbin
sbin
# ./sbin
..
# ./tmp
tmp
# ./tmp
..
# ./var
var
# ,/var/run
run
# ./var/run
..
# ,/var/db
db
# ./var/db
..
# ./var/tmp
tmp
# ./var/tmp/vi.recover
vi.recover
# ./var/tmp/vi.recover
..
# ./var/tmp
..
# ./var
..
# ./usr
usr
# ./usr/bin
bin
# ./usr/bin
..
# ./usr/games
games
# ./usr/games
..
# ./usr/mdec
mdec
# ./usr/mdec
..
# ./usr/sbin
sbin
# ./usr/sbin
..
# ./usr/share
share
# ./usr/share/misc
misc
# ./usr/share/misc
..
# ./usr/share
..
# ./usr/local
local
# ./usr/local/bin
bin
# ./usr/local/bin
..
# ./usr/local
..
# ./usr
..

View File

@ -1,18 +0,0 @@
# $NetBSD: termcap.vt100,v 1.2 1998/01/09 18:56:48 perry Exp $
#
vt_keys:\
:Pu=\E[A!\EOA:Pd=\E[B!\EOB:Pr=\E[C!\EOC:Pl=\E[D!\EOD:\
:P0=\EOp!\E[3~:P1=\EOq!\E[12~:P2=\EOr!\E[20~:P3=\EOs!\E[13~:\
:P4=\EOt!\E[11~:P5=\EOu!\E[21~:P6=\EOv!\E[14~:P7=\EOw!\E[15~:\
:P8=\EOx!\E[5~:P9=\EOy!\E[24~:PE=\EOM:PD=\EOn!\E[2~:\
:PL=\EOP!\E[4~!\E[H:PR=\EOQ!\E[6~:PS=\EOR!\E[23~:\
:PX=\EOS!\E[18~!\E[1~:PM=\EOm!\E[19~:PP=\EOl!\E[17~:
vt100|xterm:\
:AL=\E[%dL:DL=\E[%dM:al=\E[L:bs:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
:cm=\E[%i%d;%dH:co#80:cs=\E[%i%r%d;%dr:dc=\E[P:dl=\E[M:do=^J:\
:ei=:ic=\E[@:im=:k0=\EOY:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:kb=^H:kd=\EOB:\
:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:li#24:\
:nd=\E[C:pt:rs=\E[?5l:se=\E[m:so=\E[7m:sr=\EM:te=\E>:ti=\E=:\
:up=\E[A:xn:tc=vt_keys:

View File

@ -1,8 +0,0 @@
# $NetBSD: Makefile,v 1.4 1998/01/06 04:45:16 perry Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
IMAGE= inst.fs
.include "${TOP}/inst-common/Makefile.inc"

View File

@ -1,31 +0,0 @@
# $NetBSD: disktab.preinstall,v 1.3 2004/04/19 12:44:09 wiz Exp $
#
# Disk geometry and partition layout tables.
# Key:
# dt controller type
# ty type of disk (fixed, removable, simulated)
# d[0-4] drive-type-dependent parameters
# ns #sectors/track
# nt #tracks/cylinder
# nc #cylinders/disk
# sc #sectors/cylinder, nc*nt default
# su #sectors/unit, sc*nc default
# se sector size, DEV_BSIZE default
# rm rpm, 3600 default
# sf supports bad144-style bad sector forwarding
# sk sector skew per track, default 0
# cs sector skew per cylinder, default 0
# hs headswitch time, default 0
# ts one-cylinder seek time, default 0
# il sector interleave (n:1), 1 default
# bs boot block size, default BBSIZE
# sb superblock size, default SBSIZE
# o[a-h] partition offsets in sectors
# p[a-h] partition sizes in sectors
# b[a-h] partition block sizes in bytes
# f[a-h] partition fragment sizes in bytes
# t[a-h] partition types (filesystem, swap, etc)
#
# All partition sizes reserve space for bad sector tables.
# (5 cylinders needed for maintenance + replacement sectors)
#

View File

@ -1,65 +0,0 @@
# $NetBSD: dot.hdprofile,v 1.9 2003/07/26 17:07:22 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/games:/
export PATH
TERM=vt100
export TERM
HOME=/
export HOME
umask 022
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
echo "Checking filesystems..."
fsck -y
echo "Mounting filesystems..."
mount -a
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C'
stty newcrt werase ^W intr ^C kill ^U erase ^?
echo ''
# pull in the functions that people will use from the shell prompt.
. /.commonutils
. /.instutils
echo "Follow the installation directions to install the NetBSD"
echo "distribution sets."
fi

View File

@ -1,160 +0,0 @@
# $NetBSD: dot.instutils,v 1.7 2003/07/26 17:07:22 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
# Installation configuration utilites (functions), to get NetBSD configured
# reasonably once it is installed on the hard disk. These are meant to be
# invoked from the shell prompt, by people installing NetBSD.
Configure()
{
DEV=/dev
ETC=/etc
if [ ! -f /etc/fstab ]; then
DEV=/mnt/dev
ETC=/mnt/etc
fi
echo "You will now be prompted for information about this"
echo "machine. If you hit return, the default answer (in"
echo "brackets) will be used."
echo ""
echo -n "What is this machine's hostname? [unknown.host.domain] "
read hname
if [ "$hname" = "" ]; then
hname=unknown.host.domain
fi
echo $hname > ${ETC}/myname
proto_domain=`echo $hname | sed -e 's/[^.]*\.//'`
echo ""
echo "What domain is this machine in (this is NOT its YP"
echo -n "domain name)? [$proto_domain] "
read dname
if [ "$dname" = "" ]; then
dname=$proto_domain
fi
echo ""
if [ -e $ETC/sendmail.cf ]; then
echo "WARNING: A default sendmail.cf exists, and probably"
echo "needs to be tuned and/or replaced, to work properly at"
echo "your site!"
else
echo "WARNING: No default sendmail.cf installed. Did you"
echo "forget to install the 'etc' distribution?"
fi
echo "127.0.0.1 localhost localhost.$dname" > ${ETC}/hosts
echo ""
echo -n "Does this machine have an ethernet interface? [y] "
read resp
case "$resp" in
n*)
;;
*)
intf=
while [ "$intf" = "" ]; do
echo -n "What is the primary interface name "
echo -n "(e.g. ed0, ep0, etc)? "
read intf
done
echo -n "What is the hostname for this interface? [$hname] "
read ifname
if [ "$ifname" = "" ]; then
ifname=$hname
fi
ifaddr=
while [ "$ifaddr" = "" ]; do
echo -n "What is the IP address associated with "
echo -n "interface ${intf}? "
read ifaddr
done
echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \
>> ${ETC}/hosts
echo -n "Does this interface have a special netmask? [n] "
read resp
case "$resp" in
y*)
echo -n "What is the netmask? [0xffffff00] "
read ifnetmask
if [ "$ifnetmask" = "" ]; then
ifnetmask=0xffffff00
fi
;;
*)
ifnetmask=
;;
esac
echo -n "Does this interface need additional flags? [n] "
read resp
case "$resp" in
y*)
echo -n "What flags? [link0] "
read ifflags
if [ "$ifflags" = "" ]; then
ifflags=link0
fi
;;
*)
ifflags=
;;
esac
echo "inet $ifname $ifnetmask $ifflags" > ${ETC}/hostname.$intf
echo ""
echo -n "WARNING: if you have any more ethernet interfaces, "
echo "you will have to configure"
echo -n "them by hand. Read the comments in /etc/rc.d/network "
echo "to learn how to do this."
;;
esac
echo ""
echo -n "Making device nodes (may take a while)..."
cd ${DEV}
sh MAKEDEV all
echo " done."
sync
echo ""
echo "If you haven't already installed a kernel on the hard drive"
echo "using your kernel-copy floppy, do so now. Kernel"
echo "installation instructions can be found in the"
echo "installation notes."
}

View File

@ -1,59 +0,0 @@
# $NetBSD: dot.profile,v 1.10 2003/07/26 17:07:22 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/games:/
export PATH
TERM=vt100
export TERM
HOME=/
export HOME
umask 022
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C'
stty werase ^W intr ^C kill ^U erase ^?
echo ''
# pull in the functions that people will use from the shell prompt.
. /.commonutils
. /.instutils
# run the installation program.
sysinst
fi

View File

@ -1,480 +0,0 @@
#!/bin/sh
# $NetBSD: install.sh,v 1.10 2004/04/23 02:48:12 simonb Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
# NetBSD installation script.
# In a perfect world, this would be a nice C program, with a reasonable
# user interface.
DT=/etc/disktab # /etc/disktab
FSTABDIR=/mnt/etc # /mnt/etc
#DONTDOIT=echo
VERSION=1.0
FSTAB=${FSTABDIR}/fstab
getresp() {
read resp
if [ "X$resp" = "X" ]; then
resp=$1
fi
}
echo "Welcome to the NetBSD ${VERSION} installation program."
echo ""
echo "This program is designed to help you put NetBSD on your hard disk,"
echo "in a simple and rational way. You'll be asked several questions,"
echo "and it would probably be useful to have your disk's hardware"
echo "manual, the installation notes, and a calculator handy."
echo ""
echo "In particular, you will need to know some reasonably detailed"
echo "information about your disk's geometry, because there is currently"
echo "no way this program can figure that information out."
echo ""
echo "As with anything which modifies your hard drive's contents, this"
echo "program can cause SIGNIFICANT data loss, and you are advised"
echo "to make sure your hard drive is backed up before beginning the"
echo "installation process."
echo ""
echo "Default answers are displyed in brackets after the questions."
echo "You can hit Control-C at any time to quit, but if you do so at a"
echo "prompt, you may have to hit return. Also, quitting in the middle of"
echo "installation may leave your system in an inconsistent state."
echo ""
echo -n "Proceed with installation? [n] "
getresp "n"
case "$resp" in
y*|Y*)
echo "Cool! Let's get to it..."
;;
*)
echo ""
echo "OK, then. Enter 'halt' at the prompt to halt the"
echo "machine. Once the machine has halted, remove the"
echo "floppy and press any key to reboot."
exit
;;
esac
echo ""
echo "To do the installation, you'll need to provide some information about"
echo "your disk."
echo ""
drivetype=sd
sect_fwd=""
type=SCSI
# find out what units are possible for that disk, and query the user.
driveunits=`ls /dev/${drivetype}?a | sed -e 's,/dev/\(...\)a,\1,g'`
if [ "X${driveunits}" = "X" ]; then
echo "FATAL ERROR:"
echo "No devices for disks of type '${drivetype}'."
echo "This is probably a bug in the install disks."
echo "Exiting install program."
exit
fi
prefdrive=${drivetype}0
echo ""
echo "The following ${drivetype}-type disks are supported by this"
echo "installation procedure:"
echo " "${driveunits}
echo "Note that they may not exist in _your_ machine; the list of"
echo "disks in your machine was printed when the system was booting."
echo ""
while [ "X${drivename}" = "X" ]; do
echo -n "Which disk would like to install on? [${prefdrive}] "
getresp ${prefdrive}
otherdrives=`echo "${driveunits}" | sed -e s,${resp},,`
if [ "X${driveunits}" = "X${otherdrives}" ]; then
echo ""
echo "\"${resp}\" is an invalid drive name. Valid choices"
echo "are: "${driveunits}
echo ""
else
drivename=${resp}
fi
done
echo ""
echo "Using disk ${drivename}."
echo ""
echo -n "What kind of disk is it? (one word please) [my${drivetype}] "
getresp "my${drivetype}"
labelname=$resp
echo ""
echo "You will now need to provide some information about your disk's"
echo "geometry. This should either be in the User's Manual for your disk,"
echo "or you should have written down what NetBSD printed when booting."
echo "(Note that he geometry that's printed at boot time is preferred.)"
echo ""
echo -n "Number of bytes per disk sector? [512] "
getresp 512
bytes_per_sect="$resp"
echo -n "Number of disk cylinders? "
getresp
cyls_per_disk="$resp"
echo -n "Number of disk tracks (heads) per disk cylinder? "
getresp
tracks_per_cyl="$resp"
echo -n "Number of disk sectors per disk track? "
getresp
sects_per_track="$resp"
cylindersize=`expr $sects_per_track \* $tracks_per_cyl`
cylbytes=`expr $cylindersize \* $bytes_per_sect`
disksize=`expr $cylindersize \* $cyls_per_disk`
echo ""
echo "Your disk has a total of $disksize $bytes_per_sect byte sectors,"
echo "arranged as $cyls_per_disk cylinders which contain $cylindersize "
echo "sectors ($cylbytes bytes) each."
echo ""
echo "You can specify partition sizes in cylinders ('c') or sectors ('s')."
while [ "X${sizemult}" = "X" ]; do
echo -n "What units would you like to use? [cylinders] "
getresp cylinders
case "$resp" in
c*|C*)
sizemult=$cylindersize
sizeunit="cylinders"
;;
s*|S*)
sizemult=1
sizeunit="sectors"
;;
*)
echo ""
echo "Enter cylinders ('c') or sectors ('s')."
;;
esac
done
if [ $sizeunit = "sectors" ]; then
echo ""
echo "For best disk performance, partitions should begin and end on"
echo "cylinder boundaries. Wherever possible, pick sizes that are"
echo "multiples of the cylinder size ($cylindersize sectors)."
fi
partition=`expr $disksize / $sizemult`
partition_sects=`expr $partition \* $sizemult`
part_offset=0
badspacesec=0
if [ "$sect_fwd" = "sf:" ]; then
badspacecyl=`expr $sects_per_track + 126`
badspacecyl=`expr $badspacecyl + $cylindersize - 1`
badspacecyl=`expr $badspacecyl / $cylindersize`
badspacesec=`expr $badspacecyl \* $cylindersize`
echo ""
echo -n "Using $badspacesec sectors ($badspacecyl cylinders) for the "
echo "bad144 bad block table"
fi
sects_left=`expr $partition_sects - $badspacesec`
units_left=`expr $sects_left / $sizemult`
echo ""
echo "There are $units_left $sizeunit left to allocate."
echo ""
root=0
while [ $root -eq 0 ]; do
echo -n "Root partition size (in $sizeunit)? "
getresp
case $resp in
[1-9]*)
total=$resp
if [ $total -gt $units_left ]; then
echo -n "Root size is greater than remaining "
echo "free space on disk."
else
root=$resp
fi
;;
esac
done
root_offset=$part_offset
part_used=`expr $root + $badspacesec / $sizemult`
units_left=`expr $partition - $part_used`
echo ""
swap=0
while [ $swap -eq 0 ]; do
echo "$units_left $sizeunit remaining in NetBSD portion of disk."
echo -n "Swap partition size (in $sizeunit)? "
getresp
case $resp in
[1-9]*)
if [ $swap -gt $units_left ]; then
echo -n "Swap size is greater than remaining "
echo "free space on disk."
else
swap=$resp
fi
;;
esac
done
swap_offset=`expr $root_offset + $root`
part_used=`expr $part_used + $swap`
units_left=`expr $partition - $part_used`
echo ""
boot=0
while [ $boot -eq 0 ]; do
echo "$units_left $sizeunit remaining in NetBSD portion of disk."
echo -n "Boot partition size (in $sizeunit)? "
getresp
case $resp in
[1-9]*)
if [ $boot -gt $units_left ]; then
echo -n "Boot size is greater than remaining "
echo "free space on disk."
else
boot=$resp
fi
;;
esac
done
boot_offset=`expr $root_offset + $root + $swap + $units_left - $boot`
part_used=`expr $part_used + $boot`
echo ""
fragsize=1024
blocksize=8192
$DONTDOIT mount -u /dev/rd0 /
cat /etc/disktab.preinstall > $DT
echo "" >> $DT
echo "$labelname|NetBSD installation generated:\\" >> $DT
echo " :dt=${type}:ty=winchester:\\" >> $DT
echo -n " :nc#${cyls_per_disk}:ns#${sects_per_track}" >> $DT
echo ":nt#${tracks_per_cyl}:\\" >> $DT
echo " :se#${bytes_per_sect}:${sect_fwd}\\" >> $DT
_size=`expr $root \* $sizemult`
_offset=`expr $root_offset \* $sizemult`
echo -n " :pa#${_size}:oa#${_offset}" >> $DT
echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >> $DT
_size=`expr $swap \* $sizemult`
_offset=`expr $swap_offset \* $sizemult`
echo " :pb#${_size}:ob#${_offset}:tb=swap:\\" >> $DT
_size=`expr $partition \* $sizemult`
_offset=`expr $part_offset \* $sizemult`
echo " :pc#${_size}:oc#${_offset}:\\" >> $DT
_size=`expr $boot \* $sizemult`
_offset=`expr $boot_offset \* $sizemult`
echo " :ph#${_size}:oh#${_offset}:th=boot:\\" >> $DT
echo "You will now have to enter information about any other partitions"
echo "to be created in the NetBSD portion of the disk. This process will"
echo "be complete when you've filled up all remaining space in the NetBSD"
echo "portion of the disk."
while [ $part_used -lt $partition ]; do
part_size=0
units_left=`expr $partition - $part_used`
while [ $part_size -eq 0 ]; do
echo ""
echo -n "$units_left $sizeunit remaining in NetBSD portion of "
echo "the disk"
echo -n "Next partition size (in $sizeunit)? "
getresp
case $resp in
[1-9]*)
total=`expr $part_used + $resp`
if [ $total -gt $partition ]; then
echo -n "That would make the parition"
echo "too large to fit!"
else
part_size=$resp
part_used=$total
part_name=""
while [ "$part_name" = "" ]; do
echo -n "Mount point? "
getresp
part_name=$resp
done
fi
;;
esac
done
if [ "$dname" = "" ]; then
dname=$part_name
offset=`expr $part_offset + $root + $swap`
_size=`expr $part_size \* $sizemult`
_offset=`expr $offset \* $sizemult`
echo -n " :pd#${_size}:od#${_offset}" >> $DT
echo ":td=4.2BSD:bd#${blocksize}:fd#${fragsize}:\\" >> $DT
offset=`expr $offset + $part_size`
elif [ "$ename" = "" ]; then
ename=$part_name
_size=`expr $part_size \* $sizemult`
_offset=`expr $offset \* $sizemult`
echo -n " :pe#${_size}:oe#${_offset}" >> $DT
echo ":te=4.2BSD:be#${blocksize}:fe#${fragsize}:\\" >> $DT
offset=`expr $offset + $part_size`
elif [ "$fname" = "" ]; then
fname=$part_name
_size=`expr $part_size \* $sizemult`
_offset=`expr $offset \* $sizemult`
echo -n " :pf#${_size}:of#${_offset}" >> $DT
echo ":tf=4.2BSD:bf#${blocksize}:ff#${fragsize}:\\" >> $DT
offset=`expr $offset + $part_size`
elif [ "$gname" = "" ]; then
gname=$part_name
_size=`expr $part_size \* $sizemult`
_offset=`expr $offset \* $sizemult`
echo -n " :pg#${_size}:og#${_offset}" >> $DT
echo ":tg=4.2BSD:bg#${blocksize}:fg#${fragsize}:\\" >> $DT
offset=`expr $offset + $part_size`
fi
done
echo " :pd#${disksize}:od#0:" >> $DT
sync
echo ""
echo "THIS IS YOUR LAST CHANCE!!!"
echo ""
echo -n "Are you SURE you want NetBSD installed on your hard drive? (yes/no) "
answer=""
while [ "$answer" = "" ]; do
getresp
case $resp in
yes|YES)
echo ""
echo "Here we go..."
answer=yes
;;
no|NO)
echo ""
echo -n "OK, then. enter 'halt' to halt the machine. "
echo "Once the machine has halted,"
echo -n "remove the floppy, and press any key to "
echo "reboot."
exit
;;
*)
echo -n "I want a yes or no answer... well? "
;;
esac
done
echo ""
echo -n "Labeling disk $drivename..."
$DONTDOIT disklabel -r -w $drivename $labelname
$DONTDOIT echo "y"|bim -c init -c "add /usr/mdec/boot boot" -c "default 0" -c "exit" /dev/${drivename}c
echo " done."
if [ "$sect_fwd" = "sf:" ]; then
echo -n "Initializing bad144 badblock table..."
$DONTDOIT bad144 $drivename 0
echo " done."
fi
echo "Initializing root filesystem, and mounting..."
$DONTDOIT newfs /dev/r${drivename}a $name
$DONTDOIT mount -v /dev/${drivename}a /mnt
if [ "$dname" != "" -a "$dname" != "NO" ]; then
echo ""
echo "Initializing $dname filesystem, and mounting..."
$DONTDOIT newfs /dev/r${drivename}d $name
$DONTDOIT mkdir -p /mnt/$dname
$DONTDOIT mount -v /dev/${drivename}d /mnt/$dname
fi
if [ "$ename" != "" -a "$ename" != "NO" ]; then
echo ""
echo "Initializing $ename filesystem, and mounting..."
$DONTDOIT newfs /dev/r${drivename}e $name
$DONTDOIT mkdir -p /mnt/$ename
$DONTDOIT mount -v /dev/${drivename}e /mnt/$ename
fi
if [ "$fname" != "" -a "$fname" != "NO" ]; then
echo ""
echo "Initializing $fname filesystem, and mounting..."
$DONTDOIT newfs /dev/r${drivename}f $name
$DONTDOIT mkdir -p /mnt/$fname
$DONTDOIT mount -v /dev/${drivename}f /mnt/$fname
fi
if [ "$gname" != "" -a "$gname" != "NO" ]; then
echo ""
echo "Initializing $gname filesystem, and mounting..."
$DONTDOIT newfs /dev/r${drivename}g $name
$DONTDOIT mkdir -p /mnt/$gname
$DONTDOIT mount -v /dev/${drivename}g /mnt/$gname
fi
echo ""
echo "Populating filesystems with bootstrapping binaries and config files"
$DONTDOIT pax -Xrwpe . /mnt
$DONTDOIT cp /tmp/.hdprofile /mnt/.profile
$DONTDOIT gzip -d /mnt/netbsd.gz
echo ""
echo -n "Creating an fstab..."
echo /dev/${drivename}a / ffs rw 1 1 | sed -e s,//,/, > $FSTAB
if [ "$dname" != "" -a "$dname" != "NO" ]; then
echo /dev/${drivename}d /$dname ffs rw 1 2 | sed -e s,//,/, >> $FSTAB
fi
if [ "$ename" != "" -a "$ename" != "NO" ]; then
echo /dev/${drivename}e /$ename ffs rw 1 2 | sed -e s,//,/, >> $FSTAB
fi
if [ "$fname" != "" -a "$fname" != "NO" ]; then
echo /dev/${drivename}f /$fname ffs rw 1 3 | sed -e s,//,/, >> $FSTAB
fi
if [ "$gname" != "" -a "$gname" != "NO" ]; then
echo /dev/${drivename}g /$gname ffs rw 1 4 | sed -e s,//,/, >> $FSTAB
fi
if [ "$hname" != "" -a "$hname" != "NO" ]; then
echo /dev/${drivename}h /$hname ffs rw 1 5 | sed -e s,//,/, >> $FSTAB
fi
sync
echo " done."
echo ""
echo ""
echo "OK! The preliminary work of setting up your disk is now complete."
echo "You can now boot off the hard drive."
echo ""
echo "The remaining tasks are:"
echo ""
echo "To load and install the NetBSD distribution sets."
echo "Currently the hard drive's root filesystem is mounted on /mnt"
echo ""
echo "Consult the installation notes which will describe how to"
echo "install the distribution sets and kernel. Post-installation"
echo "configuration is also discussed therein."
echo ""
echo "GOOD LUCK!"
echo ""

View File

@ -1,11 +0,0 @@
# $NetBSD: list,v 1.4 1999/05/23 07:31:20 tron Exp $
# the disktab explanation file
COPY disktab.preinstall etc
# and the installation tools
COPY ${CURDIR}/dot.profile .profile
COPY ${CURDIR}/dot.instutils .instutils
COPY ${CURDIR}/install.sh install
COPY ${CURDIR}/dot.hdprofile tmp/.hdprofile
SPECIAL chmod 755 install

View File

@ -1,44 +0,0 @@
# $NetBSD: list2sh.awk,v 1.3 1998/01/06 04:45:15 perry Exp $
BEGIN {
printf("cd ${CURDIR}\n");
printf("\n");
}
/^$/ || /^#/ {
print $0;
next;
}
$1 == "COPY" {
printf("echo '%s'\n", $0);
printf("cp %s ${TARGDIR}/%s\n", $2, $3);
next;
}
$1 == "LINK" {
printf("echo '%s'\n", $0);
printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
next;
}
$1 == "SYMLINK" {
printf("echo '%s'\n", $0);
printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3);
next;
}
$1 == "SPECIAL" {
printf("echo '%s'\n", $0);
printf("(cd ${TARGDIR};");
for (i = 2; i <= NF; i++)
printf(" %s", $i);
printf(")\n");
next;
}
{
printf("echo '%s'\n", $0);
printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR);
printf("exit 1\n");
exit 1;
}
END {
printf("\n");
printf("exit 0\n");
exit 0;
}

View File

@ -1,13 +0,0 @@
# $NetBSD: runlist.sh,v 1.3 1998/01/06 04:45:15 perry Exp $
if [ "X$1" = "X-d" ]; then
SHELLCMD=cat
shift
else
SHELLCMD="sh -e"
fi
( while [ "X$1" != "X" ]; do
cat $1
shift
done ) | awk -f ${TOPDIR}/list2sh.awk | ${SHELLCMD}

View File

@ -1,8 +0,0 @@
# $NetBSD: Makefile,v 1.4 2002/04/26 15:47:21 lukem Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
IMAGE= upgr-${DISTRIBREV}.fs
.include "${TOP}/inst-common/Makefile.inc"

View File

@ -1,65 +0,0 @@
# $NetBSD: dot.hdprofile,v 1.9 2003/07/26 17:07:24 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
TERM=pc3
export TERM
HOME=/
export HOME
umask 022
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
echo "Checking filesystems..."
fsck -y
echo "Mounting filesystems..."
mount -a
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C'
stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
echo ''
# pull in the functions that people will use from the shell prompt.
. /.commonutils
. /.upgrutils
echo "Follow the installation directions to install the NetBSD"
echo "distribution sets."
fi

View File

@ -1,59 +0,0 @@
# $NetBSD: dot.profile,v 1.9 2003/07/26 17:07:24 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
TERM=pc3
export TERM
HOME=/
export HOME
umask 022
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C'
stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
echo ''
# pull in the functions that people will use from the shell prompt.
. /.commonutils
. /.upgrutils
# run the upgrade script.
upgrade
fi

View File

@ -1,61 +0,0 @@
# $NetBSD: dot.upgrutils,v 1.6 2003/07/26 17:07:25 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
# Upgrade cleanup utilites (functions), to make sure a recently-upgraded
# system is safely runnable. These are meant to be invoked from the shell
# prompt, by people installing NetBSD.
Cleanup()
{
upgrade_dir=/
if [ ! -f /etc/fstab ]; then
upgrade_dir=/mnt
fi
echo "Cleaning up miscellaneous files in /etc..."
mv $upgrade_dir/etc/rc.bak $upgrade_dir/etc/rc
chroot $upgrade_dir /usr/sbin/pwd_mkdb -p /etc/master.passwd
chroot $upgrade_dir /bin/rm /etc/sendmail.fc > /dev/null 2>&1
sync
echo "Done."
echo ""
echo "All that's left to do now is to install a new NetBSD kernel"
echo "on your hard disk. You should now halt your machine using"
echo "the 'halt' command. Once the machine is halted, replace the"
echo "installation floppy with the kernel-copy floppy and hit any"
echo "key to reboot. Use the kernel-copy floppy to copy a kernel"
echo "to your hard disk."
}

View File

@ -1,8 +0,0 @@
# $NetBSD: list,v 1.4 1999/05/23 07:31:20 tron Exp $
# and the upgrade tools
COPY ${CURDIR}/dot.profile .profile
COPY ${CURDIR}/dot.upgrutils .upgrutils
COPY ${CURDIR}/upgrade.sh upgrade
COPY ${CURDIR}/dot.hdprofile tmp/.hdprofile
SPECIAL chmod 755 upgrade

View File

@ -1,256 +0,0 @@
#!/bin/sh
# $NetBSD: upgrade.sh,v 1.7 2003/07/26 17:07:25 salo Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.NetBSD.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
# NetBSD upgrade script.
# In a perfect world, this would be a nice C program, with a reasonable
# user interface.
DT=/etc/disktab # /etc/disktab
FSTABDIR=/mnt/etc # /mnt/etc
#DONTDOIT=echo
VERSION=1.0
FSTAB=${FSTABDIR}/fstab
getresp() {
read resp
if [ "X$resp" = "X" ]; then
resp=$1
fi
}
echo "Welcome to the NetBSD ${VERSION} upgrade program."
echo ""
echo "This program is designed to help you put the new version of NetBSD"
echo "on your hard disk, in a simple and rational way. To upgrade, you"
echo "must have plenty of free space on all partitions which will be"
echo "upgraded. If you have at least 1MB free on your root partition,"
echo "and several free on your /usr patition, you should be fine."
echo ""
echo "As with anything which modifies your hard drive's contents, this"
echo "program can cause SIGNIFICANT data loss, and you are advised"
echo "to make sure your hard drive is backed up before beginning the"
echo "upgrade process."
echo ""
echo "Default answers are displyed in brackets after the questions."
echo "You can hit Control-C at any time to quit, but if you do so at a"
echo "prompt, you may have to hit return. Also, quitting in the middle of"
echo "the upgrade may leave your system in an inconsistent (and unusable)"
echo "state."
echo ""
echo -n "Proceed with upgrade? [n] "
getresp "n"
case "$resp" in
y*|Y*)
echo "Cool! Let's get to it..."
;;
*)
echo ""
echo "OK, then. Enter 'halt' at the prompt to halt the"
echo "machine. Once the machine has halted, remove the"
echo "floppy and press any key to reboot."
exit
;;
esac
# find out what units are possible, and query the user.
driveunits=`ls /dev/[sw]d?a | sed -e 's,/dev/\(...\)a,\1,g'`
if [ "X${driveunits}" = "X" ]; then
echo "FATAL ERROR:"
echo "No disk devices."
echo "This is probably a bug in the install disks."
echo "Exiting install program."
exit
fi
echo ""
echo "The following disks are supported by this upgrade procedure:"
echo " "${driveunits}
echo "If your system was previously completely contained within the"
echo "disks listed above (i.e. if your system didn't occupy any space"
echo "on disks NOT listed above), this upgrade disk can upgrade your"
echo "system. If it cannot, hit Control-C at the prompt."
echo ""
while [ "X${drivename}" = "X" ]; do
echo -n "Which disk contains your root partion? "
getresp
otherdrives=`echo "${driveunits}" | sed -e s,${resp},,`
if [ "X${driveunits}" = "X${otherdrives}" ]; then
echo ""
echo "\"${resp}\" is an invalid drive name. Valid choices"
echo "are: "${driveunits}
echo ""
else
drivename=${resp}
fi
done
echo ""
echo "Root partition is on ${drivename}a."
echo ""
echo "Would you like to upgrade your file systems to the new file system"
echo -n "format? [y] "
getresp "y"
case "$resp" in
n*|N*)
echo ""
echo "You should upgrade your file systems with 'fsck -c 2'"
echo "as soon as is feasible, because the new file system"
echo "code is better-tested and more performant."
upgradefs=NO
;;
*)
upgradefs=YES
;;
esac
if [ $upgradefs = YES ]; then
echo ""
echo "Upgrading the file system on ${drivename}a..."
fsck -p -c 2 /dev/r${drivename}a
if [ $? != 0 ]; then
echo "FATAL ERROR: FILE SYSTEM UPGRADE FAILED."
echo "You should probably reboot the machine, fsck your"
echo "disk(s), and try the upgrade procedure again."
exit 1
fi
echo "Done."
fi
echo ""
echo "Mounting root partition on /mnt..."
mount /dev/${drivename}a /mnt
if [ $? != 0 ]; then
echo "FATAL ERROR: MOUNT FAILED."
echo "You should verify that your system is set up as you"
echo "described, and re-attempt the upgrade procedure."
exit 1
fi
echo "Done."
if [ $upgradefs = YES ]; then
echo ""
echo -n "Copying new fsck binary to your hard disk..."
if [ ! -d /mnt/sbin ]; then
mkdir /mnt/sbin
fi
cp /sbin/fsck /mnt/sbin/fsck
if [ $? != 0 ]; then
echo "FATAL ERROR: COPY FAILED."
echo "It in unclear why this error would occur. It looks"
echo "like you may end up having to upgrade by hand."
exit 1
fi
echo " Done."
echo ""
echo "Re-mounting root partition read-only..."
mount -u -o ro /dev/${drivename}a /mnt
if [ $? != 0 ]; then
echo "FATAL ERROR: RE-MOUNT FAILED."
echo "It in unclear why this error would occur. It looks"
echo "like you may end up having to upgrade by hand."
exit 1
fi
echo "Done."
echo ""
echo "Upgrading the rest of your file systems..."
chroot /mnt fsck -p -c 2
if [ $? != 0 ]; then
echo "FATAL ERROR: FILE SYSTEM UPGRADE(S) FAILED."
echo "You should probably reboot the machine, fsck your"
echo "file system(s), and try the upgrade procedure"
echo "again."
exit 1
fi
echo "Done."
echo ""
echo "Re-mounting root partition read-write..."
mount -u -o rw /dev/${drivename}a /mnt
if [ $? != 0 ]; then
echo "FATAL ERROR: RE-MOUNT FAILED."
echo "It in unclear why this error would occur. It looks"
echo "like you may end up having to upgrade by hand."
exit 1
fi
echo "Done."
fi
echo ""
echo "Updating boot blocks on ${drivename}..."
disklabel -r $drivename > /mnt/tmp/${drivename}.label
if [ $? != 0 ]; then
echo "FATAL ERROR: READ OF DISK LABEL FAILED."
echo "It in unclear why this error would occur. It looks"
echo "like you may end up having to upgrade by hand."
exit 1
fi
disklabel -R -B $drivename /mnt/tmp/${drivename}.label
if [ $? != 0 ]; then
echo "FATAL ERROR: UPDATE OF DISK LABEL FAILED."
echo "It in unclear why this error would occur. It looks"
echo "like you may end up having to upgrade by hand."
exit 1
fi
echo "Done."
echo ""
echo "Copying bootstrapping binaries and config files to the hard drive..."
$DONTDOIT cp /mnt/.profile /mnt/.profile.bak
$DONTDOIT pax -s '#^\./etc/.*##' -Xrwpe . /mnt
$DONTDOIT mv /mnt/etc/rc /mnt/etc/rc.bak
$DONTDOIT cp /tmp/.hdprofile /mnt/.profile
echo ""
echo "Mounting remaining partitions..."
chroot /mnt mount -at ufs > /dev/null 2>&1
echo "Done."
echo ""
echo ""
echo "OK! The preliminary work of setting up your disk is now complete,"
echo "and you can now upgrade the actual NetBSD software."
echo ""
echo "Right now, your hard disk is mounted on /mnt. You should consult"
echo "the installation notes to determine how to load and install the new"
echo "NetBSD distribution sets, and how to clean up after the upgrade"
echo "software, when you are done."
echo ""
echo "GOOD LUCK!"
echo ""

View File

@ -1,4 +1,4 @@
# $NetBSD: README,v 1.7 2007/11/12 15:06:45 jmmv Exp $
# $NetBSD: README,v 1.8 2008/01/09 11:25:59 simonb Exp $
To: "NetBSD Port Maintainers"
Subject: distribution sets, etc...
@ -97,13 +97,12 @@ machine-dependent man pages that are always installed should go
in the 'man' set, and which should go into the 'misc' set.
I've made attempts to get the md files for the amiga, i386, hp300,
pc532, and sparc done. I've not attempted the rest (though there
are empty files for all architectures except the da30, in the
various directories). I think i got the amiga, i386, and sparc
done correctly, but i know that (because of weirdnesses in how
their last snapshots were built) i didn't get hp300 or pc532
done right.
I've made attempts to get the md files for the amiga, i386, hp300, and
sparc done. I've not attempted the rest (though there are empty files
for all architectures except the da30, in the various directories). I
think i got the amiga, i386, and sparc done correctly, but i know that
(because of weirdnesses in how their last snapshots were built) i didn't
get hp300 done right.
what you folks need to do:
@ -127,4 +126,3 @@ doing it for the N architectures, but i'm not _sure_... 8-)
thanks,
chris

View File

@ -1,5 +0,0 @@
# $NetBSD: md.pc532,v 1.42 2004/01/11 10:24:58 lukem Exp $
./sbin/bim base-sysutil-root
./sbin/ldconfig base-sysutil-root
./usr/libexec/ld.so base-sys-shlib
./usr/mdec/boot base-sysutil-bin

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.736 2008/01/03 20:47:55 jdc Exp $
# $NetBSD: mi,v 1.737 2008/01/09 11:25:59 simonb Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -2638,7 +2638,7 @@
./usr/share/man/cat4/mac68k base-man-share
./usr/share/man/cat4/macppc base-man-share
./usr/share/man/cat4/mvme68k base-man-share
./usr/share/man/cat4/pc532 base-man-share
./usr/share/man/cat4/pc532 base-obsolete obsolete
./usr/share/man/cat4/pmax base-man-share
./usr/share/man/cat4/pmppc base-obsolete obsolete
./usr/share/man/cat4/prep base-man-share
@ -2673,7 +2673,7 @@
./usr/share/man/cat8/evbmips base-man-share
./usr/share/man/cat8/evbppc base-man-share
./usr/share/man/cat8/evbsh3 base-man-share
./usr/share/man/cat8/evbsh5 base-obsolete obsolete
./usr/share/man/cat8/evbsh5 base-obsolete obsolete
./usr/share/man/cat8/hp300 base-man-share
./usr/share/man/cat8/hp700 base-man-share
./usr/share/man/cat8/hpcarm base-man-share
@ -2693,7 +2693,7 @@
./usr/share/man/cat8/newsmips base-man-share
./usr/share/man/cat8/next68k base-man-share
./usr/share/man/cat8/ofppc base-man-share
./usr/share/man/cat8/pc532 base-man-share
./usr/share/man/cat8/pc532 base-obsolete obsolete
./usr/share/man/cat8/playstation2 base-man-share
./usr/share/man/cat8/pmax base-man-share
./usr/share/man/cat8/pmppc base-obsolete obsolete
@ -2721,7 +2721,7 @@
./usr/share/man/cat9/hp300 base-man-share
./usr/share/man/cat9/i386 base-man-share
./usr/share/man/cat9/mac68k base-man-share
./usr/share/man/cat9/pc532 base-man-share
./usr/share/man/cat9/pc532 base-obsolete obsolete
./usr/share/man/cat9/pmax base-man-share
./usr/share/man/cat9/sparc base-man-share
./usr/share/man/cat9/sun3 base-man-share
@ -2757,7 +2757,7 @@
./usr/share/man/html4/mac68k base-man-share
./usr/share/man/html4/macppc base-man-share
./usr/share/man/html4/mvme68k base-man-share
./usr/share/man/html4/pc532 base-man-share
./usr/share/man/html4/pc532 base-obsolete obsolete
./usr/share/man/html4/pmax base-man-share
./usr/share/man/html4/pmppc base-obsolete obsolete
./usr/share/man/html4/prep base-man-share
@ -2791,7 +2791,7 @@
./usr/share/man/html8/evbmips base-man-share
./usr/share/man/html8/evbppc base-man-share
./usr/share/man/html8/evbsh3 base-man-share
./usr/share/man/html8/evbsh5 base-obsolete obsolete
./usr/share/man/html8/evbsh5 base-obsolete obsolete
./usr/share/man/html8/hp300 base-man-share
./usr/share/man/html8/hp700 base-man-share
./usr/share/man/html8/hpcarm base-man-share
@ -2811,7 +2811,7 @@
./usr/share/man/html8/newsmips base-man-share
./usr/share/man/html8/next68k base-man-share
./usr/share/man/html8/ofppc base-man-share
./usr/share/man/html8/pc532 base-man-share
./usr/share/man/html8/pc532 base-obsolete obsolete
./usr/share/man/html8/playstation base-obsolete obsolete
./usr/share/man/html8/playstation2 base-man-share
./usr/share/man/html8/pmax base-man-share
@ -2839,7 +2839,7 @@
./usr/share/man/html9/hp300 base-man-share
./usr/share/man/html9/i386 base-man-share
./usr/share/man/html9/mac68k base-man-share
./usr/share/man/html9/pc532 base-man-share
./usr/share/man/html9/pc532 base-obsolete obsolete
./usr/share/man/html9/pmax base-man-share
./usr/share/man/html9/sparc base-man-share
./usr/share/man/html9/sun3 base-man-share
@ -2877,7 +2877,7 @@
./usr/share/man/man4/mac68k base-man-share
./usr/share/man/man4/macppc base-man-share
./usr/share/man/man4/mvme68k base-man-share
./usr/share/man/man4/pc532 base-man-share
./usr/share/man/man4/pc532 base-obsolete obsolete
./usr/share/man/man4/pmax base-man-share
./usr/share/man/man4/pmppc base-obsolete obsolete
./usr/share/man/man4/prep base-man-share
@ -2912,7 +2912,7 @@
./usr/share/man/man8/evbmips base-man-share
./usr/share/man/man8/evbppc base-man-share
./usr/share/man/man8/evbsh3 base-man-share
./usr/share/man/man8/evbsh5 base-obsolete obsolete
./usr/share/man/man8/evbsh5 base-obsolete obsolete
./usr/share/man/man8/hp300 base-man-share
./usr/share/man/man8/hp700 base-man-share
./usr/share/man/man8/hpcarm base-man-share
@ -2932,7 +2932,7 @@
./usr/share/man/man8/newsmips base-man-share
./usr/share/man/man8/next68k base-man-share
./usr/share/man/man8/ofppc base-man-share
./usr/share/man/man8/pc532 base-man-share
./usr/share/man/man8/pc532 base-obsolete obsolete
./usr/share/man/man8/playstation2 base-man-share
./usr/share/man/man8/pmax base-man-share
./usr/share/man/man8/pmppc base-obsolete obsolete
@ -2960,7 +2960,7 @@
./usr/share/man/man9/hp300 base-man-share
./usr/share/man/man9/i386 base-man-share
./usr/share/man/man9/mac68k base-man-share
./usr/share/man/man9/pc532 base-man-share
./usr/share/man/man9/pc532 base-obsolete obsolete
./usr/share/man/man9/pmax base-man-share
./usr/share/man/man9/sparc base-man-share
./usr/share/man/man9/sun3 base-man-share

View File

@ -1,3 +0,0 @@
# $NetBSD: rescue.pc532,v 1.2 2004/01/11 10:24:59 lukem Exp $
./rescue/bim base-rescue-root
./rescue/ldconfig base-rescue-root

View File

@ -1,57 +0,0 @@
# $NetBSD: md.pc532,v 1.47 2006/09/12 02:36:37 simonb Exp $
./usr/include/ieeefp.h comp-c-include
./usr/include/pc532 comp-c-include
./usr/include/pc532/_G_config.h comp-c-include
./usr/include/pc532/ansi.h comp-c-include
./usr/include/pc532/aout_machdep.h comp-c-include
./usr/include/pc532/asm.h comp-c-include
./usr/include/pc532/autoconf.h comp-c-include
./usr/include/pc532/bswap.h comp-c-include
./usr/include/pc532/byte_swap.h comp-c-include
./usr/include/pc532/cdefs.h comp-c-include
./usr/include/pc532/conf.h comp-obsolete obsolete
./usr/include/pc532/cpu.h comp-c-include
./usr/include/pc532/cpufunc.h comp-c-include
./usr/include/pc532/db_machdep.h comp-obsolete obsolete
./usr/include/pc532/disklabel.h comp-c-include
./usr/include/pc532/elf_machdep.h comp-c-include
./usr/include/pc532/endian.h comp-c-include
./usr/include/pc532/endian_machdep.h comp-c-include
./usr/include/pc532/float.h comp-c-include
./usr/include/pc532/fpu.h comp-c-include
./usr/include/pc532/frame.h comp-c-include
./usr/include/pc532/icu.h comp-c-include
./usr/include/pc532/ieee.h comp-c-include
./usr/include/pc532/ieeefp.h comp-c-include
./usr/include/pc532/int_const.h comp-c-include
./usr/include/pc532/int_fmtio.h comp-c-include
./usr/include/pc532/int_limits.h comp-c-include
./usr/include/pc532/int_mwgwtypes.h comp-c-include
./usr/include/pc532/int_types.h comp-c-include
./usr/include/pc532/jmpbuf.h comp-c-include
./usr/include/pc532/kcore.h comp-c-include
./usr/include/pc532/limits.h comp-c-include
./usr/include/pc532/lock.h comp-c-include
./usr/include/pc532/math.h comp-c-include
./usr/include/pc532/mcontext.h comp-c-include
./usr/include/pc532/mtpr.h comp-obsolete obsolete
./usr/include/pc532/param.h comp-c-include
./usr/include/pc532/pcb.h comp-c-include
./usr/include/pc532/pmap.h comp-c-include
./usr/include/pc532/pmc.h comp-c-include
./usr/include/pc532/proc.h comp-c-include
./usr/include/pc532/profile.h comp-c-include
./usr/include/pc532/psl.h comp-c-include
./usr/include/pc532/pte.h comp-c-include
./usr/include/pc532/ptrace.h comp-c-include
./usr/include/pc532/reg.h comp-c-include
./usr/include/pc532/setjmp.h comp-c-include
./usr/include/pc532/signal.h comp-c-include
./usr/include/pc532/stdarg.h comp-c-include
./usr/include/pc532/trap.h comp-c-include
./usr/include/pc532/types.h comp-c-include
./usr/include/pc532/varargs.h comp-c-include
./usr/include/pc532/vmparam.h comp-c-include
./usr/include/pc532/wchar_limits.h comp-c-include
./usr/lib/c++rt0.o comp-cxx-lib
./usr/lib/scrt0.o comp-c-lib

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1048 2008/01/03 20:48:01 jdc Exp $
# $NetBSD: mi,v 1.1049 2008/01/09 11:26:01 simonb Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -1192,12 +1192,12 @@
./usr/share/man/cat4/owtemp.0 man-sys-catman .cat
./usr/share/man/cat4/pad.0 man-sys-catman .cat
./usr/share/man/cat4/pas.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/intro.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/lpt.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/mem.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/ncr.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/plip.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/scn.0 man-sys-catman .cat
./usr/share/man/cat4/pc532/intro.0 man-obsolete obsolete
./usr/share/man/cat4/pc532/lpt.0 man-obsolete obsolete
./usr/share/man/cat4/pc532/mem.0 man-obsolete obsolete
./usr/share/man/cat4/pc532/ncr.0 man-obsolete obsolete
./usr/share/man/cat4/pc532/plip.0 man-obsolete obsolete
./usr/share/man/cat4/pc532/scn.0 man-obsolete obsolete
./usr/share/man/cat4/pcdisplay.0 man-sys-catman .cat
./usr/share/man/cat4/pchb.0 man-sys-catman .cat
./usr/share/man/cat4/pci.0 man-sys-catman .cat
@ -2269,7 +2269,7 @@
./usr/share/man/cat8/pam_unix.0 man-sysutil-catman pam,.cat
./usr/share/man/cat8/paxctl.0 man-sysutil-catman .cat
./usr/share/man/cat8/pc532/MAKEDEV.0 man-obsolete obsolete
./usr/share/man/cat8/pc532/bim.0 man-sysutil-catman .cat
./usr/share/man/cat8/pc532/bim.0 man-obsolete obsolete
./usr/share/man/cat8/pc532/makedev.0 man-obsolete obsolete
./usr/share/man/cat8/pcictl.0 man-sysutil-catman .cat
./usr/share/man/cat8/pcnfsd.0 man-nfsserver-catman .cat
@ -3709,12 +3709,12 @@
./usr/share/man/man4/owtemp.4 man-sys-man .man
./usr/share/man/man4/pad.4 man-sys-man .man
./usr/share/man/man4/pas.4 man-sys-man .man
./usr/share/man/man4/pc532/intro.4 man-sys-man .man
./usr/share/man/man4/pc532/lpt.4 man-sys-man .man
./usr/share/man/man4/pc532/mem.4 man-sys-man .man
./usr/share/man/man4/pc532/ncr.4 man-sys-man .man
./usr/share/man/man4/pc532/plip.4 man-sys-man .man
./usr/share/man/man4/pc532/scn.4 man-sys-man .man
./usr/share/man/man4/pc532/intro.4 man-obsolete obsolete
./usr/share/man/man4/pc532/lpt.4 man-obsolete obsolete
./usr/share/man/man4/pc532/mem.4 man-obsolete obsolete
./usr/share/man/man4/pc532/ncr.4 man-obsolete obsolete
./usr/share/man/man4/pc532/plip.4 man-obsolete obsolete
./usr/share/man/man4/pc532/scn.4 man-obsolete obsolete
./usr/share/man/man4/pcdisplay.4 man-sys-man .man
./usr/share/man/man4/pchb.4 man-sys-man .man
./usr/share/man/man4/pci.4 man-sys-man .man
@ -4786,7 +4786,7 @@
./usr/share/man/man8/pam_unix.8 man-sysutil-man .man,pam
./usr/share/man/man8/paxctl.8 man-sysutil-man .man
./usr/share/man/man8/pc532/MAKEDEV.8 man-obsolete obsolete
./usr/share/man/man8/pc532/bim.8 man-sysutil-man .man
./usr/share/man/man8/pc532/bim.8 man-obsolete obsolete
./usr/share/man/man8/pc532/makedev.8 man-obsolete obsolete
./usr/share/man/man8/pcictl.8 man-sysutil-man .man
./usr/share/man/man8/pcnfsd.8 man-nfsserver-man .man

View File

@ -1,2 +0,0 @@
# $NetBSD: md.pc532,v 1.1 2003/12/28 15:46:00 lukem Exp $
./usr/X11R6/lib/X11/rgb.db

View File

@ -1,38 +0,0 @@
# $NetBSD: MAKEDEV.conf,v 1.5 2007/01/15 23:35:12 hubertf Exp $
all_md)
makedev sd0 sd1 sd2 sd3 st0 st1 cd0 cd1
makedev tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7
makedev ss0 ch0 uk0 uk1 lpt0 lpt1 rtc
makedev se0 se1 se2 se3
makedev scsibus0 scsibus1 scsibus2 scsibus3
makedev ses0 ses1 ses2 ses3
;;
floppy)
makedev std sd0 sd1 sd2 tty0 tty1 tty2 tty3
makedev st0 st1 cd0 cd1 md0 opty
;;
se*)
name=se; unit=${i#se}; chr=22
mkdev $name$unit c $chr $unit 640 $g_operator
;;
tty[0-7])
unit=${i#tty}
mkdev tty0$unit c 8 $unit "" "" $u_uucp
mkdev cu0$unit c 8 $(($unit + 128)) "" "" $u_uucp
;;
rtc)
mkdev rtc c 2 3 644
;;
lpt*)
# pc532 has special lpt driver
unit=${i#lpt}
mkdev lpt${unit} c 17 $(($unit + 64)) 220
mkdev lpt${unit}p c 17 $unit 220
;;

View File

@ -1,14 +0,0 @@
# $NetBSD: ttys,v 1.7 2004/06/20 21:30:28 christos Exp $
#
# @(#)ttys 5.1 (Berkeley) 4/17/89
#
# name getty type status comments
#
console "/usr/libexec/getty std.9600" unknown on secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off secure
tty03 "/usr/libexec/getty std.9600" unknown off secure
tty04 "/usr/libexec/getty std.9600" unknown off secure
tty05 "/usr/libexec/getty std.9600" unknown off secure
tty06 "/usr/libexec/getty std.9600" unknown off secure
tty07 "/usr/libexec/getty std.9600" unknown off secure

View File

@ -1,4 +1,4 @@
# $NetBSD: NetBSD.dist,v 1.358 2007/12/31 15:31:41 ad Exp $
# $NetBSD: NetBSD.dist,v 1.359 2008/01/09 11:26:02 simonb Exp $
# @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
# Do not customize this file as it may be overwritten on upgrades.
@ -751,7 +751,6 @@
./usr/share/man/cat4/mac68k
./usr/share/man/cat4/macppc
./usr/share/man/cat4/mvme68k
./usr/share/man/cat4/pc532
./usr/share/man/cat4/pmax
./usr/share/man/cat4/prep
./usr/share/man/cat4/sgimips
@ -800,7 +799,6 @@
./usr/share/man/cat8/newsmips
./usr/share/man/cat8/next68k
./usr/share/man/cat8/ofppc
./usr/share/man/cat8/pc532
./usr/share/man/cat8/playstation2
./usr/share/man/cat8/pmax
./usr/share/man/cat8/prep
@ -823,7 +821,6 @@
./usr/share/man/cat9/hp300
./usr/share/man/cat9/i386
./usr/share/man/cat9/mac68k
./usr/share/man/cat9/pc532
./usr/share/man/cat9/pmax
./usr/share/man/cat9/sparc
./usr/share/man/cat9/sun3
@ -857,7 +854,6 @@
./usr/share/man/man4/mac68k
./usr/share/man/man4/macppc
./usr/share/man/man4/mvme68k
./usr/share/man/man4/pc532
./usr/share/man/man4/pmax
./usr/share/man/man4/prep
./usr/share/man/man4/sgimips
@ -906,7 +902,6 @@
./usr/share/man/man8/newsmips
./usr/share/man/man8/next68k
./usr/share/man/man8/ofppc
./usr/share/man/man8/pc532
./usr/share/man/man8/playstation2
./usr/share/man/man8/pmax
./usr/share/man/man8/prep
@ -929,7 +924,6 @@
./usr/share/man/man9/hp300
./usr/share/man/man9/i386
./usr/share/man/man9/mac68k
./usr/share/man/man9/pc532
./usr/share/man/man9/pmax
./usr/share/man/man9/sparc
./usr/share/man/man9/sun3
@ -963,7 +957,6 @@
./usr/share/man/html4/mac68k
./usr/share/man/html4/macppc
./usr/share/man/html4/mvme68k
./usr/share/man/html4/pc532
./usr/share/man/html4/pmax
./usr/share/man/html4/prep
./usr/share/man/html4/sgimips
@ -1012,7 +1005,6 @@
./usr/share/man/html8/newsmips
./usr/share/man/html8/next68k
./usr/share/man/html8/ofppc
./usr/share/man/html8/pc532
./usr/share/man/html8/playstation2
./usr/share/man/html8/pmax
./usr/share/man/html8/prep
@ -1035,7 +1027,6 @@
./usr/share/man/html9/hp300
./usr/share/man/html9/i386
./usr/share/man/html9/mac68k
./usr/share/man/html9/pc532
./usr/share/man/html9/pmax
./usr/share/man/html9/sparc
./usr/share/man/html9/sun3

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
#define BFD_VERSION_DATE 20050612
#define BFD_VERSION 216010000
#define BFD_VERSION_STRING "2.16.1"

View File

@ -1,325 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated by configure. */
/* config.in. Generated from configure.in by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Define to 1 if you have `alloca', as a function or macro. */
#define HAVE_ALLOCA 1
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define to 1 if you have the `dcgettext' function. */
/* #undef HAVE_DCGETTEXT */
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#define HAVE_DIRENT_H 1
/* Define to 1 if you have the `fcntl' function. */
#define HAVE_FCNTL 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `fdopen' function. */
#define HAVE_FDOPEN 1
/* Define to 1 if you have the `fseeko' function. */
#define HAVE_FSEEKO 1
/* Define to 1 if you have the `fseeko64' function. */
/* #undef HAVE_FSEEKO64 */
/* Define to 1 if you have the `ftello' function. */
#define HAVE_FTELLO 1
/* Define to 1 if you have the `ftello64' function. */
/* #undef HAVE_FTELLO64 */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `getgid' function. */
#define HAVE_GETGID 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Define to 1 if you have the `getuid' function. */
#define HAVE_GETUID 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if <sys/procfs.h> has lwpstatus_t. */
/* #undef HAVE_LWPSTATUS_T */
/* Define if <sys/procfs.h> has lwpstatus_t.pr_context. */
/* #undef HAVE_LWPSTATUS_T_PR_CONTEXT */
/* Define if <sys/procfs.h> has lwpstatus_t.pr_reg. */
/* #undef HAVE_LWPSTATUS_T_PR_REG */
/* Define if <sys/procfs.h> has lwpxstatus_t. */
/* #undef HAVE_LWPXSTATUS_T */
/* Define to 1 if you have the `madvise' function. */
#define HAVE_MADVISE 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `mprotect' function. */
#define HAVE_MPROTECT 1
/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* #undef HAVE_NDIR_H */
/* Define to 1 if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define if <sys/procfs.h> has prpsinfo32_t. */
/* #undef HAVE_PRPSINFO32_T */
/* Define if <sys/procfs.h> has prpsinfo_t. */
/* #undef HAVE_PRPSINFO_T */
/* Define if <sys/procfs.h> has prstatus32_t. */
/* #undef HAVE_PRSTATUS32_T */
/* Define if <sys/procfs.h> has prstatus32_t.pr_who. */
/* #undef HAVE_PRSTATUS32_T_PR_WHO */
/* Define if <sys/procfs.h> has prstatus_t. */
/* #undef HAVE_PRSTATUS_T */
/* Define if <sys/procfs.h> has prstatus_t.pr_who. */
/* #undef HAVE_PRSTATUS_T_PR_WHO */
/* Define if <sys/procfs.h> has psinfo32_t. */
/* #undef HAVE_PSINFO32_T */
/* Define if <sys/procfs.h> has psinfo_t. */
/* #undef HAVE_PSINFO_T */
/* Define if <sys/procfs.h> has pstatus32_t. */
/* #undef HAVE_PSTATUS32_T */
/* Define if <sys/procfs.h> has pstatus_t. */
/* #undef HAVE_PSTATUS_T */
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define if <sys/procfs.h> has pxstatus_t. */
/* #undef HAVE_PXSTATUS_T */
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `setitimer' function. */
#define HAVE_SETITIMER 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strtoull' function. */
#define HAVE_STRTOULL 1
/* Define if struct core_dumpx has member c_impl */
/* #undef HAVE_ST_C_IMPL */
/* Define to 1 if you have the `sysconf' function. */
#define HAVE_SYSCONF 1
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
*/
/* #undef HAVE_SYS_DIR_H */
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
/* #undef HAVE_SYS_NDIR_H */
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/procfs.h> header file. */
/* #undef HAVE_SYS_PROCFS_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <time.h> header file. */
#define HAVE_TIME_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define if <sys/procfs.h> has win32_pstatus_t. */
/* #undef HAVE_WIN32_PSTATUS_T */
/* Define to 1 if you have the `__argz_count' function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define to 1 if you have the `__argz_next' function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define to 1 if you have the `__argz_stringify' function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if getenv is not declared in system header files. */
/* #undef NEED_DECLARATION_GETENV */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if realloc is not declared in system header files. */
/* #undef NEED_DECLARATION_REALLOC */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Name of package */
#define PACKAGE "bfd"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* The number of bytes in type long */
#define SIZEOF_LONG 4
/* The number of bytes in type long long */
#define SIZEOF_LONG_LONG 8
/* The number of bytes in type off_t */
#define SIZEOF_OFF_T 8
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Name of host specific header file to include in trad-core.c. */
/* #undef TRAD_HEADER */
/* Use b modifier when opening binary files? */
/* #undef USE_BINARY_FOPEN */
/* Use mmap if it's available? */
/* #undef USE_MMAP */
/* Version number of package */
#define VERSION "2.16.1"
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */

View File

@ -1,8 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp
#
G_libbfd_la_DEPENDENCIES=ns32knetbsd.lo aout-ns32k.lo cpu-ns32k.lo netbsd-core.lo ofiles
G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo archive64.lo
G_DEFS=-DHAVE_CONFIG_H
G_INCLUDES=-D_GNU_SOURCE -DNETBSD_CORE -I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include -I${GNUHOSTDIST}/bfd/../intl -I../intl
G_TDEFAULTS=-DDEFAULT_VECTOR=pc532netbsd_vec -DSELECT_VECS='&pc532netbsd_vec' -DSELECT_ARCHITECTURES='&bfd_ns32k_arch' -DHAVE_pc532netbsd_vec

View File

@ -1,385 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
#define BYTEORDER 1234
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if you have the <alloca.h> header file. */
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the `asprintf' function. */
#define HAVE_ASPRINTF 1
/* Define to 1 if you have the `atexit' function. */
#define HAVE_ATEXIT 1
/* Define to 1 if you have the `basename' function. */
#define HAVE_BASENAME 1
/* Define to 1 if you have the `bcmp' function. */
#define HAVE_BCMP 1
/* Define to 1 if you have the `bcopy' function. */
#define HAVE_BCOPY 1
/* Define to 1 if you have the `bsearch' function. */
#define HAVE_BSEARCH 1
/* Define to 1 if you have the `bzero' function. */
#define HAVE_BZERO 1
/* Define to 1 if you have the `calloc' function. */
#define HAVE_CALLOC 1
/* Define to 1 if you have the `canonicalize_file_name' function. */
/* #undef HAVE_CANONICALIZE_FILE_NAME */
/* Define to 1 if you have the `clock' function. */
#define HAVE_CLOCK 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `ffs' function. */
#define HAVE_FFS 1
/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `getrusage' function. */
#define HAVE_GETRUSAGE 1
/* Define to 1 if you have the `getsysinfo' function. */
/* #undef HAVE_GETSYSINFO */
/* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1
/* Define to 1 if you have the `index' function. */
#define HAVE_INDEX 1
/* Define to 1 if you have the `insque' function. */
#define HAVE_INSQUE 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <machine/hal_sysinfo.h> header file. */
/* #undef HAVE_MACHINE_HAL_SYSINFO_H */
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the `memchr' function. */
#define HAVE_MEMCHR 1
/* Define to 1 if you have the `memcmp' function. */
#define HAVE_MEMCMP 1
/* Define to 1 if you have the `memcpy' function. */
#define HAVE_MEMCPY 1
/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mempcpy' function. */
/* #undef HAVE_MEMPCPY */
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if you have the `mkstemps' function. */
/* #undef HAVE_MKSTEMPS */
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `on_exit' function. */
/* #undef HAVE_ON_EXIT */
/* Define to 1 if you have the `psignal' function. */
#define HAVE_PSIGNAL 1
/* Define to 1 if you have the `pstat_getdynamic' function. */
/* #undef HAVE_PSTAT_GETDYNAMIC */
/* Define to 1 if you have the `pstat_getstatic' function. */
/* #undef HAVE_PSTAT_GETSTATIC */
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define to 1 if you have the `random' function. */
#define HAVE_RANDOM 1
/* Define to 1 if you have the `realpath' function. */
#define HAVE_REALPATH 1
/* Define to 1 if you have the `rename' function. */
#define HAVE_RENAME 1
/* Define to 1 if you have the `rindex' function. */
#define HAVE_RINDEX 1
/* Define to 1 if you have the `sbrk' function. */
#define HAVE_SBRK 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `sigsetmask' function. */
#define HAVE_SIGSETMASK 1
/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `stpcpy' function. */
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `stpncpy' function. */
/* #undef HAVE_STPNCPY */
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1
/* Define to 1 if you have the `strrchr' function. */
#define HAVE_STRRCHR 1
/* Define to 1 if you have the `strsignal' function. */
#define HAVE_STRSIGNAL 1
/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1
/* Define to 1 if you have the `strtod' function. */
#define HAVE_STRTOD 1
/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* Define to 1 if you have the `sysconf' function. */
#define HAVE_SYSCONF 1
/* Define to 1 if you have the `sysctl' function. */
#define HAVE_SYSCTL 1
/* Define to 1 if you have the `sysmp' function. */
/* #undef HAVE_SYSMP */
/* Define if you have the sys_errlist variable. */
#define HAVE_SYS_ERRLIST 1
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define if you have the sys_nerr variable. */
#define HAVE_SYS_NERR 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/pstat.h> header file. */
/* #undef HAVE_SYS_PSTAT_H */
/* Define to 1 if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define if you have the sys_siglist variable. */
#define HAVE_SYS_SIGLIST 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/sysctl.h> header file. */
#define HAVE_SYS_SYSCTL_H 1
/* Define to 1 if you have the <sys/sysinfo.h> header file. */
/* #undef HAVE_SYS_SYSINFO_H */
/* Define to 1 if you have the <sys/sysmp.h> header file. */
/* #undef HAVE_SYS_SYSMP_H */
/* Define to 1 if you have the <sys/systemcfg.h> header file. */
/* #undef HAVE_SYS_SYSTEMCFG_H */
/* Define to 1 if you have the <sys/table.h> header file. */
/* #undef HAVE_SYS_TABLE_H */
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define to 1 if you have the `table' function. */
/* #undef HAVE_TABLE */
/* Define to 1 if you have the `times' function. */
#define HAVE_TIMES 1
/* Define to 1 if you have the <time.h> header file. */
#define HAVE_TIME_H 1
/* Define to 1 if you have the `tmpnam' function. */
#define HAVE_TMPNAM 1
/* Define if you have the \`uintptr_t' type. */
#define HAVE_UINTPTR_T 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `vasprintf' function. */
#define HAVE_VASPRINTF 1
/* Define to 1 if you have the `vfork' function. */
#define HAVE_VFORK 1
/* Define to 1 if you have the <vfork.h> header file. */
/* #undef HAVE_VFORK_H */
/* Define to 1 if you have the `vfprintf' function. */
#define HAVE_VFPRINTF 1
/* Define to 1 if you have the `vprintf' function. */
#define HAVE_VPRINTF 1
/* Define to 1 if you have the `vsnprintf' function. */
#define HAVE_VSNPRINTF 1
/* Define to 1 if you have the `vsprintf' function. */
#define HAVE_VSPRINTF 1
/* Define to 1 if you have the `waitpid' function. */
#define HAVE_WAITPID 1
/* Define to 1 if `fork' works. */
#define HAVE_WORKING_FORK 1
/* Define to 1 if `vfork' works. */
#define HAVE_WORKING_VFORK 1
/* Define to 1 if you have the `_doprnt' function. */
/* #undef HAVE__DOPRNT */
/* Define if you have the _system_configuration variable. */
/* #undef HAVE__SYSTEM_CONFIGURATION */
/* Define if the host machine stores words of multi-word integers in
big-endian order. */
/* #undef HOST_WORDS_BIG_ENDIAN */
/* Define if canonicalize_file_name is not declared in system header files. */
#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
/* Define if errno must be declared even when <errno.h> is included. */
/* #undef NEED_DECLARATION_ERRNO */
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* The size of a `int', as computed by sizeof. */
#define SIZEOF_INT 4
/* Define if you know the direction of stack growth for your system; otherwise
it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows
toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#define STACK_DIRECTION 0
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define to an unsigned 64-bit type available in the compiler. */
#define UNSIGNED_64BIT_TYPE uint64_t
/* whether byteorder is bigendian */
/* #undef WORDS_BIGENDIAN */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
/* Define to `unsigned long' if <sys/types.h> does not define. */
/* #undef uintptr_t */
/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */

View File

@ -1,7 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp
#
G_ALLOCA=
G_EXTRA_OFILES=
G_LIBOBJS=mempcpy.o mkstemps.o stpcpy.o stpncpy.o strncmp.o
G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o concat.o cp-demint.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o

View File

@ -1,166 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated by configure. */
/* config.in. Generated from configure.in by autoheader. */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Define to 1 if you have `alloca', as a function or macro. */
#define HAVE_ALLOCA 1
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define to 1 if you have the `dcgettext' function. */
/* #undef HAVE_DCGETTEXT */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1
/* Define to 1 if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define to 1 if you have the `__argz_count' function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define to 1 if you have the `__argz_next' function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define to 1 if you have the `__argz_stringify' function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Name of package */
#define PACKAGE "opcodes"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "2.16.1"
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */

View File

@ -1,6 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.4 2004/12/10 13:57:08 mrg Exp
#
G_archdefs=-DARCH_ns32k
G_BFD_MACHINES=ns32k-dis.lo
G_libopcodes_la_SOURCES=dis-buf.c disassemble.c dis-init.c

View File

@ -1,211 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
/* #undef HAVE_ALLOCA_H */
/* Define if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
/* #undef STACK_DIRECTION */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getc_unlocked function. */
#define HAVE_GETC_UNLOCKED 1
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
/* Define if you have the setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the setmode function. */
#define HAVE_SETMODE 1
/* Define if you have the stpcpy function. */
/* #undef HAVE_STPCPY */
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the strcoll function. */
#define HAVE_STRCOLL 1
/* Define if you have the utimes function. */
#define HAVE_UTIMES 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Name of package */
#define PACKAGE "binutils"
/* Version number of package */
#define VERSION "2.16.1"
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Does the platform use an executable suffix? */
/* #undef HAVE_EXECUTABLE_SUFFIX */
/* Suffix used for executables, if any. */
#define EXECUTABLE_SUFFIX ""
/* Is fopen64 available? */
/* #undef HAVE_FOPEN64 */
/* Is stat64 available? */
/* #undef HAVE_STAT64 */
/* Enable LFS */
/* #undef _LARGEFILE64_SOURCE */
/* Is the type time_t defined in <time.h>? */
#define HAVE_TIME_T_IN_TIME_H 1
/* Is the type time_t defined in <sys/types.h>? */
#define HAVE_TIME_T_IN_TYPES_H 1
/* Does <utime.h> define struct utimbuf? */
#define HAVE_GOOD_UTIME_H 1
/* Define if fprintf is not declared in system header files. */
/* #undef NEED_DECLARATION_FPRINTF */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if getenv is not declared in system header files. */
/* #undef NEED_DECLARATION_GETENV */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Use b modifier when opening binary files? */
/* #undef USE_BINARY_FOPEN */
/* Configured target name. */
#define TARGET "ns32k--netbsd"
/* Define to 1 if user symbol names have a leading underscore, 0 if not. */
#define TARGET_PREPENDS_UNDERSCORE 1

View File

@ -1,31 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp
#
G_VERSION=2.16.1
G_DEFS=-DHAVE_CONFIG_H -I. -I${GNUHOSTDIST}/binutils -I.
G_INCLUDES=-D_GNU_SOURCE -I. -I${GNUHOSTDIST}/binutils -I../bfd -I${GNUHOSTDIST}/binutils/../bfd -I${GNUHOSTDIST}/binutils/../include -I${GNUHOSTDIST}/binutils/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation
G_PROGRAMS=size objdump ar strings ranlib objcopy addr2line readelf nm-new strip-new cxxfilt
G_man_MANS=addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 windres.1 c++filt.1
G_TEXINFOS=binutils.texi
G_size_OBJECTS=size.o bucomm.o version.o filemode.o
G_size_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_objdump_OBJECTS=objdump.o budemang.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o
G_objdump_DEPENDENCIES=../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a
G_ar_OBJECTS=arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o
G_ar_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_strings_OBJECTS=strings.o bucomm.o version.o filemode.o
G_strings_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_ranlib_OBJECTS=ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o
G_ranlib_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_objcopy_OBJECTS=objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
G_objcopy_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_addr2line_OBJECTS=addr2line.o budemang.o bucomm.o version.o filemode.o
G_addr2line_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_readelf_OBJECTS=readelf.o version.o unwind-ia64.o
G_readelf_DEPENDENCIES=../libiberty/libiberty.a
G_nm_new_OBJECTS=nm.o budemang.o bucomm.o version.o filemode.o
G_nm_new_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_strip_new_OBJECTS=objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
G_strip_new_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a
G_cxxfilt_OBJECTS=cxxfilt.o bucomm.o version.o filemode.o
G_cxxfilt_DEPENDENCIES=../bfd/libbfd.la ../libiberty/libiberty.a

View File

@ -1,317 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated by configure. */
/* config.in. Generated from configure.in by autoheader. */
/* Define if using AIX 5.2 value for C_WEAKEXT. */
/* #undef AIX_WEAK_SUPPORT */
/* Use BFD interface? */
#define BFD_ASSEMBLER 1
/* assert broken? */
/* #undef BROKEN_ASSERT */
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */
/* Compiling cross-assembler? */
/* #undef CROSS_COMPILE */
/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */
/* Default architecture. */
/* #undef DEFAULT_ARCH */
/* Default emulation. */
#define DEFAULT_EMULATION ""
/* Supported emulations. */
#define EMULATIONS
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Define to 1 if you have `alloca', as a function or macro. */
#define HAVE_ALLOCA 1
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define to 1 if you have the `dcgettext' function. */
/* #undef HAVE_DCGETTEXT */
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1
/* Define to 1 if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define to 1 if you have the `remove' function. */
/* #undef HAVE_REMOVE */
/* Define to 1 if you have the `sbrk' function. */
#define HAVE_SBRK 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `unlink' function. */
#define HAVE_UNLINK 1
/* Define to 1 if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Define to 1 if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
/* Define to 1 if you have the `__argz_count' function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define to 1 if you have the `__argz_next' function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define to 1 if you have the `__argz_stringify' function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Using i386 COFF? */
/* #undef I386COFF */
/* Using m68k COFF? */
/* #undef M68KCOFF */
/* Using m88k COFF? */
/* #undef M88KCOFF */
/* old COFF support? */
/* #undef MANY_SEGMENTS */
/* Default CPU for MIPS targets. */
/* #undef MIPS_CPU_STRING_DEFAULT */
/* Generate 64-bit code by default on MIPS targets. */
/* #undef MIPS_DEFAULT_64BIT */
/* Choose a default ABI for MIPS targets. */
/* #undef MIPS_DEFAULT_ABI */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Define if errno is not declared in system header files. */
/* #undef NEED_DECLARATION_ERRNO */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if malloc is not declared in system header files. */
/* #undef NEED_DECLARATION_MALLOC */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* a.out support? */
/* #undef OBJ_MAYBE_AOUT */
/* b.out support? */
/* #undef OBJ_MAYBE_BOUT */
/* COFF support? */
/* #undef OBJ_MAYBE_COFF */
/* ECOFF support? */
/* #undef OBJ_MAYBE_ECOFF */
/* ELF support? */
/* #undef OBJ_MAYBE_ELF */
/* generic support? */
/* #undef OBJ_MAYBE_GENERIC */
/* HP300 support? */
/* #undef OBJ_MAYBE_HP300 */
/* IEEE support? */
/* #undef OBJ_MAYBE_IEEE */
/* SOM support? */
/* #undef OBJ_MAYBE_SOM */
/* VMS support? */
/* #undef OBJ_MAYBE_VMS */
/* Name of package */
#define PACKAGE "gas"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* Define if defaulting to ELF on SCO 5. */
/* #undef SCO_ELF */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Using strict COFF? */
/* #undef STRICTCOFF */
/* Target alias. */
#define TARGET_ALIAS "ns32k--netbsd"
/* Define as 1 if big endian. */
/* #undef TARGET_BYTES_BIG_ENDIAN */
/* Canonical target. */
#define TARGET_CANONICAL "ns32k--netbsd"
/* Target CPU. */
#define TARGET_CPU "ns32k"
/* Target OS. */
#define TARGET_OS "netbsd"
/* Define if default target is PowerPC Solaris. */
/* #undef TARGET_SOLARIS_COMMENT */
/* Define if target is Symbian OS. */
/* #undef TARGET_SYMBIAN */
/* Target vendor. */
#define TARGET_VENDOR ""
/* Use emulation support? */
/* #undef USE_EMULATIONS */
/* Allow use of E_MIPS_ABI_O32 on MIPS targets. */
/* #undef USE_E_MIPS_ABI_O32 */
/* Using cgen code? */
/* #undef USING_CGEN */
/* Version number of package */
#define VERSION "2.16.1"
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
#define YYTEXT_POINTER 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `long' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> does not define. */
/* #undef size_t */

View File

@ -1,6 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.4 2004/12/10 13:57:08 mrg Exp
#
G_DEFS=-DHAVE_CONFIG_H
G_INCLUDES=-D_GNU_SOURCE -I. -I${GNUHOSTDIST}/gas -I../bfd -I${GNUHOSTDIST}/gas/config -I${GNUHOSTDIST}/gas/../include -I${GNUHOSTDIST}/gas/.. -I${GNUHOSTDIST}/gas/../bfd -I${GNUHOSTDIST}/gas/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\""
G_OBJS=tc-ns32k.o obj-aout.o atof-ieee.o app.o as.o atof-generic.o bignum-copy.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ehopt.o expr.o flonum-konst.o flonum-copy.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o literal.o messages.o output-file.o read.o subsegs.o symbols.o write.o listing.o ecoff.o stabs.o sb.o macro.o

View File

@ -1,4 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp */
#include "itbl-ns32k.h"

View File

@ -1,4 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp */
#include "obj-aout.h"

View File

@ -1,4 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp */
#include "tc-ns32k.h"

View File

@ -1,4 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp */
#include "te-nbsd532.h"

View File

@ -1,7 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp
#
G_DEFS=-DHAVE_CONFIG_H
G_gprof_OBJECTS=basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o cg_print.o corefile.o gmon_io.o gprof.o hertz.o hist.o source.o search_list.o symtab.o sym_ids.o utils.o i386.o alpha.o vax.o tahoe.o sparc.o mips.o flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
G_INCLUDES=-D_GNU_SOURCE -DDEBUG -I../bfd -I${GNUHOSTDIST}/gprof/../include -I${GNUHOSTDIST}/gprof/../bfd -I${GNUHOSTDIST}/gprof/../intl -I../intl -I. -DLOCALEDIR="\"/usr/local/share/locale\""
G_TEXINFOS=gprof.texi

View File

@ -1,145 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* gconfig.h. Generated by configure. */
/* gconfig.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
/* #undef HAVE_ALLOCA_H */
/* Define if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
/* #undef STACK_DIRECTION */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the setmode function. */
#define HAVE_SETMODE 1
/* Define if you have the stpcpy function. */
/* #undef HAVE_STPCPY */
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <sys/gmon_out.h> header file. */
/* #undef HAVE_SYS_GMON_OUT_H */
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Name of package */
#define PACKAGE "gprof"
/* Version number of package */
#define VERSION "2.16.1"
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */

View File

@ -1,181 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp */
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
/* #undef HAVE_ALLOCA_H */
/* Define if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define to `long' if <sys/types.h> doesn't define. */
/* #undef off_t */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
/* #undef STACK_DIRECTION */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if lex declares yytext as a char * by default, not a char[]. */
#define YYTEXT_POINTER 1
/* Define if you have the __argz_count function. */
/* #undef HAVE___ARGZ_COUNT */
/* Define if you have the __argz_next function. */
/* #undef HAVE___ARGZ_NEXT */
/* Define if you have the __argz_stringify function. */
/* #undef HAVE___ARGZ_STRINGIFY */
/* Define if you have the dcgettext function. */
/* #undef HAVE_DCGETTEXT */
/* Define if you have the getcwd function. */
#define HAVE_GETCWD 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the glob function. */
#define HAVE_GLOB 1
/* Define if you have the munmap function. */
#define HAVE_MUNMAP 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the realpath function. */
#define HAVE_REALPATH 1
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
/* Define if you have the setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the stpcpy function. */
/* #undef HAVE_STPCPY */
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strchr function. */
#define HAVE_STRCHR 1
/* Define if you have the <argz.h> header file. */
/* #undef HAVE_ARGZ_H */
/* Define if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */
/* Define if you have the <nl_types.h> header file. */
#define HAVE_NL_TYPES_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/dir.h> header file. */
/* #undef HAVE_SYS_DIR_H */
/* Define if you have the <sys/ndir.h> header file. */
/* #undef HAVE_SYS_NDIR_H */
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <values.h> header file. */
/* #undef HAVE_VALUES_H */
/* Name of package */
#define PACKAGE "ld"
/* Version number of package */
#define VERSION "2.16.1"
/* Define if you have the stpcpy function */
/* #undef HAVE_STPCPY */
/* Define if your locale.h file contains LC_MESSAGES. */
#define HAVE_LC_MESSAGES 1
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
/* #undef HAVE_GETTEXT */
/* Define to 1 if NLS is requested */
#define ENABLE_NLS 1
/* Use b modifier when opening binary files? */
/* #undef USE_BINARY_FOPEN */
/* Define if strstr is not declared in system header files. */
/* #undef NEED_DECLARATION_STRSTR */
/* Define if free is not declared in system header files. */
/* #undef NEED_DECLARATION_FREE */
/* Define if sbrk is not declared in system header files. */
/* #undef NEED_DECLARATION_SBRK */
/* Define if getenv is not declared in system header files. */
/* #undef NEED_DECLARATION_GETENV */
/* Define if environ is not declared in system header files. */
#define NEED_DECLARATION_ENVIRON 1
/* Additional extension a shared object might have. */
/* #undef EXTRA_SHLIB_EXTENSION */

View File

@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp
#
G_DEFS=-DHAVE_CONFIG_H -I. -I${GNUHOSTDIST}/ld -I.
G_EMUL=ns32knbsd
G_EMULATION_OFILES=ens32knbsd.o
G_INCLUDES=-D_GNU_SOURCE -I. -I${GNUHOSTDIST}/ld -I../bfd -I${GNUHOSTDIST}/ld/../bfd -I${GNUHOSTDIST}/ld/../include -I${GNUHOSTDIST}/ld/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\""
G_OFILES=ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o ens32knbsd.o
G_STRINGIFY=astring.sed
G_TEXINFOS=ld.texinfo
G_target_alias=ns32k--netbsd

View File

@ -1,9 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
/* Generated from: NetBSD: mknative-binutils,v 1.3 2003/12/04 14:38:00 mrg Exp */
/* This file is automatically generated. DO NOT EDIT! */
extern ld_emulation_xfer_type ld_ns32knbsd_emulation;
#define EMULATION_LIST \
&ld_ns32knbsd_emulation, \
0

View File

@ -47,7 +47,6 @@ port-news68k
port-newsmips
port-next68k
port-ofppc
port-pc532
port-playstation2
port-pmax
port-powerpc

View File

@ -1,8 +0,0 @@
# $NetBSD: Makefile.inc,v 1.18 2006/06/17 18:04:23 uwe Exp $
SRCS+= ${ASSRCS}
LSRCS+= ${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
DPSRCS+=${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
CLEANFILES+=${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S

View File

@ -1,86 +0,0 @@
/* $NetBSD: SYS.h,v 1.12 2003/08/07 16:42:18 agc Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* William Jolitz.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS 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.
*
* @(#)SYS.h 5.5 (Berkeley) 5/7/91
*
* Modified for the ns532 by Phil Nelson, 12/1/92
*
*/
#include <machine/asm.h>
#include <sys/syscall.h>
#define SYSTRAP(x) \
movd CAT(SYS_,x),r0; \
svc
#define _SYSCALL_NOERROR(x,y) \
ENTRY(x); \
SYSTRAP(y)
#define _SYSCALL(x,y) \
_SYSCALL_NOERROR(x,y); \
bcs _ASM_LABEL(cerror)
#define SYSCALL_NOERROR(x) \
_SYSCALL_NOERROR(x,x)
#define SYSCALL(x) \
_SYSCALL(x,x)
#define PSEUDO_NOERROR(x,y) \
_SYSCALL_NOERROR(x,y); \
ret 0
#define PSEUDO(x,y) \
_SYSCALL(x,y); \
ret 0
#define RSYSCALL_NOERROR(x) \
PSEUDO_NOERROR(x,x)
#define RSYSCALL(x) \
PSEUDO(x,x)
#ifdef WEAK_ALIAS
#define WSYSCALL(weak,strong) \
WEAK_ALIAS(weak,strong); \
PSEUDO(strong,weak)
#else
#define WSYSCALL(weak,strong) \
PSEUDO(weak,weak)
#endif
#define CALL(x,y) \
bsr _C_LABEL(y); \
adjspd -4*x

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile.inc,v 1.1 2006/03/15 17:35:18 kleink Exp $
SRCS+= strtof.c

View File

@ -1,3 +0,0 @@
/* $NetBSD: arith.h,v 1.1 2006/01/25 15:33:28 kleink Exp $ */
#define IEEE_LITTLE_ENDIAN

View File

@ -1,5 +0,0 @@
/* $NetBSD: gd_qnan.h,v 1.1 2006/01/25 15:33:28 kleink Exp $ */
#define f_QNAN 0x7fc00000
#define d_QNAN0 0x0
#define d_QNAN1 0x7ff80000

View File

@ -1,33 +0,0 @@
# $NetBSD: Makefile.inc,v 1.25 2006/07/03 13:00:54 drochner Exp $
# objects built from assembler sources (need lint stubs)
ASSRCS+=alloca.S fabs.S modf.S
ASSRCS+=_setjmp.S
ASSRCS+=resumecontext.S swapcontext.S
# objects built from assembler sources (without lint stubs)
SRCS+= setjmp.S sigsetjmp.S
# objects built from C sources
SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
fpsetround.c fpsetsticky.c \
bswap64.c
# Common ieee754 constants and functions
SRCS+= infinityf_ieee754.c infinity_ieee754.c infinityl_dbl_ieee754.c
SRCS+= fpclassifyf_ieee754.c fpclassifyd_ieee754.c
SRCS+= isinff_ieee754.c isinfd_ieee754.c
SRCS+= isnanf_ieee754.c isnand_ieee754.c
SRCS+= isfinitef_ieee754.c isfinited_ieee754.c
SRCS+= signbitf_ieee754.c signbitd_ieee754.c
SRCS+= nanf.c
SRCS+= makecontext.c
SRCS.ns32k.gen= Lint_resumecontext.c Lint_swapcontext.c
LSRCS+= ${SRCS.ns32k.gen}
DPSRCS+= ${SRCS.ns32k.gen}
CLEANFILES+= ${SRCS.ns32k.gen}

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