Upgrading an i386 machine from amd64.

Nathan Whitehorn nwhitehorn at freebsd.org
Sun Jun 1 21:06:54 UTC 2014


On 06/01/14 13:47, Xin Li wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 6/1/14, 11:56 AM, Nathan Whitehorn wrote:
>> On 06/01/14 10:25, Alfred Perlstein wrote:
>>> Hello hackers.
>>>
>>> Is there a way to build on amd64 and then mount over nfs the
>>> build and src and installworld from an i386 machine?
>>>
>>> The problem seems to be that "install" and "strip" and etc are
>>> built as amd64 binaries so that the installworld will fail.
>>>
>>> Below I have a solution I was going to do a blog post about, but
>>> then realized maybe I'd be leading people down the wrong path.
>>>
>>> Can someone verify that I need to use rsync as opposed to
>>> installworld for this to work?
>> Usually the strategy is to update the kernel first, since you can
>> use an amd64 kernel with i386 world. Then you reboot, then replace
>> world.
> That will not work well about a year ago and I don't think things have
> been improved since then.
>
> The biggest problem was that some system management API (e.g. for use
> with ifconfig(8) or dhclient(8) I don't remember the details) do not
> have proper 32-bit ABI implementations.  It would be great if we can
> have them fixed though.
>

Huh. It works great on PowerPC with 64-bit kernels and 32-bit worlds -- 
has for years. I assumed i386 would be the same way. In any case, I 
guess it's enough to get into single user mode and run installworld?
-Nathan


More information about the freebsd-hackers mailing list