From owner-freebsd-current@FreeBSD.ORG Tue Sep 20 01:23:34 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 124DB106564A for ; Tue, 20 Sep 2011 01:23:34 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by mx1.freebsd.org (Postfix) with ESMTP id B61118FC13 for ; Tue, 20 Sep 2011 01:23:33 +0000 (UTC) X-AuditID: 1209190e-b7c60ae000000a26-ef-4e77ea816451 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 77.9A.02598.18AE77E4; Mon, 19 Sep 2011 21:21:05 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id p8K1NWga021211; Mon, 19 Sep 2011 21:23:32 -0400 Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p8K1NTSh022845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Sep 2011 21:23:32 -0400 (EDT) Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id p8K1NS9v011575; Mon, 19 Sep 2011 21:23:28 -0400 (EDT) Date: Mon, 19 Sep 2011 21:23:27 -0400 (EDT) From: Benjamin Kaduk To: Michal Varga In-Reply-To: <1316481004.1744.62.camel@xenon> Message-ID: References: <1316359940.1744.28.camel@xenon> <1316481004.1744.62.camel@xenon> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEIsWRmVeSWpSXmKPExsUixCmqrNv4qtzPYPlBbos5bz4wWXz8qmrR 8+8rswOzx4xP81k8ds66yx7AFMVlk5Kak1mWWqRvl8CV0X3+EXPBVbmKY5eOMjYwrpXoYuTk kBAwkdgxvZ0VwhaTuHBvPVsXIxeHkMA+RonmWXeZIJwNjBInG75BOQeYJBZM/w5V1sAosWdJ ExtIP4uAtsS/mX+YQGw2ARWJmW82gsVFBDQl5j/aDxZnFvCW2HCtmxnEFhawlPjXchDI5uDg FNCVOHpJGyTMK2AvsfL8F3aI+dcZJT5ffAU2R1RAR2L1/iksEEWCEidnPmGBmGkpce7PdbYJ jIKzkKRmIUktYGRaxSibklulm5uYmVOcmqxbnJyYl5dapGusl5tZopeaUrqJERy0knw7GL8e VDrEKMDBqMTDO3NhuZ8Qa2JZcWXuIUZJDiYlUV4pYMgL8SXlp1RmJBZnxBeV5qQWH2KU4GBW EuEt2AaU401JrKxKLcqHSUlzsCiJ867e4eAnJJCeWJKanZpakFoEk5Xh4FCS4F0CMlSwKDU9 tSItM6cEIc3EwQkynAdoeAdIDW9xQWJucWY6RP4Uo6KUOG8xSEIAJJFRmgfXC0sqrxjFgV4R 5p0AUsUDTEhw3a+ABjMBDS7zKAEZXJKIkJJqYDQ6/frXiY9iuft0jqnanjA4fsvi0VaRaWVJ Za6X93z76D7Tv3+x2csU4Yip8hk8vddMFwQaO86ICX36TdF8+9yPKn0pPHY95Uaq/19V+jul nee/4fE7/smSNZatjFVLGuf83343IHrhz2ib0uPqRYsdo7hehezvZy4RTtGuOSe2VT7y9t+a A0osxRmJhlrMRcWJAM9QiqkFAwAA Cc: freebsd-current@freebsd.org, Antonio Olivares Subject: Re: How does one install kernel sources and base X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 20 Sep 2011 01:23:34 -0000 On Tue, 20 Sep 2011, Michal Varga wrote: > On Mon, 2011-09-19 at 19:22 -0500, Antonio Olivares wrote: >> Michal, >> >> Thank you very much for your detailed instruction. I was able to get >> all of the sources and built nvidia driver successfully :) >> >> However, when I run kldload nvidia, I get a mismatch with the running >> kernel and an incompatible ?????. I cannot post exact error as the >> machine gives me no X :(, I checked to see if enabling hald and dbus >> at /etc/rc.conf would make a difference and they have not :(, I have >> also tried nouveau and it also does not work. No working X on FreeBSD >> 9.0 BETA 2 amd64, ports updated to latest, xorg, xorg-server, xfce4, >> ... I will post in the thread I created on this issue. >> >> Regards, >> >> Antonio > > Some details about the "incompatible ?????" error would be quite useful > as without an actual (and exact) error message it's only guessing... > > But it is possible that your downloaded (latest -HEAD) sources are no > longer compatible with your currently running OS, though there being > like about a week difference, I find it somewhat unlikely (but always > possible). It is in fact quite likely, as a bunch of kernel functions corresponding to system calls have been renamed in the interim by kmacy, around r225617. I believe the quoted text below to be accurate, for the OPs choice of actions. -Ben Kaduk > > If that's the case, you have two possible routes to take: > > You can either bring your system up to date corresponding to the latest > sources; that is, rebuilding and installing new FreeBSD kernel and > world. That should get rid of any incompatibilities you currently > experience. It's a pretty straightforward process which in your case > amounts to just about - > > # cd /usr/src > # make buildworld installworld kernel > > - but note that the above mentioned IS NOT an officially supported > procedure and you are first REQUIRED to read FreeBSD Handbook and > understand the basics of building and updating FreeBSD. I just mention > it to illustrate how simple the procedure generally is. But again, don't > run it blindly. When unsure, always use the officially supported, while > somewhat lenghtier, procedure described in FreeBSD Handbook. > > Now the other possible route that doesn't involve building and updating > FreeBSD at all, is to download the sources that closely match your > currently running system. > > As far as I know (and I wasn't able to find), there is no CVS tag for > BETA2, so you can't pull the exact sources that way, but you should be > able to get very close with: > > $ uname -a > > - and notice when the kernel was built, which was hopefully very close > to the time when the sources were pulled from CVS (this is more or less > only a guess, so someone involved in release engineering might be of > more help with this issue, if there even is any). > > To do this, you just need to edit your supfile and include the specific > date from when to pull the sources: > > That is, replacing the line: > > *default release=cvs tag=. > > With: > > *default release=cvs tag=. date=2011.09.??.??.??.?? > > (Just fill in the missing dd, hh, mm, ss values based on the date you > already know from uname.) > > This modified supfile will let you pull sources that should be a very > close - if not perfect - match to your current system. You can then > rebuild your drivers (i.e. that non-working nvidia module) the regular > way. By my humble estimate, that should be enough to fix your issue. > > m. > > > -- > Michal Varga, > Stonehenge (Gmail account) > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >