From owner-freebsd-current@FreeBSD.ORG Tue Sep 20 01:10:10 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 323C8106564A for ; Tue, 20 Sep 2011 01:10:10 +0000 (UTC) (envelope-from varga.michal@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id B85BA8FC14 for ; Tue, 20 Sep 2011 01:10:09 +0000 (UTC) Received: by fxg9 with SMTP id 9so53105fxg.13 for ; Mon, 19 Sep 2011 18:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:organization :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=XoZC/WdUU1VgtbT8NuBYGlZg5EinocpdeKuzv00RUok=; b=Mel/XxiZZQXeE4ZZgfZVWHgSRGTlU6Ziyt/dW3iYBu/PiHXDqy2YAWAXq4rsiODTxj KjubUvSoVqZ5eiXl/qFk62qJ9BluL/fUHGOwCo9cMfpI7XyGBy1XmAPFCVdyZIoCPoxC 7GV/U6tA27Ng7oX0NHC0lCxtygYW87xZYK1gM= Received: by 10.223.39.154 with SMTP id g26mr346890fae.7.1316481008604; Mon, 19 Sep 2011 18:10:08 -0700 (PDT) Received: from [10.0.101.2] (254.166.broadband10.iol.cz. [90.177.166.254]) by mx.google.com with ESMTPS id h21sm11708407fab.25.2011.09.19.18.10.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 18:10:07 -0700 (PDT) From: Michal Varga To: Antonio Olivares In-Reply-To: References: <1316359940.1744.28.camel@xenon> Content-Type: text/plain; charset="UTF-8" Organization: Stonehenge Date: Tue, 20 Sep 2011 03:10:04 +0200 Message-ID: <1316481004.1744.62.camel@xenon> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org 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:10:10 -0000 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). 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)