From owner-freebsd-arm@FreeBSD.ORG Tue Jul 19 04:53:09 2011 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 3FA7D106566B for ; Tue, 19 Jul 2011 04:53:09 +0000 (UTC) (envelope-from nitw.satish@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id F31478FC12 for ; Tue, 19 Jul 2011 04:53:08 +0000 (UTC) Received: by gyf3 with SMTP id 3so1987272gyf.13 for ; Mon, 18 Jul 2011 21:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rQ5w+0XJoj+XMZoaoFdkScx/CuEheq3XMSeK4w6WMmA=; b=ARitaOusffPc0nmj1hjnUu0P2YCyxIq6WY6gDdw0kq7d950bu/6OWAoOZRjKHFwyWB eliEn/h+6eUX14eqkcWnzHDYVwgOP4N0++GYQhjeR6qowmTaBIonOZvzpxNz0DiMv3H9 2+wBc3C+dwJXIogNFFZp6Swkmz5Qvj+eOpZcw= MIME-Version: 1.0 Received: by 10.236.170.197 with SMTP id p45mr543556yhl.522.1311051188303; Mon, 18 Jul 2011 21:53:08 -0700 (PDT) Received: by 10.236.95.18 with HTTP; Mon, 18 Jul 2011 21:53:08 -0700 (PDT) In-Reply-To: <1311045829.1508.11.camel@bmcgover-laptop.beta.com> References: <20110718120023.5381410656B5@hub.freebsd.org> <1311045829.1508.11.camel@bmcgover-laptop.beta.com> Date: Tue, 19 Jul 2011 10:23:08 +0530 Message-ID: From: satish kondapalli To: "Brian J. McGovern" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: freebsd-arm Digest, Vol 276, Issue 1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 04:53:09 -0000 Thanks McGovern, >From gcc info it is clear that Free BSD GCC is not supporting the armv7(with march option) architecture and not supporting Coretx-A8 processor ( with mcpu option). Actually I am compiling the kernel for Cortex-A8 ( it has armv7-a archtecture) processor. From gcc info, i didn't find any mcpu option for cortex and march option armv7. Can anyone please tell me how to build the free BSD kernel for cortex-A8 processor( armv7 arch) with Free BSD GCC. Thanks Sateesh On Tue, Jul 19, 2011 at 8:53 AM, Brian J. McGovern wrote: > > Message: 1 > > Date: Mon, 18 Jul 2011 16:26:50 +0530 > > From: satish kondapalli > > Subject: Free BSD support for armv7. > > To: freebsd-arm@freebsd.org > > Message-ID: > > < > CABDOszbEMB1eU0iMzv6ihLy-pYOOE2BN33R9KN4ay4UJD2LY5w@mail.gmail.com> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Hi, > > > > I am trying to compile Freebsd for ARMv7 architecture. I compiled the > > kernel with the following option in my conf file. > > makeoptions CONF_CFLAGS="-march=armv7" > > > > In the compilation time i got the following error. > > head/sys/arm/arm/genassym.c:1: error: bad value (armv7) for -march= > switch. > > > > I am new to FreeBSD, can anyone explain what i need to do in my case. > > My gcc compiler info: > > # gcc -v > > Using built-in specs. > > Target: i386-undermydesk-freebsd > > Configured with: FreeBSD/i386 system compiler > > Thread model: posix > > gcc version 4.2.1 20070719 [FreeBSD] > > > > Thanks > > Sateesh > > > > > From the gcc info page... > > `-march=NAME' > This specifies the name of the target ARM architecture. GCC uses > this name to determine what kind of instructions it can emit when > generating assembly code. This option can be used in conjunction > with or instead of the `-mcpu=' option. Permissible names are: > `armv2', `armv2a', `armv3', `armv3m', `armv4', `armv4t', `armv5', > `armv5t', `armv5te', `armv6', `armv6j', `iwmmxt', `ep9312'. > > > Perhaps what you want is the -mcpu option? If you need -march, I'm > guessing it will be one of the 'later' ones. > > `-mcpu=NAME' > This specifies the name of the target ARM processor. GCC uses > this name to determine what kind of instructions it can emit when > generating assembly code. Permissible names are: `arm2', `arm250', > `arm3', `arm6', `arm60', `arm600', `arm610', `arm620', `arm7', > `arm7m', `arm7d', `arm7dm', `arm7di', `arm7dmi', `arm70', `arm700', > `arm700i', `arm710', `arm710c', `arm7100', `arm7500', `arm7500fe', > `arm7tdmi', `arm7tdmi-s', `arm8', `strongarm', `strongarm110', > `strongarm1100', `arm8', `arm810', `arm9', `arm9e', `arm920', > `arm920t', `arm922t', `arm946e-s', `arm966e-s', `arm968e-s', > `arm926ej-s', `arm940t', `arm9tdmi', `arm10tdmi', `arm1020t', > `arm1026ej-s', `arm10e', `arm1020e', `arm1022e', `arm1136j-s', > `arm1136jf-s', `mpcore', `mpcorenovfp', `arm1176jz-s', > `arm1026ej-s', `arm10e', `arm1020e', `arm1022e', `arm1136j-s', > `arm1136jf-s', `mpcore', `mpcorenovfp', `arm1176jz-s', > `arm1176jzf-s', `xscale', `iwmmxt', `ep9312'. > > >