Subject: Tips on making kernel smaller?
To: None <port-cobalt@netbsd.org>
From: Robert P. Thille <rthille@mac.com>
List: port-cobalt
Date: 11/28/2002 05:48:57
I'm using a qube2 as a gateway, so I need the GATEWAY option, and want
IPFILTER_LOG. But when I build with GATEWAY and IPFILTER_LOG and the
ipfilter pseudo device turned on, my kernel comes out at more that
2500000 which the FAQ says is too big. Compressed it's under 1000000,
so I might be ok, but if not, what can I try?
iceqube_root> diff GENERIC rthille_2002-11-27_smaller
92c92
< #options GATEWAY # IP packet forwarding
---
> options GATEWAY # IP packet forwarding
109c109
< #options IPFILTER_LOG # ipmon(8) log support
---
> options IPFILTER_LOG # ipmon(8) log support
253c253
< #pseudo-device ipfilter # IP filter (firewall) and NAT
---
> pseudo-device ipfilter # IP filter (firewall) and NAT
iceqube_root> ls -l ../compile/rthille_2002-11-27_smaller/netbsd
ls -l ../compile/rthille_2002-11-27_smaller/netbsd
-rwxr-xr-x 1 root wheel 2574322 Nov 27 22:48
../compile/rthille_2002-11-27_smaller/netbsd*
iceqube_root> pushd /altroot/boot
/altroot/boot /sys/arch/cobalt/conf
iceqube_root> ls -l netbsd-1.6-rthille_2002-11-27_smaller*
[edited for line length]
root wheel 2574322 Nov 28 05:25 netbsd-1.6-rthille_2002-11-27_smaller*
root wheel 965059 Nov 28 05:26
netbsd-1.6-rthille_2002-11-27_smaller.gz
Thanks,
Robert