From owner-freebsd-current@FreeBSD.ORG Wed May 13 17:00:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27ADF1065693 for ; Wed, 13 May 2009 17:00:40 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id E2E658FC15 for ; Wed, 13 May 2009 17:00:39 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id A05ACFF54; Thu, 14 May 2009 05:00:38 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U0+8bmKoON37; Thu, 14 May 2009 05:00:29 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 14 May 2009 05:00:29 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id B841B11432; Thu, 14 May 2009 05:00:28 +1200 (NZST) Date: Wed, 13 May 2009 10:00:28 -0700 From: Andrew Thompson To: Jon Loeliger Message-ID: <20090513170028.GA96051@citylink.fud.org.nz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org Subject: Re: Building boot2 for ixp425 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 17:00:40 -0000 On Wed, May 13, 2009 at 11:49:41AM -0500, Jon Loeliger wrote: > > Folks, > > I'm following the instructions on the Wiki here: > > http://wiki.freebsd.org/FreeBSDAvila > > After successfully building FreeBSD current using nanobsd > and placing it onto a Compact Flash, I am now trying to > build the boot2 image so that I can boot it. > > The instructions say: > > Build a kernel configured to mount the file system from ad0. This is > most easily done by copying the AVILA config file and stripping out > the BOOTP* options. > > Which I did, placing a new "BOOT2" config file in /usr/src/sys/arm/conf. > > Then: > > Build the second level bootstrap program by entering the arm/xscale > build environment and building sys/boot2/ixdp425: > > make TARGET_ARCH=arm TARGET_CPUTYPE=xscale \ > TARGET_BIG_ENDIAN=true buildenv > cd sys/boot/arm/ixp425/boot2/ > make > > The problem arises from that make: > > # make > Warning: Object directory not changed from original /usr/src/sys/boot/arm/ixp425/boot2 > cc -O -pipe -mbig-endian -march=armv5te -D__XSCALE__ -DBOOT_STACK=0x200000-4 -I/usr/src/sys/boot/arm/ixp425/boot2/../../../common -I/usr/src/sys/boot/arm/ixp425/boot2 -DFIXUP_BOOT_DRV -Os -ffreestanding -I/usr/src/sys/boot/arm/ixp425/boot2/../../../.. -I/usr/src/sys/boot/arm/ixp425/boot2/../../../../arm -DCPU_XSCALE_IXP425 -Wall -Waggregate-return -Werror -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -DBOOT_IXP425 -std=gnu99 -c arm_init.S > cc1: error: unrecognized command line option "-mbig-endian" > arm_init.S:0: error: bad value (armv5te) for -march= switch > arm_init.S:0: error: bad value (armv5te) for -mtune= switch > *** Error code 1 > > Stop in /usr/src/sys/boot/arm/ixp425/boot2. Are you sure your cross compile toolchain is built? make TARGET_ARCH=arm TARGET_CPUTYPE=xscale \ TARGET_BIG_ENDIAN=true kernel-toolchain Andrew