From owner-freebsd-sparc64@FreeBSD.ORG Fri Jan 30 04:44:07 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CE6916A4CE for ; Fri, 30 Jan 2004 04:44:07 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 655B943D2D for ; Fri, 30 Jan 2004 04:44:05 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])i0UChtL26106; Fri, 30 Jan 2004 13:43:55 +0100 (MET) Date: Fri, 30 Jan 2004 13:43:55 +0100 (CET) From: Harti Brandt To: Simon Coggins In-Reply-To: <20040130123606.GB36245@uow.edu.au> Message-ID: <20040130134041.L764@beagle.fokus.fraunhofer.de> References: <20040130123606.GB36245@uow.edu.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-sparc64@freebsd.org Subject: Re: Question about cross compiling sparc64 on i386 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 12:44:07 -0000 On Fri, 30 Jan 2004, Simon Coggins wrote: SC>Does anyone have a how-to or quick instructions on how to go about SC>cross compiling sparc64 world/kernel on i386. I assumed it would be as SC>easy as cd /usr/src && make TARGET_ARCH=sparc64 ... SC> SC>Once it finished the installkernel on the ultra 5 didn't work becuase SC>it couldn't find some modules it was looking to install. And SC>installworld failed because it didn't build the tools to install (ala SC>install binary). SC> SC>So if someone can point me in the right direction that would be good! I did MAKEOBJDIRPREFIX=/usr/obj/sparc TARGET=sparc64 TARGET_ARCH=sparc64 make __MAKE_CONF=/dev/null makeworld MAKEOBJDIRPREFIX=/usr/obj/sparc TARGET=sparc64 TARGET_ARCH=sparc64 make __MAKE_CONF=/dev/null installworld DESTDIR=/usr/ultra same for buildkernel and installkernel to make a diskless boot world for my ULTRA1. This seems to work, except, that the resulting world has some problems like /bin/ls dumping core. I don't know whether this was a pilot error or there is something wrong with cross compilation harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org