Subject: Re: Using a Stripped Kernel
To: <>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: port-i386
Date: 06/05/2003 13:09:33
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Thu, Jun 05, 2003 at 08:30:44PM +1000, Jenkins, Graham K [IBM GSA] wrote:
> Guys, I'm using a number of old 486's with 16Mb
> memory as Xterminals at my place, running NetBSD
> 1.6.1. I'm using a cut-down kernel so as to improve
> startup and response times for X.
>=20
> I've found I can get a further 10% improvement by
> stripping that kernel.  But I get a couple of
> diagnostics at boot time, like:
>=20
>   savecore: /netbsd: kvm_nlist: bad namelist
>   savecore: /netbsd: _dumpdev:  not in namelist
>=20
> So .. is there a way I can compile an even smaller
> kernel so it doesn't generate these messages?

No. Those messages are generated by the safecore utility, not the kernel.

If you want to suppress them (safecore can't work without symbols in the
kernel), don't run safecore. E.g.,=20

echo safecore=3DNO >> /etc/rc.conf

You didn't mention what other messages you see. Note that some useful
utilities also use kernel symbols to get at kernel variables via=20
/dev/kmem . Those can't fully work with a stripped kernel - I suspect
you won't be able to suppress all those messages, at least not with an=20
1.6-ish NetBSD.

Regards,
	-is

--BXVAT5kNtrzKuDFl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPt8kYDCn4om+4LhpAQG0BwgAtioZRHDfdHZjlOfb8NOCealD071KCVGf
O0jXxxtOvLYmn+Qsqks1y3KlhKZVSlyw8PMSuHxGV06k4+ACWIHttbcQUutqFiPw
8tfO7gwiw4C+m03Ytiow3yiYuoD50t/0a4U42kMeEntUSzYFTzphUZ8aRdbrAo/s
ZTGLsWCEu+WapvR/tJA0iivjpC4P20EWX1VbOqejNmseU0wMfJUnR3utu5NvkNp4
97dbrVExmFYdPm8XL8E33tGUh2O1eQXJiIbISP/TNLyNp2GCkab5G21hBHI6ofXf
cwcY+1UFYF/IlJFyxOQswzyKay7Roo6B2g6/Uqc4kc/ED7hQ6Sbp5w==
=lRHb
-----END PGP SIGNATURE-----

--BXVAT5kNtrzKuDFl--