From owner-freebsd-arm@FreeBSD.ORG Mon Aug 18 12:54:10 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1B051065674 for ; Mon, 18 Aug 2008 12:54:10 +0000 (UTC) (envelope-from stma@antcor.com) Received: from kane.otenet.gr (kane.otenet.gr [83.235.67.31]) by mx1.freebsd.org (Postfix) with ESMTP id ED6F48FC13 for ; Mon, 18 Aug 2008 12:54:09 +0000 (UTC) (envelope-from stma@antcor.com) Received: from [192.168.1.191] (athedsl-424253.home.otenet.gr [79.131.209.59]) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m7ICs7ud008476; Mon, 18 Aug 2008 15:54:07 +0300 From: Stavros Markou To: John Hay In-Reply-To: <20080818124909.GA10897@zibbi.meraka.csir.co.za> References: <1219048946.12457.1.camel@Hellboy> <20080818124909.GA10897@zibbi.meraka.csir.co.za> Content-Type: multipart/related; type="multipart/alternative"; boundary="=-7qbjArJp/zXmoRUwiCvj" Organization: ANTCOR S.A. Date: Mon, 18 Aug 2008 15:54:03 +0300 Message-Id: <1219064043.12457.17.camel@Hellboy> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: how to build root filesystem for ixp425 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stma@antcor.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 12:54:10 -0000 --=-7qbjArJp/zXmoRUwiCvj Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, You are using this script with which release of FreeBSD ? In order to use this script do you set as tools the cross tools or native i386 (or any other host arch) ? I am using currently 7.0 release p2 and i cannot pass the error with cross build (keeps telling me to set TARGET_ARCH but it is already set by me as a command-line option of the make) Best Regards, Stavros. On Mon, 2008-08-18 at 14:49 +0200, John Hay wrote: > On Mon, Aug 18, 2008 at 11:42:26AM +0300, Stavros Markou wrote: > > Hi, > > > > I am trying to build a root filesystem using the mini guide at > > http://people.freebsd.org/~cognet/freebsd_arm.txt but with no luck for > > IXP425. Just to clarify some things : > > > > When i am doing a buildworld inside /usr/src all these env variables > > inside the mini guide must be exported ? > > What about BUILD_ARCH ? By default i am building a filesystem at a i386 > > machine so BUILD_ARCH has the i386 value. > > > > I am using Freebsd 7.0 and i also have seen the wiki for AVILA but i got > > the same Makefile.inc1 error for setting TARGET_ARCH (even though i am > > setting TARGET_ARCH=arm) > > I have build the kernel which is loaded fine but when the root > > filesystem is mounted via NFS i get : exec /sbin/init : error 8 , so i > > think that maybe the root filesystem i 've built is not right. > > My script do this: > > rm -rf /armdist > chflags -R 0 /armdist > rm -rf /armdist > mkdir /armdist > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true buildworld > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist installworld > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale TARGET_BIG_ENDIAN=true DESTDIR=/armdist distribution > > John Stavros Markou Senior Software Engineer ANTCOR S.A. Email: mailto:stma@antcor.com Phone: +30 210 52 22 290 Fax: +30 210 52 22 254 Address: 52 Ag. Konstantinou, Athens 10437, GREECE --=-7qbjArJp/zXmoRUwiCvj--