From owner-freebsd-ppc Sun Feb 23 16:50:32 2003 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E584037B401 for ; Sun, 23 Feb 2003 16:50:30 -0800 (PST) Received: from gt3.OntheNet.com.au (nt.com.au [203.13.70.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D83C43FA3 for ; Sun, 23 Feb 2003 16:50:29 -0800 (PST) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-203-45-238-180.qld.bigpond.net.au [203.45.238.180]) by gt3.OntheNet.com.au (8.12.6/8.12.6) with ESMTP id h1O0oVVU065417 for ; Mon, 24 Feb 2003 10:50:32 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <3E596CC6.4A717848@freebsd.org> Date: Mon, 24 Feb 2003 10:52:22 +1000 From: Peter Grehan X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ppc@freebsd.org Subject: FreeBSD/PPC cross-build instructions. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's the cross-build/install procedure I use, taken from a posting Jake did to the sparc64 list. Firstly, work out what build flags are needed. From the intersection of the two sets that Benno and I are using bflags is "-DNO_BIND -DNOINFO -DNOGAMES -DNOPROFILE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNOFORTH -DNO_FORTH" make TARGET_ARCH=powerpc buildworld make TARGET_ARCH=powerpc buildkernel Make sure DESTDIR exists su cd ./etc make TARGET_ARCH=powerpc distrib-dirs DESTDIR= make TARGET_ARCH=powerpc distribution DESTDIR= cd .. make TARGET_ARCH=powerpc installworld DESTDIR= touch /boot/device.hints make TARGET_ARCH=powerpc installkernel This will create a populated root filesystem that can be used for NFS root mounting, building a CDROM image, or untarring onto a newfs'd disk partition. Now, I'm sure that in this process there are some files that haven't made it into the CVS repo, so trying this out will help find them and get them checked in (I'll start looking for these in parallel :). later, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message