From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 2 12:09:59 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 431E016A415 for ; Sat, 2 Dec 2006 12:09:59 +0000 (UTC) (envelope-from michael@heinz.dinsnail.net) Received: from heinz.dinsnail.net (heinz.dinsnail.net [217.160.166.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2790143CC6 for ; Sat, 2 Dec 2006 12:09:33 +0000 (GMT) (envelope-from michael@heinz.dinsnail.net) Received: from heinz.dinsnail.net (heinz.dinsnail.net [127.0.0.1]) by heinz.dinsnail.net (8.13.8/8.13.7) with ESMTP id kB2C9die000604; Sat, 2 Dec 2006 13:09:39 +0100 Received: (from michael@localhost) by heinz.dinsnail.net (8.13.8/8.13.7/Submit) id kB2C9dTf000603; Sat, 2 Dec 2006 13:09:39 +0100 Date: Sat, 2 Dec 2006 13:09:39 +0100 From: Michael Weiser To: freebsd-amd64@freebsd.org Message-ID: <20061202120938.GC31623@dinsnail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 X-MailScanner: Found to be clean X-MailScanner-From: michael@heinz.dinsnail.net Subject: Cross compile world on i386 to x86_64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2006 12:09:59 -0000 Hello, my trusty P-III died on me last week and I've bought an Athlon 64 replacement. I'm quite sure I'll get my installed FreeBSD-CURRENT to run on it in 32bit mode (i386). But to fully exploit the architecture I'd like to run it in 64bit mode (amd64). Now I'm wondering: Can I avoid reinstalling the system with amd64 binaries by cross-compiling world and kernel for amd64 on the installed i386 FreeBSD-CURRENT? I'm thinking like this: - make buildkernel ARCH=amd64 (or the like) - make installkernel - boot the 64bit kernel with the old 32bit userland - make buildworld - make installworld - mergemaster I'm not sure: - how to get a compiler that can produce an amd64 kernel with make buildkernel - if the 32bit userland will run on a 64bit kernel - if make buildworld for amd64 will work with a 32bit userland Is something like this supposed to work? Has anyone done it? Thanks in advance. -- bye, Micha Don't panic!