From owner-freebsd-ppc@FreeBSD.ORG Sat Mar 14 20:40:10 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93B0A1065673 for ; Sat, 14 Mar 2009 20:40:10 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 2D06A8FC1E for ; Sat, 14 Mar 2009 20:40:09 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from wolfram.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id n2EKe6hr085512 for ; Sat, 14 Mar 2009 21:40:07 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <49BC1626.70106@fgznet.ch> Date: Sat, 14 Mar 2009 21:40:06 +0100 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Subject: cross build world on amd64 install on ppc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 20:40:10 -0000 Hi all, I learned that building a kernel for powerpc on amd64 is straight forward: make -j4 buildlernel TARGET_ARCH=powerpc KERNCONF=GENERIC make installkernel TARGET_ARCH=powerpc KERNCONF=GENERIC DESTDIR=/tmp Then I tar this kernel and scp it to the powerpc machine. Fine. I do this because building a kernel on amd64 takes 4' while on my ppc box it takes about one hour. Now I'd like to do the same for 'buildworld'. I have taken the approach to nfs export the /usr/src and the /usr/obj from the amd64 to the powerpc machine. Here I fail when try to do 'make installkernel'. The 'install' binary is an ELF 64-bit LSB executable, x86-64. Yes, this does not work on powerpc :) First, is this possible to do a buildkernel/buildworld on an amd64 for powerpc and then install it on powerpc? Is the nfs approach dead wrong? If it is possible to do a cross buildworld how do I install it on the ppc machine? Thanks for any pointers. Andreas