Source-Changes-HG archive

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

[src/trunk]: src Shrink ramdisk to fit INSTALL kernel within 5MB:



details:   https://anonhg.NetBSD.org/src/rev/8fb65198dd79
branches:  trunk
changeset: 829379:8fb65198dd79
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jan 28 01:09:57 2018 +0000

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

diffstat:

 distrib/zaurus/ramdisk/Makefile |  4 ++--
 distrib/zaurus/ramdisk/list     |  7 +++++--
 sys/arch/zaurus/conf/INSTALL    |  4 ++--
 3 files changed, 9 insertions(+), 6 deletions(-)

diffs (65 lines):

diff -r 2d47ee7b164b -r 8fb65198dd79 distrib/zaurus/ramdisk/Makefile
--- a/distrib/zaurus/ramdisk/Makefile   Sat Jan 27 23:59:17 2018 +0000
+++ b/distrib/zaurus/ramdisk/Makefile   Sun Jan 28 01:09:57 2018 +0000
@@ -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
diff -r 2d47ee7b164b -r 8fb65198dd79 distrib/zaurus/ramdisk/list
--- a/distrib/zaurus/ramdisk/list       Sat Jan 27 23:59:17 2018 +0000
+++ b/distrib/zaurus/ramdisk/list       Sun Jan 28 01:09:57 2018 +0000
@@ -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/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 @@
 # 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
 
diff -r 2d47ee7b164b -r 8fb65198dd79 sys/arch/zaurus/conf/INSTALL
--- a/sys/arch/zaurus/conf/INSTALL      Sat Jan 27 23:59:17 2018 +0000
+++ b/sys/arch/zaurus/conf/INSTALL      Sun Jan 28 01:09:57 2018 +0000
@@ -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 @@
 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.



Home | Main Index | Thread Index | Old Index