Subject: Re: Loading LKMs at boot yields unresolved symbols, but from commandline it's OK
To: Jeff Rizzo <riz@boogers.sf.ca.us>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-users
Date: 03/04/2005 21:46:14
--UJEqbsikIZBgizPR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 04, 2005 at 09:12:56PM +0100, Quentin Garnier wrote:
> On Fri, Mar 04, 2005 at 10:47:36AM -0800, Jeff Rizzo wrote:
[...]
> > >I'm wondering a bit about the part in /etc/rc.lkm where it adds
> > >-A unconditionally (well, as long as the kernel is readable).  Could
> > >you try with that part commented out?  (It begins with booted_kernel.)
> > >
> > > =20
> > >
> >=20
> > Sure enough, with that part commented out, it loads just fine.  What do
> > you think the best general-purpose solution is?
>=20
> Right now, if -A is passed, ksyms is not used, so indeed the second load
> can't resolve the symbols of the first one.

On the other hand, modload(8) performs exactly what rc.lkm does, so I
think that piece of code in rc.lkm should simply be removed.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQijJFdgoQloHrPnoAQJe8Af/YhXXS99IzxCpAb+wcJLT4D2DnCzOi7Nd
czI/p/a6ls7aTo9DGm36GEHjpIPoQfKcGmcndFvgR8SErgfqhOV1ddsDyn1DlBKl
84pJcoc3M7wUudHIsaeGMzW/Ppp0N+S4a256ShAfbPX7zKTEWdjZfSNJ3s+TTLC7
7G8mJtpqK4IyQnq+gBDQgllzKVtSLhBCle2oTrWb3BmIoTzoaEh09glY+mfBvW6y
+xKv7xb6hDLJHY0AUeGJM/qt6a6xJFrm/b//hcrFtI99E7FobZ2FMBsKtV+4AT84
dw7k9l01P3Ab6X8/ryiFdRZ0TOgWfvH8yG0CE1UzfIKfmdsqkC/jgw==
=kst7
-----END PGP SIGNATURE-----

--UJEqbsikIZBgizPR--