From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 2 17:01:22 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 92A0B16A407 for ; Sat, 2 Dec 2006 17:01:22 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E9F343CA7 for ; Sat, 2 Dec 2006 17:00:58 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id F0AA06B77; Sat, 2 Dec 2006 20:01:18 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id CE75B65B4; Sat, 2 Dec 2006 20:01:18 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kB2H1O7D032146; Sat, 2 Dec 2006 20:01:24 +0300 (MSK) (envelope-from ru) Date: Sat, 2 Dec 2006 20:01:24 +0300 From: Ruslan Ermilov To: Joseph Koshy Message-ID: <20061202170124.GD31897@rambler-co.ru> References: <20061202120938.GC31623@dinsnail.net> <84dead720612020527k644f67d1h36c715a2cbfd4c53@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gE7i1rD7pdK0Ng3j" Content-Disposition: inline In-Reply-To: <84dead720612020527k644f67d1h36c715a2cbfd4c53@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: freebsd-amd64@freebsd.org Subject: Re: 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 17:01:22 -0000 --gE7i1rD7pdK0Ng3j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 02, 2006 at 06:57:32PM +0530, Joseph Koshy wrote: > >Can I avoid reinstalling the system with amd64 binaries by > >cross-compiling world and kernel for amd64 on the installed > >i386 FreeBSD-CURRENT? >=20 > Yes, it is possible, do check the archives for the details. >=20 We've been doing this "upgrade" last week; compared to the last time I checked it, the 32-bit compatibility only improved, so the whole process was much simpler, and basically was like this: - cross-compile amd64 world and kernel on i386 - install the amd64 kernel - reboot with the amd64 kernel and i386 world into single user mode. At this point, the dynamically linked i386 binaries could not be used because ld-elf32.so.1 is not yet available, so we used /rescue binaries to do what's needed (re-mount root file system r/w, mount other file systems, etc.) - after that, we installed the amd64 world by faking it into thinking that it's running on the i386 box and cross-install to amd64 (because object directories are layed out for this during the build): env MACHINE_ARCH=3Di386 MACHINE=3Di386 \ make TARGET_ARCH=3Damd64 \ DESTDIR=3D/ installworld - after that, run mergemaster(8) to update /etc, and you should be able to boot into amd64 multiuser mode. I wouldn't recommend this procedure for those not familiar with the internals of the build process. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --gE7i1rD7pdK0Ng3j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFcbFkqRfpzJluFF4RAn9sAKCSSDahfSZsB8dXEBTIKB1fm39psACcCPel PUDOYJl/dtkRR3jxE6qiMgs= =/hnF -----END PGP SIGNATURE----- --gE7i1rD7pdK0Ng3j--