Module Name:    src
Committed By:   rin
Date:           Sun Jan 28 01:09:58 UTC 2018

Modified Files:
        src/distrib/zaurus/ramdisk: Makefile list
        src/sys/arch/zaurus/conf: INSTALL

Log Message:
Shrink ramdisk to fit INSTALL kernel within 5MB:
- drop shutdown
- replace disklabel, fsck_ffs, and newfs with stripped-down versions


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/distrib/zaurus/ramdisk/Makefile
cvs rdiff -u -r1.20 -r1.21 src/distrib/zaurus/ramdisk/list
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/zaurus/conf/INSTALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/zaurus/ramdisk/Makefile
diff -u src/distrib/zaurus/ramdisk/Makefile:1.22 src/distrib/zaurus/ramdisk/Makefile:1.23
--- src/distrib/zaurus/ramdisk/Makefile:1.22	Wed Feb  8 20:11:18 2017
+++ src/distrib/zaurus/ramdisk/Makefile	Sun Jan 28 01:09:57 2018
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.22 2017/02/08 20:11:18 rin Exp $
+#	$NetBSD: Makefile,v 1.23 2018/01/28 01:09:57 rin Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
 
 IMAGE=		ramdisk.fs
-IMAGESIZE=	2176k
+IMAGESIZE=	2048k
 MAKEFS_FLAGS+=	-f 14
 
 WARNS=		1

Index: src/distrib/zaurus/ramdisk/list
diff -u src/distrib/zaurus/ramdisk/list:1.20 src/distrib/zaurus/ramdisk/list:1.21
--- src/distrib/zaurus/ramdisk/list:1.20	Wed Jun 26 15:53:48 2013
+++ src/distrib/zaurus/ramdisk/list	Sun Jan 28 01:09:57 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: list,v 1.20 2013/06/26 15:53:48 christos Exp $
+#	$NetBSD: list,v 1.21 2018/01/28 01:09:57 rin Exp $
 
 # external/bsd/less/bin has to be first, otherwise the ramdisk.mk generation fails
 SRCDIRS external/bsd/less/bin bin sbin usr.bin usr.sbin
@@ -42,7 +42,7 @@ PROG	sbin/reboot	sbin/halt
 PROG	sbin/restore	sbin/rrestore
 PROG	sbin/route
 #PROG	sbin/scsictl
-PROG	sbin/shutdown
+#PROG	sbin/shutdown
 #PROG	sbin/slattach
 PROG	sbin/swapctl
 PROG	sbin/umount
@@ -58,9 +58,12 @@ PROG	usr/sbin/chroot
 # init invokes the shell as -sh
 ARGVLN	sh -sh
 
+SPECIAL	disklabel	srcdir	distrib/utils/x_disklabel
 SPECIAL	ed		srcdir	distrib/utils/x_ed
+SPECIAL	fsck_ffs	srcdir	distrib/utils/x_fsck_ffs
 SPECIAL	gzip		srcdir	distrib/utils/x_gzip
 SPECIAL	ifconfig	srcdir	distrib/utils/x_ifconfig
+SPECIAL	newfs		srcdir	distrib/utils/x_newfs
 SPECIAL	ping		srcdir	distrib/utils/x_ping
 SPECIAL	route		srcdir	distrib/utils/x_route
 

Index: src/sys/arch/zaurus/conf/INSTALL
diff -u src/sys/arch/zaurus/conf/INSTALL:1.34 src/sys/arch/zaurus/conf/INSTALL:1.35
--- src/sys/arch/zaurus/conf/INSTALL:1.34	Wed Dec 20 08:10:13 2017
+++ src/sys/arch/zaurus/conf/INSTALL	Sun Jan 28 01:09:58 2018
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.34 2017/12/20 08:10:13 rin Exp $
+# $NetBSD: INSTALL,v 1.35 2018/01/28 01:09:58 rin Exp $
 #
 # INSTALL config file (GENERIC with memory disk root)
 #
@@ -9,7 +9,7 @@ include 	"arch/zaurus/conf/GENERIC"
 options 	MEMORY_DISK_HOOKS	# enable root ramdisk
 options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
 options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
-options 	MEMORY_DISK_ROOT_SIZE=4352	# size of memory disk, in blocks
+options 	MEMORY_DISK_ROOT_SIZE=4096	# size of memory disk, in blocks
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 # for reduce kernel size.

Reply via email to