Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2006 13:09:39 +0100
From:      Michael Weiser <michael@dinsnail.net>
To:        freebsd-amd64@freebsd.org
Subject:   Cross compile world on i386 to x86_64
Message-ID:  <20061202120938.GC31623@dinsnail.net>

next in thread | raw e-mail | index | archive | help
Hello,

my trusty P-III died on me last week and I've bought an Athlon 64
replacement. I'm quite sure I'll get my installed FreeBSD-CURRENT to run
on it in 32bit mode (i386). But to fully exploit the architecture I'd
like to run it in 64bit mode (amd64). Now I'm wondering:

Can I avoid reinstalling the system with amd64 binaries by
cross-compiling world and kernel for amd64 on the installed i386 FreeBSD-CURRENT?

I'm thinking like this:

- make buildkernel ARCH=amd64 (or the like)
- make installkernel
- boot the 64bit kernel with the old 32bit userland
- make buildworld
- make installworld
- mergemaster

I'm not sure:

- how to get a compiler that can produce an amd64 kernel with make
  buildkernel
- if the 32bit userland will run on a 64bit kernel
- if make buildworld for amd64 will work with a 32bit userland

Is something like this supposed to work? Has anyone done it?

Thanks in advance.
-- 
bye, Micha
Don't panic!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061202120938.GC31623>