From owner-freebsd-questions@freebsd.org Mon Jul 4 14:28:32 2016 Return-Path: Delivered-To: freebsd-questions@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 DCD99B911D0 for ; Mon, 4 Jul 2016 14:28:32 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE07327F4 for ; Mon, 4 Jul 2016 14:28:32 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-209-65.knology.net [216.186.209.65] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id u64ESOSf001469 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 4 Jul 2016 09:28:25 -0500 Subject: Re: A question about downloading FreeBSD kernel code References: <2016070420234846698317@chinadtrace.org> Cc: freebsd-questions From: "William A. Mahaffey III" Message-ID: Date: Mon, 4 Jul 2016 09:33:54 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 14:28:33 -0000 On 07/04/16 09:25, Warren Block wrote: > On Mon, 4 Jul 2016, Nan Xiao wrote: > >> Hi all, >> >> I want to install FreeBSD kernel source files, and my FreeBSD kernel >> version is: >> >> # freebsd-version -k >> 10.3-RELEASE-p4 >> >> But from ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/, there is >> only 10.3-RELEASE code. >> So is it mapping to my kernel version (10.3-RELEASE-p4)? Or where >> should I download the right >> 10.3-RELEASE-p4 code? >> >> Thanks very much in advance! > > Usually, uname -a will show the revision number of the code in use. > That revision number can be used to check out the correct version of > the source from the repository. For example, on a 10-STABLE system I > have here: > > uname -a > FreeBSD lightning 10.3-STABLE FreeBSD 10.3-STABLE #0 r302243: Mon Jun > 27 19:27:54 MDT 2016 root@lightning:/usr/obj/usr/src/sys/LIGHTNING amd64 > > So this is built from revision 302243 of the source. > > If /usr/src exists, it is deleted to make sure there is no old source > in there: > > rm -rf /usr/src > > Then check out the source for that revision. I use 'svn' here because > I have installed the Subversion port, but svnlite is in the base > system and usually works the same. > > Source for a -RELEASE system will come from the releng branch, so your > checkout will look like this (the nnnnnn coming from the uname -a > output): > > svn checkout -r nnnnnn https://svn.freebsd.org/base/releng/10.3 /usr/src > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Did that (revision serializing) start w/ 10.n ? I don't see that on my 9.3R box: [wam@kabini1, ~, 9:32:26am] 490 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed Jan 13 17:55:39 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [wam@kabini1, ~, 9:34:02am] 491 % -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.