Date: Sat, 2 Dec 2006 20:01:24 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Joseph Koshy <joseph.koshy@gmail.com> Cc: freebsd-amd64@freebsd.org Subject: Re: Cross compile world on i386 to x86_64 Message-ID: <20061202170124.GD31897@rambler-co.ru> In-Reply-To: <84dead720612020527k644f67d1h36c715a2cbfd4c53@mail.gmail.com> References: <20061202120938.GC31623@dinsnail.net> <84dead720612020527k644f67d1h36c715a2cbfd4c53@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061202170124.GD31897>