From owner-freebsd-amd64@FreeBSD.ORG Mon Jul 12 23:34:10 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 426C316A4CE for ; Mon, 12 Jul 2004 23:34:10 +0000 (GMT) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DEF043D53 for ; Mon, 12 Jul 2004 23:34:08 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id B1CB3FD15C; Mon, 12 Jul 2004 16:34:07 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99693-03; Mon, 12 Jul 2004 16:34:07 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 24D29FD076; Mon, 12 Jul 2004 16:34:07 -0700 (PDT) From: Sean McNeil To: george+freebsd@m5p.com In-Reply-To: <200407122317.i6CNHUuc015500@m5p.com> References: <200407122317.i6CNHUuc015500@m5p.com> Content-Type: text/plain Message-Id: <1089675245.33747.10.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 12 Jul 2004 16:34:07 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com cc: freebsd-amd64@freebsd.org Subject: Re: How to convert from i386 to amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 23:34:10 -0000 On Mon, 2004-07-12 at 16:17, george+freebsd@m5p.com wrote: > The following are probably all frequently-asked questions, but I haven't > been able to find the answers yet. > > 1. How can I compile an amd64 kernel while running an i386 kernel? The > CPU I'm on is and amd64, if that matters. I started with an i386 installation on my machine and recompiled for amd64. Here is what I did: Made a kernel config file from generic one in /sys/amd64/conf. I called mine AMD64. make TARGET_ARCH=amd64 buildworld make TARGET_ARCH=amd64 KERNCONF=AMD64 buildkernel make TARGET_ARCH=amd64 KERNCONF=AMD64 installkernel cp /libexec/ld-elf.so.1 /libexec/ld-elf32.so.1 reboot into single user mode. make TARGET_ARCH=amd64 installworld This was really a big pain and I'd recommend installing from a CD. I'm also not certain I've captured all the steps above correctly. This is by memory and I didn't document as I performed the steps. My largest problems were with databases. They are not directly compatable and I had to rebuild them (postgres and db41 databases). > 2. Will i386 applications run on an amd64 kernel, or do I have to update > the whole world before I can do anything after installing an amd64 > kernel on this machine? It works to some extent, but i386 support isn't complete. It worked well enough to install over world. The largest thing missing is a correct /libexec/ld-elf32.so.1 and a compat library setup. Linux i386 compatability has also shown up as patches and was working for a few people. It hasn't been mentioned in a while, though. Best of luck. I'm very happy with my amd64 system and hope you get things setup to your satisfaction. Sean