From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 22 22:11:28 2005 Return-Path: X-Original-To: amd64@FreeBSD.org 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 C098416A41F for ; Thu, 22 Dec 2005 22:11:28 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 216CF43D5D for ; Thu, 22 Dec 2005 22:11:10 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBMMB2Ea079787 for ; Fri, 23 Dec 2005 00:11:02 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 03325-11-2 for ; Fri, 23 Dec 2005 00:10:59 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jBMM7gbe079699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 23 Dec 2005 00:07:43 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jBMM7qHO030924 for amd64@FreeBSD.org; Fri, 23 Dec 2005 00:07:52 +0200 (EET) (envelope-from ru) Date: Fri, 23 Dec 2005 00:07:52 +0200 From: Ruslan Ermilov To: amd64@FreeBSD.org Message-ID: <20051222220752.GB45319@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: Subject: Updating i386 in-place to amd64 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: Thu, 22 Dec 2005 22:11:28 -0000 --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there, Yesterday, I was playing updating the i386 6.0-STABLE in-place to amd64 (the system was initially running on i386 core, then the disk was moved to the Opteron server). It succeeded, but there were some fun. The idea I had is to: 1) cross-build world and kernel 2) install kernel 3) install32 4) reboot 5) install world 6) update /etc etc. 7) remove i386 dust 1-3 went fine. On reboot, I was hoping that COMPAT_IA32 would be enough to run shell, make and mount* tools. I booted into single user. When it asked me to press ENTER for /bin/sh, I did this; it failed with SIGBUS. I have waited some seconds, and when it asked it again, this time it worked (I verified several times, and it always worked like this). i386 mount(8) did NOT work, so I had to use the "rescue" binary from /usr/obj to NFS mount /usr/src. After that, I fooled make(1) into thinking it runs on i386 and did an install of cross-built amd64 world (env MACHINE_ARCH=3Di386 MACHINE=3Di386 TARGET_ARCH=3Damd64 make installworld). This worked. I then updated /etc etc. from i386 to amd64 (by hand), and now I'm running a native amd64 world+kernel. P.S. It would be nice to be able to run i386 world under the amd64 kernel, but a lot of things don't just work (of course mainly syscalls). P.P.S. It would be nice to win a prize. :-) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDqyO4qRfpzJluFF4RAprdAJ9HkB0oJKA103w/PHmJ3o/OmkSHQQCfXJUy a5SPDGK5UuWNwaZkRoSVYec= =BXJN -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb--