From owner-freebsd-questions@freebsd.org Thu Aug 25 04:26:21 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F99DBBCECF for ; Thu, 25 Aug 2016 04:26:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 702DC1A8C for ; Thu, 25 Aug 2016 04:26:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u7P4QJTW026394 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 24 Aug 2016 22:26:19 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u7P4QJS1026391; Wed, 24 Aug 2016 22:26:19 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 24 Aug 2016 22:26:19 -0600 (MDT) From: Warren Block To: Robert Huff cc: freebsd-questions@freebsd.org Subject: Re: converting 10.3-i386 to 10.3-amd64 In-Reply-To: <57BE6D46.4080408@rcn.com> Message-ID: References: <57BE6D46.4080408@rcn.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 24 Aug 2016 22:26:19 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 04:26:21 -0000 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@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@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.