Date: Fri, 23 Dec 2005 00:07:52 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: amd64@FreeBSD.org Subject: Updating i386 in-place to amd64 Message-ID: <20051222220752.GB45319@ip.net.ua>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051222220752.GB45319>