Subject: misc/12777: i386/ramdisk-small too small
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lha@stacken.kth.se>
List: netbsd-bugs
Date: 04/28/2001 14:32:47
>Number:         12777
>Category:       misc
>Synopsis:       i386/ramdisk-small too small
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 28 05:34:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Love
>Release:        Current as of 2001-04-27
>Organization:
	Stacken Computer Club
>Environment:
	
System: NetBSD nutcracker.dynarc.se 1.5U NetBSD 1.5U (NUTCRACKER) #3: Mon Apr 9 16:12:48 CEST 2001 lha@nutcracker.dynarc.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:

	current/i386

	The ramdisk-small is too small, everything doesn't fit on it.
	And if the binary is made larger, it failes since the
	MINIROOTSIZE in the kernel get too small for the image.

>How-To-Repeat:
	make release
>Fix:

The first patch is tested, the second is not (but it should be enough
for the resulting image).

Index: Makefile
===================================================================
RCS file: /cvsroot/basesrc/distrib/i386/floppies/ramdisk-small/Makefile,v
retrieving revision 1.6
diff -u -w -r1.6 Makefile
--- Makefile	2001/02/25 03:54:25	1.6
+++ Makefile	2001/04/28 12:29:53
@@ -26,7 +26,7 @@
 
 CRUNCHGEN?=	crunchgen
 
-RAMDISKSPC=	165
+RAMDISKSPC=	170
 RAMDISKCYLS=	16
 RAMDISKSIZE!=	expr ${RAMDISKSPC} \* ${RAMDISKCYLS}
 
Index: INSTALL_SMALL
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/conf/INSTALL_SMALL,v
retrieving revision 1.65
diff -u -w -r1.65 INSTALL_SMALL
--- INSTALL_SMALL	2001/04/21 21:10:42	1.65
+++ INSTALL_SMALL	2001/04/28 12:29:20
@@ -18,7 +18,7 @@
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
 options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
-options 	MINIROOTSIZE=2640	# size of memory disk, in blocks
+options 	MINIROOTSIZE=2730	# size of memory disk, in blocks
 #options 	MINIROOTSIZE=2880	# 1.44M, same as a floppy
 
 makeoptions	COPTS="-Os"		# generates smaller code than -O2, -O1
>Release-Note:
>Audit-Trail:
>Unformatted: