Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Try to make the install floppy work on 4MB machines:



details:   https://anonhg.NetBSD.org/src/rev/c0087ff8007d
branches:  trunk
changeset: 483574:c0087ff8007d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Mar 13 13:16:54 2000 +0000

description:
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@localhost> and me.

diffstat:

 distrib/news68k/floppies/ramdisk/Makefile        |  15 +++++++++------
 distrib/news68k/floppies/ramdisk/dot.profile     |   5 +----
 distrib/news68k/floppies/ramdisk/list            |   5 +----
 distrib/news68k/floppies/ramdisk/mtree.conf      |   8 +++++++-
 distrib/news68k/floppies/ramdisk/ramdiskbin.conf |   9 ++++++---
 etc/etc.news68k/disktab                          |   8 ++++----
 6 files changed, 28 insertions(+), 22 deletions(-)

diffs (148 lines):

diff -r 8aec4ddc15de -r c0087ff8007d distrib/news68k/floppies/ramdisk/Makefile
--- a/distrib/news68k/floppies/ramdisk/Makefile Mon Mar 13 12:58:58 2000 +0000
+++ b/distrib/news68k/floppies/ramdisk/Makefile Mon Mar 13 13:16:54 2000 +0000
@@ -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 @@
 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 @@
 ${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
diff -r 8aec4ddc15de -r c0087ff8007d distrib/news68k/floppies/ramdisk/dot.profile
--- a/distrib/news68k/floppies/ramdisk/dot.profile      Mon Mar 13 12:58:58 2000 +0000
+++ b/distrib/news68k/floppies/ramdisk/dot.profile      Mon Mar 13 13:16:54 2000 +0000
@@ -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 @@
        # 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
 
diff -r 8aec4ddc15de -r c0087ff8007d distrib/news68k/floppies/ramdisk/list
--- a/distrib/news68k/floppies/ramdisk/list     Mon Mar 13 12:58:58 2000 +0000
+++ b/distrib/news68k/floppies/ramdisk/list     Mon Mar 13 13:16:54 2000 +0000
@@ -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 @@
 
 # and the installation scripts
 COPY   ${CURDIR}/dot.profile                   .profile
-
-# Minimize use of MFS
-SYMLINK        /tmp    var/tmp
diff -r 8aec4ddc15de -r c0087ff8007d distrib/news68k/floppies/ramdisk/mtree.conf
--- a/distrib/news68k/floppies/ramdisk/mtree.conf       Mon Mar 13 12:58:58 2000 +0000
+++ b/distrib/news68k/floppies/ramdisk/mtree.conf       Mon Mar 13 13:16:54 2000 +0000
@@ -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 @@
 
 # ./var
 var
+
+# ./var/tmp
+tmp            mode=01777
+# ./var/tmp
+..
+
 # ./var
 ..
 
diff -r 8aec4ddc15de -r c0087ff8007d distrib/news68k/floppies/ramdisk/ramdiskbin.conf
--- a/distrib/news68k/floppies/ramdisk/ramdiskbin.conf  Mon Mar 13 12:58:58 2000 +0000
+++ b/distrib/news68k/floppies/ramdisk/ramdiskbin.conf  Mon Mar 13 13:16:54 2000 +0000
@@ -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 test tip tset umount
 progs sysinst
 
+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 gzip srcdir distrib/utils/x_gzip
 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 @@
 
 srcdirs distrib/utils
 
-#libs libhack.o
+libs libhack.o
 libs -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz -lkvm
diff -r 8aec4ddc15de -r c0087ff8007d etc/etc.news68k/disktab
--- a/etc/etc.news68k/disktab   Mon Mar 13 12:58:58 2000 +0000
+++ b/etc/etc.news68k/disktab   Mon Mar 13 13:16:54 2000 +0000
@@ -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:\



Home | Main Index | Thread Index | Old Index