converting 10.3-i386 to 10.3-amd64

Warren Block wblock at wonkity.com
Thu Aug 25 04:26:21 UTC 2016


On Thu, 25 Aug 2016, Robert Huff wrote:

>    I have a machine, whose cpu is an AMD Phenom II, on which I
> recently installed 10.3.  Spectifically:
>
> FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 03:51:29 UTC 2016
> root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>
>    (Question: I thought the installation process was supposed to
> detect the architecture and automatically install the correct
> kernel+world.  Am I mistaken?)

Yes, that's a mistake.  It's why we have separate i386 and amd64 install 
disks.

>    I want to convert this to:
>
> FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 03:51:29 UTC 2016
> root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>
>    in the short term to access all 8 gb of memory, and in the long
> term to jump to -head.
>    I have not changed /usr/src.
>    There are no "make.conf" or "src.conf".
>    Running "make buildworld" produces this:
>
> cd /usr/src; PATH=/sbin:/bin:/usr/sbin:/usr/bin make -m
> /usr/src/share/mk -f Makefile.inc1 TARGET=i386 TARGET_ARCH=i386 buildworld

Right, a buildworld is going to build for the same architecture that 
is installed.  If you have not done much customization yet, the easiest 
and most reliable way to go to amd64 is to just back up data, download 
and install the amd64 version, and restore.  It's possible there is now 
a simple way to convert, but there wasn't the last time I did this, and 
I ended up copying amd64 binaries from another system to get the i386 
one functional enough to build an amd64 kernel and world.


More information about the freebsd-questions mailing list