Try to make the install floppy work on 4MB machines:
- reduce memory disk size - use x_dd, x_ifconfig and x_route - use libhack.o (sync with i386) - don't use mfs as /tmp Tested by Luigi Filippini <filippini@tiscali.it> and me.
This commit is contained in:
parent
97970bb544
commit
d8a503fec5
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.1 1999/12/09 14:59:01 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2000/03/13 13:16:54 tsutsui Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
|
@ -20,8 +20,8 @@ LISTS= list
|
|||
CRUNCHCONF= ${CBIN}.conf
|
||||
MTREE= mtree.conf
|
||||
|
||||
SIZE= 2048k
|
||||
GEOM= 512/16/2/128
|
||||
SIZE= 1440k
|
||||
GEOM= 512/18/2/80
|
||||
DISKTYPE= floppyinstfs
|
||||
|
||||
all: ${CBIN}
|
||||
|
@ -47,11 +47,14 @@ unconfig:
|
|||
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
||||
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
|
||||
|
||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c #libhack.o
|
||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c libhack.o
|
||||
make -f ${CBIN}.mk all
|
||||
|
||||
#HACKSRC=${TOP}/../../utils/libhack
|
||||
#.include "${HACKSRC}/Makefile.inc"
|
||||
HACKSRC=${TOP}/../../utils/libhack
|
||||
.include "${HACKSRC}/Makefile.inc"
|
||||
|
||||
# turn off small gethostby* temporarily
|
||||
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
|
||||
|
||||
clean cleandir distclean:
|
||||
rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: dot.profile,v 1.2 2000/01/21 12:32:55 tsutsui Exp $
|
||||
# $NetBSD: dot.profile,v 1.3 2000/03/13 13:16:55 tsutsui Exp $
|
||||
#
|
||||
# Copyright (c) 1995 Jason R. Thorpe
|
||||
# Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -49,9 +49,6 @@ if [ "X${DONEPROFILE}" = "X" ]; then
|
|||
# mount root read-write
|
||||
mount -u /dev/md0a /
|
||||
|
||||
# mount a /tmp on mfs, to avoid filling the md
|
||||
mount -t mfs swap /tmp
|
||||
|
||||
# mount the kern_fs so that we can examine the dmesg state
|
||||
mount -t kernfs kern /kern
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: list,v 1.2 2000/02/22 15:00:43 tsutsui Exp $
|
||||
# $NetBSD: list,v 1.3 2000/03/13 13:16:55 tsutsui Exp $
|
||||
|
||||
# copy the crunched binary, link to it, and kill it
|
||||
COPY ${OBJDIR}/ramdiskbin ramdiskbin
|
||||
|
@ -86,6 +86,3 @@ COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
|
|||
|
||||
# and the installation scripts
|
||||
COPY ${CURDIR}/dot.profile .profile
|
||||
|
||||
# Minimize use of MFS
|
||||
SYMLINK /tmp var/tmp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: mtree.conf,v 1.1 1999/12/09 14:59:02 tsutsui Exp $
|
||||
# $NetBSD: mtree.conf,v 1.2 2000/03/13 13:16:55 tsutsui Exp $
|
||||
|
||||
/set type=dir uname=root gname=wheel mode=0755
|
||||
# .
|
||||
|
@ -46,6 +46,12 @@ tmp mode=01777
|
|||
|
||||
# ./var
|
||||
var
|
||||
|
||||
# ./var/tmp
|
||||
tmp mode=01777
|
||||
# ./var/tmp
|
||||
..
|
||||
|
||||
# ./var
|
||||
..
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: ramdiskbin.conf,v 1.2 1999/12/31 10:00:24 tsutsui Exp $
|
||||
# $NetBSD: ramdiskbin.conf,v 1.3 2000/03/13 13:16:54 tsutsui Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
|
||||
|
@ -13,10 +13,13 @@ progs restore rm route sed sh shutdown slattach stty sync
|
|||
progs test tip tset umount
|
||||
progs sysinst
|
||||
|
||||
special init srcdir distrib/utils/init_s
|
||||
special dd srcdir distrib/utils/x_dd
|
||||
special gzip srcdir distrib/utils/x_gzip
|
||||
special ifconfig srcdir distrib/utils/x_ifconfig
|
||||
special init srcdir distrib/utils/init_s
|
||||
special more srcdir distrib/utils/more
|
||||
special ping srcdir distrib/utils/x_ping
|
||||
special route srcdir distrib/utils/x_route
|
||||
special sysinst srcdir distrib/utils/sysinst
|
||||
special sysinst srcdir distrib/utils/sysinst/arch/news68k
|
||||
|
||||
|
@ -35,5 +38,5 @@ ln restore rrestore
|
|||
|
||||
srcdirs distrib/utils
|
||||
|
||||
#libs libhack.o
|
||||
libs libhack.o
|
||||
libs -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz -lkvm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: disktab,v 1.1 1999/12/09 15:10:37 tsutsui Exp $
|
||||
# $NetBSD: disktab,v 1.2 2000/03/13 13:16:56 tsutsui Exp $
|
||||
#
|
||||
# Disk geometry and partition layout tables.
|
||||
# Key:
|
||||
|
@ -27,9 +27,9 @@
|
|||
# t[a-h] partition types (filesystem, swap, etc)
|
||||
#
|
||||
floppyinstfs|NetBSD floppy install filesystem:\
|
||||
:ty=floppy:se#512:nt#2:rm#300:ns#16:nc#128:\
|
||||
:pa#4096:oa#0:ba#4096:fa#512:ta=4.2BSD:\
|
||||
:pc#4096:oc#0:
|
||||
:ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\
|
||||
:pa#2880:oa#0:ba#4096:fa#512:ta=4.2BSD:\
|
||||
:pc#2880:oc#0:
|
||||
|
||||
floppy|floppy3|3in|3.5in High Density Floppy:\
|
||||
:ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\
|
||||
|
|
Loading…
Reference in New Issue