From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 24 15:10:29 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B2DBDFB for ; Sat, 24 Jan 2015 15:10:29 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFB6EAD9 for ; Sat, 24 Jan 2015 15:10:28 +0000 (UTC) Received: from [93.104.18.206] (helo=c720-r276659) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YF2Lx-00041F-UE for freebsd-hackers@freebsd.org; Sat, 24 Jan 2015 16:10:26 +0100 Date: Sat, 24 Jan 2015 16:10:23 +0100 From: Matthias Apitz To: freebsd-hackers@freebsd.org Subject: Re: make installworld/kernel of an amd64 system into an i386 system Message-ID: <20150124151023.GA2667@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-hackers@freebsd.org References: <20150121121117.GA10645@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150121121117.GA10645@sh4-5.1blu.de> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.18.206 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2015 15:10:29 -0000 El día Wednesday, January 21, 2015 a las 01:11:17PM +0100, Matthias Apitz escribió: > > Hello, > > I actually run on one of my laptops (Acer C720) a very fresh -HEAD > (r276659), but in 32bit; I want to change this to amd64; I produced a > amd64 memstick which boots fine and also has the sources and obj tree which > was used to create the memstick in > > /usr/local/acerc720/src > /usr/local/acerc720/obj-amd64 > > What I now think as update procedure to install amd64 into the laptop > is: > > - boot the amd64 system from USB > - mount the old i386 root in /dev/ada0p2 as /mnt (there is only this one big > file system, /dev/ada0p1 is boot and /dev/ada0p3 is swap) > - run > cd /usr/local/acerc720/src > MAKEOBJDIRPREFIX=/usr/local/acerc720/obj-amd64 export MAKEOBJDIRPREFIX > make installworld DESTDIR=/mnt > make installkernel DESTDIR=/mnt > ... The 'make install...' failed and it took me some time to understand the reason. For the cross-compilation on the i386 system I have had to build like this: # cd /usr/local/acerC720/src # mkdir /usr/local/acerC720/obj-amd64 # MAKEOBJDIRPREFIX=/usr/local/acerC720/obj-amd64 # export MAKEOBJDIRPREFIX # make buildworld TARGET=amd64 TARGET_ARCH=amd64 # make buildkernel TARGET=amd64 TARGET_ARCH=amd64 If you later use the obj-tree on the bootet 64 bit system to install into the new disk, one must set the MAKEOBJDIRPREFIX to MAKEOBJDIRPREFIX=/usr/local/acerC720/obj-amd64/amd64.amd64 and all will be installed fine. matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 1989-2014: The Wall was torn down so that we go to war together again. El Muro ha sido derribado para que nos unimos en ir a la guerra otra vez. Diese Grenze wurde aufgehoben damit wir gemeinsam wieder in den Krieg ziehen. -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 1989-2014: The Wall was torn down so that we go to war together again. El Muro ha sido derribado para que nos unimos en ir a la guerra otra vez. Diese Grenze wurde aufgehoben damit wir gemeinsam wieder in den Krieg ziehen.