From owner-freebsd-current@freebsd.org Wed Jun 1 16:30:07 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E6E5B619AA for ; Wed, 1 Jun 2016 16:30:07 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6EF19AA for ; Wed, 1 Jun 2016 16:30:07 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 621E6B977; Wed, 1 Jun 2016 12:30:06 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org, Konstantin Belousov Subject: Re: Unable to load freshly-built nvidia.ko @r300994. Date: Wed, 01 Jun 2016 09:21:38 -0700 Message-ID: <8607493.AginXhE5HD@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20160530185227.GZ1080@albert.catwhisker.org> References: <20160530123654.GW1080@albert.catwhisker.org> <20160530160342.GW38613@kib.kiev.ua> <20160530185227.GZ1080@albert.catwhisker.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 01 Jun 2016 12:30:06 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 16:30:07 -0000 On Monday, May 30, 2016 11:52:27 AM David Wolfskill wrote: > 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 module 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 > > > > 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 Just as a followup, this sequeunce will result in the nvidia-drier always being stale. You have to build the nvidia-driver after installworld for it to use up-to-date kernel headers (installkernel only installs the kernel and modules, it does not update the headers in /usr/include). -- John Baldwin