From owner-freebsd-questions@FreeBSD.ORG Wed Nov 4 04:32:23 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BE101065679 for ; Wed, 4 Nov 2009 04:32:23 +0000 (UTC) (envelope-from matts@bmihosting.com) Received: from mail.bmihosting.com (bmihosting.com [66.55.146.158]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1E08FC1A for ; Wed, 4 Nov 2009 04:32:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.bmihosting.com (Postfix) with ESMTP id 2FB0D8A4373; Thu, 29 Oct 2009 21:11:17 -0800 (PST) X-Virus-Scanned: amavisd-new at bmihosting.com Received: from mail.bmihosting.com ([127.0.0.1]) by localhost (spark.bmihosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kGT7axTeeNBz; Thu, 29 Oct 2009 21:11:16 -0800 (PST) Received: from [192.168.15.2] (cpe-66-27-116-189.san.res.rr.com [66.27.116.189]) by mail.bmihosting.com (Postfix) with ESMTPA id E77F98A410E; Thu, 29 Oct 2009 21:11:15 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Matt Szubrycht In-Reply-To: <4AEA62E6.1080506@gehlbach.com> Date: Thu, 29 Oct 2009 22:11:14 -0700 Content-Transfer-Encoding: 7bit Message-Id: <0A7ECB22-0CF9-44CF-BD37-7ED072F65FB1@bmihosting.com> References: <4AEA62E6.1080506@gehlbach.com> To: Richard Gehlbach X-Mailer: Apple Mail (2.1076) X-Virus-Scanned: ClamAV using ClamSMTP Cc: FreeBSD Questions Subject: Re: Rebuild instructions for amd64 systems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2009 04:32:23 -0000 Hi Richard, Kernel recompilation part of the handbook is fairly straightforward and should walk you through step-by-step without any snags: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html Just remember to use amd64 instead i386 in the examples @ the link above. You will need full source tree to play with kernel (sysinstall to the rescue if you don't). Disclaimer - the below worked for me multiple times and may or may not work for you. If you decide to follow the steps outlined below and it breaks your box, spills your coffee or converts the datacenter into a recycling center, you are responsible for it and I cannot be held accountable in any way. In other words - use at your own risk. The way I do it (6.0-RELEASE) - at this point you must be root: cd mkdir kernels cd /usr/src/sys/amd64/conf cp GENERIC ~/kernels/GENERIC.ORIG cp GENERIC NEWKERNEL vim NEWKERNEL, search for ident GENERIC and change to NEWKERNEL then, add the following line below all other 'options' lines: options PAE # large memory (>4G) support then, find and comment out these two lines to avoid a conflict with PAE: device adv # Advansys SCSI adapters device adw # Advansys wide SCSI adapters I am not sure about the Advansys conflict in versions newer than 6.0. A total of 4 lines to edit on of my stock 6.0-RELEASE GENERIC kernel. Then: cd /usr/src make buildkernel KERNCONF=NEWKERNEL if compiles, install: make installkernel KERNCONF=NEWKERNEL once that's done, reboot and you should see your new kernel Here's a diff from my 6.0: [root@banksy /usr/src/sys/i386/conf]# diff BANKSYPAE GENERIC 25c25 < ident BANKSYPAE --- > ident GENERIC 65c65 < options PAE # 2006-12-12 Large memory support matts@bmihosting.com --- > 96,97c96,97 < # conflicts with PAE device adv # Advansys SCSI adapters < # conflicts with PAE device adw # Advansys wide SCSI adapters --- > device adv # Advansys SCSI adapters > device adw # Advansys wide SCSI adapters Good luck. Cheers, Matthew Szubrycht On Oct 29, 2009, at 8:52 PM, Richard Gehlbach wrote: > I am installing FreeBSD 7.2 / amd64 on a new server (HP DL370 G6) > with 2 quad Xeon processors and 16GB memory. I have worked with the > i386 versions since version 3.x, but this is the first server large > enough to need amd64. > > I have been trying to determine the correct procedures for > rebuilding the world and kernel. I have not been able to find a > location that had step by step instructions, similar to the > handbook, for properly working with the amd64 version. Searches > have turned up so many fragments of what needs to be done, that I > cannot feel confident trying to put the pieces together. > > I need instructions for the command line compile options, conf file > additions, and any special instructions. > > If anyone can point me to some applicable links or some specific > instructions, it would be appreciated. > > TIA > Richard > > -- > Richard D. Gehlbach Gehlbach Consulting Services > rdgehlba@gehlbach.com 3321 Pepperhill Ct. > 859.269.6658 Fax 859.266.7446 Lexington, KY 40502 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org > "