Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2016 11:52:27 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Unable to load freshly-built nvidia.ko @r300994.
Message-ID:  <20160530185227.GZ1080@albert.catwhisker.org>
In-Reply-To: <20160530160342.GW38613@kib.kiev.ua>
References:  <20160530123654.GW1080@albert.catwhisker.org> <20160530160342.GW38613@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--rPF8rPXpDlNr1aSW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 30, 2016 at 07:03:42PM +0300, Konstantin Belousov wrote:
> ...
> > May 30 11:29:31 g1-252 root: /etc/rc: WARNING: Unable to load kernel mo=
dule linux64
> > May 30 11:29:31 g1-252 kernel: KLD linux64.ko: depends on kernel - not =
available or version mismatch
> > May 30 11:29:31 g1-252 kernel: linker_load_file: Unsupported file type
>=20
> Your kernel was built from older sources than you used to build the nvidia
> module.  I mean, the kernel headers used for the module build where
> updated comparing with binaries that are installed into /boot/kernel.

Hmmm...  I'm ... unlcear ... on how that could have happened.

I've copied the typescript (from the build) to
http://www.catwhisker.org/~david/FreeBSD/head/typescript_r300994; the
"_bw" alias (ultimately) expands to:

setenv TMPDIR /tmp && \
 id && \
 mount && \
 cd /usr/src && \
 uname -a && \
 date && \
 make -j16 buildworld && \
 date && \
 make -j16 buildkernel && \
 date && \
 rm -fr /boot/modules.old && \
 cp -pr /boot/modules{,.old} && \
 make installkernel && \
 date && \
 pushd /usr/ports && \
 pushd x11/nvidia-driver && \
 make clean ; popd ; popd && \
 date && \
 mergemaster -U -u 0022 -p && \
 date && \
 rm -fr /usr/include.old && \
 date && \
 mv /usr/include{,.old} && \
 date && \
 rm -fr /usr/share/man && \
 date && \
 make installworld && \
 date && \
 mergemaster -F -U -u 0022 -i && \
 date && \
 make delete-old && \
 date && \
 df -k

I have some errands/chores to deal with so I won't be able to respond
right away, but I would like to resolve the issue.

I received one suggestion to try reverting r300990;, which I did
(without a change in the symptoms).

I then reverted the sources back to r300951 and performed exactly thhe
same type of build (that is, with 'WITH_META_MODE=3Dyes' in
/etc/src-env.conf; no attempt to use -DNO_CLEAN; build world; build
kernel; install kernel; install world; mergemaster...).  That's working
Just fine; kldstat shows:

g1-252(11.0)[6] kldstat=20
Id Refs Address            Size     Name
 1   37 0xffffffff80200000 1e0a3a8  kernel
 2    1 0xffffffff8200c000 232f8    geom_eli.ko
 3    2 0xffffffff82030000 9d6d8    linux.ko
 4    4 0xffffffff820ce000 d1f0     linux_common.ko
 5    1 0xffffffff820dc000 4c58     coretemp.ko
 6    1 0xffffffff820e1000 546b0    iwn5000fw.ko
 7    1 0xffffffff82136000 b67b50   nvidia.ko
 8    1 0xffffffff82c9e000 b838     filemon.ko
 9    1 0xffffffff82e21000 f01c     tmpfs.ko
10    1 0xffffffff82e31000 5959     fdescfs.ko
11    1 0xffffffff82e37000 a9e8     linprocfs.ko
12    1 0xffffffff82e42000 39671    linux64.ko
g1-252(11.0)[7]=20

Note thaht linux64.ko shows up here, while in the r300994 case,
linux64.ko would not load (which, I believe, is why nvidia.ko wouldn't
load).

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous coward=
s.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--rPF8rPXpDlNr1aSW
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJXTIvrXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XwgEH/0+VctBXjwLBMTvOSVvu8qt1
NwRFrsx8fCCHtFBhMiCsKMNRsHTbfTetvw3vEBpdUlNHPd/vs0XSSf61NlY1U/Ny
WwigFZCLixlGwfA+CNbsmlO6uMCEPxCPTINCvMJP/oL+Pt6ImDOY/5ksvwpHTLBe
+zZWp5Bs5jwgNlQ7fPDyXIJSAth9mXQQRXmqT8he8njIJ4gHc+gc84HcxorbljeT
4LkGOimifNSJXsqZnGnFBuF1varaJf/r15OtmZo7BY5ujQoayzuWfcE8YbhX7HTB
V5cz0RaAXbNbwFFRxUE1fVVJm0dFZu3KJ/TFzQvzA3n9aJxeBgouUgElGoNbrBI=
=tdJH
-----END PGP SIGNATURE-----

--rPF8rPXpDlNr1aSW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160530185227.GZ1080>